Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Deena at DCH FD
 
Posts: n/a
Default using CSV to break up text into multiple columns

I have an excel spreadsheet with first and last name in the same column.
ie:smith,jon. I need to have the last name in one column and the first name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith, cell
b1=jon

(I don't know anything about using 'comma separated values' so any detail
info would be greatly apprecaited!
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default using CSV to break up text into multiple columns

click Data/Text To Columns
click Delimited
Check Comma (unchecking any other delimiters that may be checked)
click Finish

Backup before trying

"Deena at DCH FD" wrote:

I have an excel spreadsheet with first and last name in the same column.
ie:smith,jon. I need to have the last name in one column and the first name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith, cell
b1=jon

(I don't know anything about using 'comma separated values' so any detail
info would be greatly apprecaited!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Deena at DCH FD
 
Posts: n/a
Default using CSV to break up text into multiple columns

Thank you. Do you have any advice on separating out "Dr. & Mrs. Smith" into
2 columns. ie: cell a1=Dr. & Mrs. cell b1=Smith

I've been playing around with using a "." as the separator, but it splits
the cell into 3 columns...

"JMB" wrote:

click Data/Text To Columns
click Delimited
Check Comma (unchecking any other delimiters that may be checked)
click Finish

Backup before trying

"Deena at DCH FD" wrote:

I have an excel spreadsheet with first and last name in the same column.
ie:smith,jon. I need to have the last name in one column and the first name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith, cell
b1=jon

(I don't know anything about using 'comma separated values' so any detail
info would be greatly apprecaited!

  #4   Report Post  
Posted to microsoft.public.excel.misc
brian
 
Posts: n/a
Default using CSV to break up text into multiple columns

As you need to have a comma after an item to separate it into the next
column, so first replace "Mrs. " (plus the space after the s dot) with
"Mrs.," and once that is done do what you were doing before. Hope that
helps.

Brian

"Deena at DCH FD" wrote in message
...
Thank you. Do you have any advice on separating out "Dr. & Mrs. Smith"
into
2 columns. ie: cell a1=Dr. & Mrs. cell b1=Smith

I've been playing around with using a "." as the separator, but it splits
the cell into 3 columns...

"JMB" wrote:

click Data/Text To Columns
click Delimited
Check Comma (unchecking any other delimiters that may be checked)
click Finish

Backup before trying

"Deena at DCH FD" wrote:

I have an excel spreadsheet with first and last name in the same
column.
ie:smith,jon. I need to have the last name in one column and the first
name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith,
cell
b1=jon

(I don't know anything about using 'comma separated values' so any
detail
info would be greatly apprecaited!



  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default using CSV to break up text into multiple columns

You could use text to columns (space delimited), then in a separate column
concatenate your data back

B1 = Dr.
C1 = &
D1 = Mrs.
E1 = Smith

in cell A1 use =A1&" "&B1&" "&C1. Then copy cell A1 and click Edit/Paste
Special - values and the data will be hardcoded. then you can delete the
original data and cut/paste this new data where the old used to be.

I assume you have a number of occurences like this. After using the text to
columns with the comma delimiter, I would try to get everything that did not
split into a group. Let's say the data looks like

A B C
1 Smith Joe
2 Dr. & Mrs. Smith

If you want to remember what the original order is, number the data in
column A all the way down. Then sort columns A:C using column C, descending
order. Everything that didn't split s/b at the top. Then you could try
splitting the data again using space delimited, enter a formula to
concatenate back the first part of the name. Use Copy/Paste Special to
hardcode the data you concatenated then cut/paste your new first name over
the old data. Move things around/delete stuff you no longer need.

Then you can sort your table again using the numbering you set up in column
A to put things back.






Then you can copy

"Deena at DCH FD" wrote:

Thank you. Do you have any advice on separating out "Dr. & Mrs. Smith" into
2 columns. ie: cell a1=Dr. & Mrs. cell b1=Smith

I've been playing around with using a "." as the separator, but it splits
the cell into 3 columns...

"JMB" wrote:

click Data/Text To Columns
click Delimited
Check Comma (unchecking any other delimiters that may be checked)
click Finish

Backup before trying

"Deena at DCH FD" wrote:

I have an excel spreadsheet with first and last name in the same column.
ie:smith,jon. I need to have the last name in one column and the first name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith, cell
b1=jon

(I don't know anything about using 'comma separated values' so any detail
info would be greatly apprecaited!



  #6   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default using CSV to break up text into multiple columns

One other thing, when you split the data using the space, just select the
data you need. Don't select the data that is already properly split. Text
to columns overwrites data that is in the columns to the right - so make sure
these are empty and be sure your data is backed up.


"Deena at DCH FD" wrote:

Thank you. Do you have any advice on separating out "Dr. & Mrs. Smith" into
2 columns. ie: cell a1=Dr. & Mrs. cell b1=Smith

I've been playing around with using a "." as the separator, but it splits
the cell into 3 columns...

"JMB" wrote:

click Data/Text To Columns
click Delimited
Check Comma (unchecking any other delimiters that may be checked)
click Finish

Backup before trying

"Deena at DCH FD" wrote:

I have an excel spreadsheet with first and last name in the same column.
ie:smith,jon. I need to have the last name in one column and the first name
in the next.

How can use .csv to break this into 2 separate columns: cell a1=smith, cell
b1=jon

(I don't know anything about using 'comma separated values' so any detail
info would be greatly apprecaited!

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
Combining multiple columns of text Amber Schellenberg Excel Discussion (Misc queries) 2 October 11th 05 11:45 PM
Text to Columns - moves text up Stoofer Excel Discussion (Misc queries) 2 February 19th 05 10:04 PM
convert text labels to excel columns RSF New Users to Excel 2 February 9th 05 01:16 AM
Text To Columns Mike Excel Worksheet Functions 3 December 31st 04 11:22 PM
splitting text to multiple columns maryj Excel Discussion (Misc queries) 5 December 1st 04 03:37 PM


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