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.