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 / April 2007

Tip: Looking for answers? Try searching our database.

format date as day of the year

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nico - 19 Apr 2007 12:55 GMT
Hi,

As title says, how do I format a date so it displays the day of the year,
instead of day of the month?

Regards,

Nico.
macropod - 19 Apr 2007 13:11 GMT
Hi Nico,

For a date in A1, you could use a formula in another cell, coded as:
=A1-DATE(Year(A1),1,0)
and format the result as 'General'.

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

> Hi,
>
[quoted text clipped - 4 lines]
>
> Nico.
Niek Otten - 19 Apr 2007 13:16 GMT
Hi Nico,

Not possible with just formatting.
You need a formula: =A1-DATE(YEAR(TODAY()),1,0)

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi,
|
[quoted text clipped - 4 lines]
|
| Nico.
Niek Otten - 19 Apr 2007 13:31 GMT
Macropod's formula is better than mine because it takes into account the year of the input date.

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi Nico,
|
[quoted text clipped - 9 lines]
||
|| Nico.

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.