Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Convert Date Format of 7/29/04 to Date Format of 072904

Hi...I need to convert a data with a slash to a date without the slash and a preceding zero, if the date does not begin with 10, 11, or 12. I've successfully resolved this problem in 3 steps by converting the date to 29-Jul-04 and then writing a separate formula in 3 cells for =MONTH(A), etc., and then concatenating the string, but it still doesn't add the zero and this method is quite lengthy...is there a formatting option in Format Cells that I'm overlooking? Custom formatting doesn't work in this case either....I appreciate any help you have.
Thank you,
Petra
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Convert Date Format of 7/29/04 to Date Format of 072904

=TEXT(A1,"mmddyy")

--
HTH

-------

Bob Phillips
"Petra" wrote in message
...
Hi...I need to convert a data with a slash to a date without the slash and

a preceding zero, if the date does not begin with 10, 11, or 12. I've
successfully resolved this problem in 3 steps by converting the date to
29-Jul-04 and then writing a separate formula in 3 cells for =MONTH(A),
etc., and then concatenating the string, but it still doesn't add the zero
and this method is quite lengthy...is there a formatting option in Format
Cells that I'm overlooking? Custom formatting doesn't work in this case
either....I appreciate any help you have.
Thank you,
Petra



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
How do I convert dd/mm/yy date format to yyddd Julian date format itzy bitzy[_2_] Excel Worksheet Functions 8 December 11th 09 03:20 AM
Convert european foreign date format to US date format EAL Excel Worksheet Functions 1 May 14th 09 10:02 PM
convert serial date format to normal date format Flagworld Excel Discussion (Misc queries) 3 September 23rd 08 01:32 PM
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM


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