Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ticktockman
 
Posts: n/a
Default How to split a value seperated by comma?


Hi - I didn't know the best way to describe this in the title of the
post - but here's the situation:

I have a column of values that are two text strings seperated by a
comma. For example:

Blue Widgets, DVD
Blue Widgets, Movies
Blue Widgets, Books
Red Widgets, Tips
Red Widgets, Format

And so on.... What I need is to split that into two columns, with the
values "blue widgets" and "dvd" for example. Basically the comma
always seperates the values. What excel formula could I use? I know
it's possible but it's a bit beyond my excel wizardry :)


--
Ticktockman
------------------------------------------------------------------------
Ticktockman's Profile: http://www.excelforum.com/member.php...o&userid=32740
View this thread: http://www.excelforum.com/showthread...hreadid=525715

  #2   Report Post  
Posted to microsoft.public.excel.misc
mrsinnister
 
Posts: n/a
Default How to split a value seperated by comma?


*-Go to Data menu, and choose text to columns. If you want it kept as
you see it, choose fixed width. If you choose comma delimited, it will
assign columns for each field. Choose how you want it allocated, it
will give you a preview, if that is how you want it click FINISH.-*


--
mrsinnister
------------------------------------------------------------------------
mrsinnister's Profile: http://www.excelforum.com/member.php...o&userid=32737
View this thread: http://www.excelforum.com/showthread...hreadid=525715

  #3   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default How to split a value seperated by comma?

You have two options.

I. Data-Text to columns
Select Delimited and click next.
Check comma, uncheck everything else.
Click on Finish
Select the second column and do a find-replace finding " " (space bar) and
replacing it with nothing (leave blank). This will remove the first blank in
each cell of that column.

II. Use the following formulas and then cut and paste special selecting
values.
=LEFT(A1,FIND(",",A1)-1)
=RIGHT(A1,LEN(A1)-FIND(",",A1)-1)

Hope this helps


"Ticktockman" wrote:


Hi - I didn't know the best way to describe this in the title of the
post - but here's the situation:

I have a column of values that are two text strings seperated by a
comma. For example:

Blue Widgets, DVD
Blue Widgets, Movies
Blue Widgets, Books
Red Widgets, Tips
Red Widgets, Format

And so on.... What I need is to split that into two columns, with the
values "blue widgets" and "dvd" for example. Basically the comma
always seperates the values. What excel formula could I use? I know
it's possible but it's a bit beyond my excel wizardry :)


--
Ticktockman
------------------------------------------------------------------------
Ticktockman's Profile: http://www.excelforum.com/member.php...o&userid=32740
View this thread: http://www.excelforum.com/showthread...hreadid=525715

Sloth March

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
Applying Indian comma style NAVEEN Excel Discussion (Misc queries) 1 February 22nd 06 08:59 AM
Find the sum of Comma Seperated Values In a Cell xcelion Excel Worksheet Functions 3 August 24th 05 07:55 AM
Importing Comma Seperated Text Please Help ? Byron Excel Discussion (Misc queries) 1 August 16th 05 10:36 AM
column values to a cell with comma seperated Raju Boine. Excel Worksheet Functions 3 July 27th 05 03:30 PM
Combine names seperated by comma bbc1 Excel Discussion (Misc queries) 3 February 13th 05 07:55 PM


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