Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to change a date from 19990812 to 08-12-1999?

Trying to change a date in cells that are downloaded as 19990812 to
08-12-1999? Anybody have a way of doing it? Changing format doesn't work.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 634
Default How to change a date from 19990812 to 08-12-1999?

Just select all the dates at once (Whole column if you want) and do Data /
Text To Columns / Delimited or Fixed width (Either will do) / Then choose
"Date" and pick either YMD or YDM, whichever one works for you and your
settings (YMD for me)

Regards
Ken..................................
..

"bcmsmom" wrote in message
...
Trying to change a date in cells that are downloaded as 19990812 to
08-12-1999? Anybody have a way of doing it? Changing format doesn't
work.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default How to change a date from 19990812 to 08-12-1999?

It is probably because it is text. Try the following:
Assuming your value is in A1.
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"mm-dd-yyyy")

Or, you could just use the formula:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

And format the cell through your menu as normal.

Hope this helps.
--
John C


"bcmsmom" wrote:

Trying to change a date in cells that are downloaded as 19990812 to
08-12-1999? Anybody have a way of doing it? Changing format doesn't work.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to change a date from 19990812 to 08-12-1999?

Trying to change a date in cells that are downloaded as 19990812
to 08-12-1999? Anybody have a way of doing it?


Assuming your value is in A1.
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"mm-dd-yyyy")


Because the OP has his date components in the "universal date" order, a
shorter TEXT function solution exists...

=--TEXT(A1,"0000-00-00")

Rick

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
date default error after 1999 Mollyb Excel Discussion (Misc queries) 7 February 1st 06 08:16 PM
If Year equals 1999 then multiply cell by x logan_48080 Excel Discussion (Misc queries) 3 October 5th 05 07:55 PM
2/3/1999 78 4/30/1999 87 86 Grant Excel Discussion (Misc queries) 0 September 7th 05 01:15 AM
round up a 1999 + 1999 to the nerest 100 = 2000 + 2000 Keith Lumley Excel Discussion (Misc queries) 1 February 10th 05 11:35 AM
finding data between two numbers (1000-1999)and totaling correspo. plasticmaker Excel Discussion (Misc queries) 1 January 7th 05 07:55 PM


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