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 Rearranging a date

Is there any simple way to convert text in Excel

19721221

to: 12-21-1972 ?

We are often sent birthdates in the top format and HAVE to have it
mm/dd/yyyy. I have been using the =LEFT function to split the text out,
rearrange, then =CONCATENATE to put it all together again. I'm having
problems though when dates are mixed with a month containing only one value.
Example: 1972314 / 3-14-1972

If anyone can figure this out ---they are a genius!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Rearranging a date

Janice

DataText to ColumnsNextNextColumn Data FormatDateYMD and Finish.


Gord Dibben MS Excel MVP

On Wed, 14 Mar 2007 09:58:16 -0700, Janice B. - Cleveland, Ohio
wrote:

Is there any simple way to convert text in Excel

19721221

to: 12-21-1972 ?

We are often sent birthdates in the top format and HAVE to have it
mm/dd/yyyy. I have been using the =LEFT function to split the text out,
rearrange, then =CONCATENATE to put it all together again. I'm having
problems though when dates are mixed with a month containing only one value.
Example: 1972314 / 3-14-1972

If anyone can figure this out ---they are a genius!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Rearranging a date

Ooops!

Missed the 1972314 part.

T to C won't see that as a date.

Gord

On Wed, 14 Mar 2007 11:10:00 -0700, Gord Dibben <gorddibbATshawDOTca wrote:

Janice

DataText to ColumnsNextNextColumn Data FormatDateYMD and Finish.


Gord Dibben MS Excel MVP

On Wed, 14 Mar 2007 09:58:16 -0700, Janice B. - Cleveland, Ohio
wrote:

Is there any simple way to convert text in Excel

19721221

to: 12-21-1972 ?

We are often sent birthdates in the top format and HAVE to have it
mm/dd/yyyy. I have been using the =LEFT function to split the text out,
rearrange, then =CONCATENATE to put it all together again. I'm having
problems though when dates are mixed with a month containing only one value.
Example: 1972314 / 3-14-1972

If anyone can figure this out ---they are a genius!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Rearranging a date

There can't be a unique answer if both the month and the day can be one or
two digits.

If you have 197121 Is this January 21 or December 1?

Yureally need to get the data generated in a fashion easier to use.

I had to write a very similar Custom function using dots between the fileds
like

12.3.06
I could write the function because I got unique answers.

"Janice B. - Cleveland, Ohio" wrote:

Is there any simple way to convert text in Excel

19721221

to: 12-21-1972 ?

We are often sent birthdates in the top format and HAVE to have it
mm/dd/yyyy. I have been using the =LEFT function to split the text out,
rearrange, then =CONCATENATE to put it all together again. I'm having
problems though when dates are mixed with a month containing only one value.
Example: 1972314 / 3-14-1972

If anyone can figure this out ---they are a genius!

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
Rearranging numbers Gary''s Student Excel Discussion (Misc queries) 0 November 29th 06 03:21 PM
Rearranging numbers ashw1984 Excel Discussion (Misc queries) 0 November 29th 06 03:01 PM
Rearranging numbers Gary''s Student Excel Discussion (Misc queries) 0 November 29th 06 02:45 PM
Rearranging aTable PT New Users to Excel 2 December 5th 05 05:34 PM
Rearranging Data Help... Jambruins Excel Discussion (Misc queries) 0 February 22nd 05 03:31 PM


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