Comma Delimited Merging..

vampcatt

New Member
Joined
Feb 22, 2002
Messages
26
I have a couple text files that are comma delimited that I have imported into excel.

My problem is that a handful of the rows had "extra" commas.. resulting in extra columns.

example:

San Jose, CA, shirts, orange, green, blue,

In that case, I'd want to merge "orange, green, blue" into one cell.

Is there a function to perhaps highlight the columns side by side and merge them all into ONE cell "orange green blue"

Thank you in advance for your help.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Once the data has been imported, you can use the concatenate formula,

e.g.,

=CONCATENATE(A1,",",B1,",",C1)

where A1 to C1 contain your colours

HTH

Matt
This message was edited by Matt on 2002-03-10 15:06
 
Upvote 0
Hi ==

Worth a look at :CONCATENATE should do as you ask..

=CONCATENATE(Rng1, " ",Rng2, " ",Rng3)

Use the wizard if needs be can be any rng (range but single cell at a time thou) will just string them together for you.
 
Upvote 0
I tried the concatenate

"e.g.,

=CONCATENATE(A1,",",B1,",",C1) "

BUT.. I dont wish to have the seperate cells in the document anymore.

That does work to merge the cells, but then I wind up with

color color color , color, color, color
I only want the "color color color" in there.. if I remove the sperate cells, then of course excel doesnt have that data to reference to.

Is there no way to "merge" them without having them still there to reference ?
 
Upvote 0
You can do the =CONCATENATE(A1,",",B1,",",C1)
and then copy the values from the concatenate to another column using 'paste special' with the values option set.
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,942
Latest member
sharmarick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top