SOLVED

Convert years Nth date back to calendar date.

Copper Contributor

I am a Excel user on Apple.

 

I am trying to generate an average date during a year.  My base data is many dates over several years time. I can isolate the Nth day of the year for each event.  I can generate an average day of the occurrence from those Nth days.  But I find myself stumped as to how to take that averaged Nth date to convert back to a calendar date (example: 3/14 or March 14th).  if you really need to know what I am doing ... I am following garden dates of my plants.

Can someone tell me how to do achieve this?

2 Replies
best response confirmed by Peter_Kelley (Copper Contributor)
Solution

@Peter_Kelley,

=TEXT(DATE(YEAR(TODAY()),1,1)+NthDay, "MMM D")  should be able to address this.  This adds the NthDay to the beginning of current year, converts it back to the format you need (Example "May 2"). Please substitute NthDay with the average day of occurrence. 

 

Please note that the formula will give you different result on a leap year, just that this formula is year specific. if you want to avoid that situation,  simply replace the formula with following :  =TEXT(DATE(2019,1,1)+121, "MMM D").  

@KodipadyThank you for the simple reply.  You've made a rough day a little better.

1 best response

Accepted Solutions
best response confirmed by Peter_Kelley (Copper Contributor)
Solution

@Peter_Kelley,

=TEXT(DATE(YEAR(TODAY()),1,1)+NthDay, "MMM D")  should be able to address this.  This adds the NthDay to the beginning of current year, converts it back to the format you need (Example "May 2"). Please substitute NthDay with the average day of occurrence. 

 

Please note that the formula will give you different result on a leap year, just that this formula is year specific. if you want to avoid that situation,  simply replace the formula with following :  =TEXT(DATE(2019,1,1)+121, "MMM D").  

View solution in original post