ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date Function (https://www.excelbanter.com/excel-discussion-misc-queries/71986-date-function.html)

Amy

Date Function
 
Is there a function that returns the month and day when you type in one of
the numbers 1-365?
If not, does anyone know the formula that will return the month and day?

Dave Peterson

Date Function
 
maybe (with 1-365 typed into A1):

If you want the date:
=DATE(YEAR(TODAY()),1,A1)

if you want the month:
=month(DATE(YEAR(TODAY()),1,A1))

if you want the day:
=day(DATE(YEAR(TODAY()),1,A1))

or
=DATE(YEAR(TODAY()),1,A1)
formatted as:
mmdd
???



Amy wrote:

Is there a function that returns the month and day when you type in one of
the numbers 1-365?
If not, does anyone know the formula that will return the month and day?


--

Dave Peterson


All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com