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 / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

convert date to yyyyddd format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce - 14 Sep 2007 01:54 GMT
Hi,

How can I format a date into the fomat yyyyddd where ddd is the day of the
calender year (i.e. out of 365 or 366 if a leap year. Assume my date is in
cell A2.

Bruce
Dave Peterson - 14 Sep 2007 02:07 GMT
=YEAR(A2)*1000+A2-DATE(YEAR(A2),1,0)
or
=YEAR(A2)&TEXT(A2-DATE(YEAR(A2),1,0),"000")
(if you want text)

> Hi,
>
[quoted text clipped - 3 lines]
>
> Bruce

Signature

Dave Peterson

Teethless mama - 14 Sep 2007 02:30 GMT
=YEAR(A2)&A2-DATE(YEAR(A2),1,)

> Hi,
>
[quoted text clipped - 3 lines]
>
> Bruce
 
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.