Forum Discussion

Peter_Kelley's avatar
Peter_Kelley
Copper Contributor
Jun 30, 2019
Solved

Convert years Nth date back to calendar date.

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?

  • 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").  

2 Replies

  • Kodipady's avatar
    Kodipady
    Iron Contributor

    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").  

Resources