Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Yagnesh
 
Posts: n/a
Default Convert rows into 1 cell or 1 string


If I have a worksheet with 10 rows going down, how can I join all of
them into 1 cell.

Ex)
123 - aaa;
354 - ghg;
246 - hbf;
234 - ggd;

I want the above 4 to fit into one cell like 123 - aaa; 354 - ghg; 246
- hbf; 234 - ggd;

Can someone offer any options. I am also open to any programming
language I could do this in where convert a row into one cell or one
continuous string.


--
Yagnesh
------------------------------------------------------------------------
Yagnesh's Profile: http://www.excelforum.com/member.php...o&userid=25661
View this thread: http://www.excelforum.com/showthread...hreadid=390758

  #2   Report Post  
Morrigan
 
Posts: n/a
Default


Read up on CONCATENATE() function. That should do it.


Yagnesh Wrote:
If I have a worksheet with 10 rows going down, how can I join all of
them into 1 cell.

Ex)
123 - aaa;
354 - ghg;
246 - hbf;
234 - ggd;

I want the above 4 to fit into one cell like 123 - aaa; 354 - ghg; 246
- hbf; 234 - ggd;

Can someone offer any options. I am also open to any programming
language I could do this in where convert a row into one cell or one
continuous string.



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=390758

  #3   Report Post  
Yagnesh
 
Posts: n/a
Default


I tried the Concatenate function but it only limits 30 cells I could
merge. I have a row of about 1,000.


--
Yagnesh
------------------------------------------------------------------------
Yagnesh's Profile: http://www.excelforum.com/member.php...o&userid=25661
View this thread: http://www.excelforum.com/showthread...hreadid=390758

  #4   Report Post  
Steve Mackay
 
Posts: n/a
Default

This is a round about way to do it...

Copy the 1000 cells and paste into Microsoft Word
From the Table menu, select Convert...Table to Text


From Edit menu, select Replace..

click on the More button
With the cursor in "Find what" section, click on the "Special" button,
then select Paragraph Mark
With the cursor in "Replace with" section, type a space (or a space and
semicolon, if that's what you want in between the entries)
Click on Replace All

Copy the result and paste into a cell in Excel

  #5   Report Post  
Morrigan
 
Posts: n/a
Default


Assume A1:A1000 is your data:

B1000 = CONCATENATE(A1000,B1001) (Copy up)

Then B1 should be what you are looking for.


Hope this helps.


Yagnesh Wrote:
I tried the Concatenate function but it only limits 30 cells I could
merge. I have a row of about 1,000.



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=390758



  #6   Report Post  
Yagnesh
 
Posts: n/a
Default


Both suggestions worked.


--
Yagnesh
------------------------------------------------------------------------
Yagnesh's Profile: http://www.excelforum.com/member.php...o&userid=25661
View this thread: http://www.excelforum.com/showthread...hreadid=390758

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I convert text string into a cell reference Dave Davis Excel Discussion (Misc queries) 4 May 18th 23 11:48 AM
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
How to make a cell return the formatted value in a text string (i. n.almeida Excel Worksheet Functions 3 February 2nd 05 01:59 PM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"