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 2006

Tip: Looking for answers? Try searching our database.

Excel Date Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert - 20 Oct 2006 19:20 GMT
I am trying to write a formula that will change the date format. Here is what
I am trying to do. Can  anyone help?

I would like the date to be in this format in cell F1, 19971219. This field
needs to have 8 digits for the complete date.

Cell A1 Contains the year, 1977
Cell B1 Contains the month, 12
Cell C1 Contains the day, 19

In this example we would have to append a leading zero on the month so it is
05 instead of just the 5. The same with the day it needs to have a leading 0
also.

Cell A1 Contains the year, 1977
Cell B1 Contains the month, 9
Cell C1 Contains the day, 5

I would like the date to be in this format in cell F1, 19970905

What is the best way to do this?

Thanks in advance.

Robert

Thanks
Dave Peterson - 20 Oct 2006 19:33 GMT
=date(a1,b1,c1)
and give it a nice format (yyyymmdd)

or if you want text:
=text(date(a1,b1,c1),"yyyymmdd")

The first will still be a date, so you can do all the date arithmetic you want.
The second will be text.

> I am trying to write a formula that will change the date format. Here is what
> I am trying to do. Can  anyone help?
[quoted text clipped - 23 lines]
>
> Thanks

Signature

Dave Peterson


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.