Solved

Convert Date to String in Excel 2007

Posted on 2009-05-18
3
1,461 Views
Last Modified: 2012-08-14
How do I convert a date 03/07/1974 to a string in Excel 2007? I would like to keep the leading zero and just have 03071974 ?
0
Comment
Question by:fselliott
3 Comments
 
LVL 59

Accepted Solution

by:
Saurabh Singh Teotia earned 500 total points
ID: 24415609
You can use the following formula...
=text(a1,"mmddyyyy")
Assuming you enter date in A1 in mm/dd/yyyy format.
Saurabh...
0
 

Author Closing Comment

by:fselliott
ID: 31582741
Worked perfectly!
0
 

Expert Comment

by:Jay
ID: 33950399
I need to do the exact opposite and I'm stumped.

I have a date string "20091128"  that i need converted into "MM/DD/YY"

In excel I can split the cell into three parts, but can't put it back together in the format i want.

any help would be appreciated!  Thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now