Hi, I don't think this can be done with worksheet functions. You'll have to use VBA. Something like the following:
Range("A1") = Range("I3") & vbNewLine & Range("J3") & vbNewLine & Range("K3") This puts 3 lines of data into A1. If you want to put lots of lines of data into one cell, we could use a loop: A = 9 Do Until A = 26 Range("A1") = Range("A1") + Cells(3, A) & vbNewLine A = A + 1 Loop This puts data from cells I3 to Z3 into cell A1, each on a new line. Hope this helps Regards - Dave Date: Mon, 27 Jul 2009 22:14:12 -0700 From: shannur...@yahoo.com Subject: $$Excel-Macros$$ Re: Segregation of data on a button click in excel To: excel-macros@googlegroups.com Hello Dave, Incase if I have to assemble all the different cell values like i3, j3,toz3 all these cell data to be assembled in one particular cell how to go about it and all this data should appear one after the other and in one whole cell. --- On Tue, 7/28/09, Dave Bonallack <davebonall...@hotmail.com> wrote: From: Dave Bonallack <davebonall...@hotmail.com> Subject: $$Excel-Macros$$ Re: Segregation of data on a button click in excel To: "excel-macros@googlegroups.com" <excel-macros@googlegroups.com> Date: Tuesday, July 28, 2009, 10:23 AM Hi, If Pinky's data is just like you say, have a look at the attached. You can copy down to accommodate more data. However, if the sheet has a lot of data, ie thousands of lines, the attached worksheet function solution may take too long, and a VBA solution would be better. Regards - Dave. From: jainayus...@gmail.com Date: Mon, 27 Jul 2009 23:22:18 +0530 Subject: $$Excel-Macros$$ Re: Segregation of data on a button click in excel To: excel-macros@googlegroups.com CC: pinky.sang...@gmail.com Hello All, Please find attached input and desired output of Pinky. Thanks for your help, Ayush Jain _________________________________________________________________ What goes online, stays online Check the daily blob for the latest on what's happening around the web http://windowslive.ninemsn.com.au/blog.aspx --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 5,200 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---