Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default CSV Column Conversion

Hi
I have a downloaded csv file which has a LastName,FirstName entry under one
column titled LearnerName. I am trying to highlight rows based on the names,
but conditional formatting doesn't seem to like the comma in the name. Short
of manually breaking the name into two columns, is there a way to convert
LastName,FirstName into two separate columns?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default CSV Column Conversion

I'd use:

Select the column with the names
Data|Text to columns
Delimited
by comma
and plop the results into the two adjacent columns.

Make sure you have room so you don't overwrite the adjacent data.

CJ Melo wrote:

Hi
I have a downloaded csv file which has a LastName,FirstName entry under one
column titled LearnerName. I am trying to highlight rows based on the names,
but conditional formatting doesn't seem to like the comma in the name. Short
of manually breaking the name into two columns, is there a way to convert
LastName,FirstName into two separate columns?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default CSV Column Conversion

By "manually", do you mean editing them one at a time? You can use Text to
Columns to separate them into two columns all in one operation. Select all
the combined names in the LearnerName column. Then select Data Text to
Columns Delimited Next Comma Next Finish.

Another way is to use formulas to parse the names into two other columns. If
the first combined name is in A2, for example, enter this formula in B2:
=TRIM(LEFT(A2,FIND(",",A2)-1)

and this formula in C2:
=TRIM(RIGHT(A2,LEN(A2)-FIND(",",A2)))

Copy both formulas down through all rows of data, then copy & paste in place
as values.

Hope this helps,

Hutch

"CJ Melo" wrote:

Hi
I have a downloaded csv file which has a LastName,FirstName entry under one
column titled LearnerName. I am trying to highlight rows based on the names,
but conditional formatting doesn't seem to like the comma in the name. Short
of manually breaking the name into two columns, is there a way to convert
LastName,FirstName into two separate columns?

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
dec 2 bin conversion sai Excel Worksheet Functions 2 October 29th 08 07:21 PM
Row to column conversion [email protected] Excel Discussion (Misc queries) 4 October 6th 08 03:33 AM
Conversion to value between 1 to 10 only! wilchong via OfficeKB.com New Users to Excel 5 May 23rd 08 02:10 PM
Perpelexing Row to Column conversion Geno Excel Discussion (Misc queries) 3 July 7th 06 04:04 PM
Excel Column and row conversion MSM Excel Discussion (Misc queries) 1 May 7th 05 03:12 PM


All times are GMT +1. The time now is 02:06 AM.

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"