Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
msdker
 
Posts: n/a
Default Excel - Find and Replace from rows to separation by commas

I would like to take information that is one column but over 2000 rows and
move it into the A1 cell, but separated by commas. So instead of separation
by rows, make it separation by commas. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default Excel - Find and Replace from rows to separation by commas


You can do this by macro

Sub AddCommas()
Set DataRange = Application.InputBox("Select data", , , , , , , 8)
Set TargetCell = Application.InputBox("Select target cell", , , , , , ,
8)
For Each Cell In DataRange
TargetString = TargetString & "," & Cell.Value
Next
TargetString = Right(TargetString, Len(TargetString) - 1)
TargetCell.Value = TargetString
End Sub


Martin


--
mrice


------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=533188

  #3   Report Post  
Posted to microsoft.public.excel.misc
Martin P
 
Posts: n/a
Default Excel - Find and Replace from rows to separation by commas

This can also quickly be done via Word. Copy to Word, convert table to text,
and use Edit, Replace in Word to replace paragraph mark with comma. Copy to
Excel.

"msdker" wrote:

I would like to take information that is one column but over 2000 rows and
move it into the A1 cell, but separated by commas. So instead of separation
by rows, make it separation by commas. How do I do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Excel - Find and Replace from rows to separation by commas


In cell B1 put

=A1&","&B2

and formula copy that to the end of your data

then take cell B2, copy, and paste special = Values into A1

delete all other rows and column B

--

msdker Wrote:
I would like to take information that is one column but over 2000 rows
and
move it into the A1 cell, but separated by commas. So instead of
separation
by rows, make it separation by commas. How do I do this?



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=533188

  #5   Report Post  
Posted to microsoft.public.excel.misc
msdker
 
Posts: n/a
Default Excel - Find and Replace from rows to separation by commas

This is the one! This was super easy. I kept thinking that I know I can
choose characters from a list with find and replace and I had forgotten that
I can do it in Word! Thanks!

"Martin P" wrote:

This can also quickly be done via Word. Copy to Word, convert table to text,
and use Edit, Replace in Word to replace paragraph mark with comma. Copy to
Excel.

"msdker" wrote:

I would like to take information that is one column but over 2000 rows and
move it into the A1 cell, but separated by commas. So instead of separation
by rows, make it separation by commas. How do I do this?

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
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
Find and replace should work in Excel text boxes Bob@Teton Excel Discussion (Misc queries) 0 October 20th 05 01:16 PM
Excel 2003 Find and Replace is changed to previovois ver.-awful!! Tvermoes Excel Discussion (Misc queries) 3 August 24th 05 01:48 PM
find and replace path name in Excel cells containing hyperlink leoe Excel Discussion (Misc queries) 1 August 9th 05 08:57 PM
macro to Find Replace in Excel Nurddin Excel Discussion (Misc queries) 7 January 3rd 05 04:29 AM


All times are GMT +1. The time now is 07:30 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"