Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
convert date to yyyyddd format
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
convert date to yyyyddd format
=YEAR(A2)*1000+A2-DATE(YEAR(A2),1,0)
or =YEAR(A2)&TEXT(A2-DATE(YEAR(A2),1,0),"000") (if you want text) Bruce wrote: 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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
convert date to yyyyddd format
=YEAR(A2)&A2-DATE(YEAR(A2),1,)
"Bruce" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert European Date format to American Format | Excel Discussion (Misc queries) | |||
Convert date from text format to date format | Excel Discussion (Misc queries) | |||
Convert date + time text format to date format | Excel Worksheet Functions | |||
Help: How do I convert a text date into a real date format | Excel Worksheet Functions | |||
How can I convert a date format to an ISO week format (in EXCEL)? | Excel Discussion (Misc queries) |