Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default converting text to columns

I have a column of dates that have been imported from a CSV file. The format
is month year (209, 1112, 1211, etc.). I need to separate the month and year
into separate columns using "converting text to columns." However, because
some of the numbers are only 3 digits, I can't separate using fix width and
it is not delimited. In excel, the column is right justified, but when using
the separating tool, it looks left justified. Help.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,805
Default converting text to columns

After importing (in Col A) use this in B1 to get the month
=MID(A1,1,LEN(A1)-2)

and this in C1 to get the year
=Right(A1,2)

"Linda (Irwin)" wrote:

I have a column of dates that have been imported from a CSV file. The format
is month year (209, 1112, 1211, etc.). I need to separate the month and year
into separate columns using "converting text to columns." However, because
some of the numbers are only 3 digits, I can't separate using fix width and
it is not delimited. In excel, the column is right justified, but when using
the separating tool, it looks left justified. Help.

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
Converting a text word or text string to a number Tom Excel Discussion (Misc queries) 6 January 2nd 09 08:23 PM
Converting a date to a text field w/o converting it to a julian da LynnMinn Excel Worksheet Functions 2 March 6th 08 03:43 PM
Converting Text to Date using "Text to Columns" kahoko Excel Discussion (Misc queries) 5 December 3rd 07 11:08 AM
Converting text from rows to columns Phyllis B. Excel Worksheet Functions 3 May 2nd 06 06:49 PM
converting numbers to text and prefill text field with 0's Jan Buckley Excel Discussion (Misc queries) 2 January 20th 05 09:03 PM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"