Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Changing mm/dd/yyyy To yyyymmdd

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sheldon - 16 Oct 2007 13:53 GMT
Does Excel provide a function to change mm/dd/yyyy to yyyymmdd,
similar to the Format function in Access?  I realize I can build
something with Left, Right, Mid and Len but intuitively thought that
this *should be* basic enough for Excel to provide.  Note: No leading
zeroes on month or date e.g. 7/4/2007.
Sheldon Potolsky
Don Guillett - 16 Oct 2007 14:06 GMT
If? it is a date number then just change the format.

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Does Excel provide a function to change mm/dd/yyyy to yyyymmdd,
> similar to the Format function in Access?  I realize I can build
> something with Left, Right, Mid and Len but intuitively thought that
> this *should be* basic enough for Excel to provide.  Note: No leading
> zeroes on month or date e.g. 7/4/2007.
> Sheldon Potolsky
Dave Peterson - 16 Oct 2007 14:27 GMT
You could use a custom number format of:  yyyymmdd

or you could use a helper cell with a formula like:
=text(a1,"yyyymmdd")
where A1 contains the date

> Does Excel provide a function to change mm/dd/yyyy to yyyymmdd,
> similar to the Format function in Access?  I realize I can build
> something with Left, Right, Mid and Len but intuitively thought that
> this *should be* basic enough for Excel to provide.  Note: No leading
> zeroes on month or date e.g. 7/4/2007.
> Sheldon Potolsky

Signature

Dave Peterson

JW - 16 Oct 2007 14:30 GMT
Select the cells that you want to apply this format to.  Right click
and select Format Cells.  In the Number tab, select Custom from the
Category listbox.  In the Type field, enter yyyymmdd.  Click OK.
> Does Excel provide a function to change mm/dd/yyyy to yyyymmdd,
> similar to the Format function in Access?  I realize I can build
> something with Left, Right, Mid and Len but intuitively thought that
> this *should be* basic enough for Excel to provide.  Note: No leading
> zeroes on month or date e.g. 7/4/2007.
> Sheldon Potolsky
RagDyeR - 16 Oct 2007 15:17 GMT
You mention "no leading zeroes on month or date",
so ... do you really want your date to look like:
200774
??
If so, custom format to
yyyymd
Signature


HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Does Excel provide a function to change mm/dd/yyyy to yyyymmdd,
similar to the Format function in Access?  I realize I can build
something with Left, Right, Mid and Len but intuitively thought that
this *should be* basic enough for Excel to provide.  Note: No leading
zeroes on month or date e.g. 7/4/2007.
Sheldon Potolsky
Sheldon - 17 Oct 2007 16:50 GMT
I did mention wanting an output format of yyyymmdd (20070704) and two
of the suggestions (above), from Dave and RD, worked very well.
Thanks, Sheldon

> You mention "no leading zeroes on month or date",
> so ... do you really want your date to look like:
[quoted text clipped - 17 lines]
> zeroes on month or date e.g. 7/4/2007.
> Sheldon Potolsky

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.