#1
|
|||
|
|||
converting a return of days in a formula to year 1, 2, 3 ect.
I am trying to figure out how to make my simple formula (=TODAY()-I2) return a year, i.e. if the days are 0-365 it would return a 1, 366-730 it would return 2, etc. Any help would be greatly appreciate...I am fairly well lost in most excel functions |
#2
|
|||
|
|||
If TODAY()-I2 is positive then
=CEILING((TODAY()-I1)/365,1) |
#3
|
|||
|
|||
Thanks for the help, I have two follow up questions, did your formula mean to say I2, not I1? also, how would I continue the number for each consecutive year? These will end up going out to a 5 year range.
Thanks |
#4
|
|||
|
|||
WooHoo, forget my follow up questions, your formula worked perfectly and as written it automatically determined the correct cycle.
Thank you for sharing your expertise. |
#5
|
|||
|
|||
Yes, I should have written I2 instead of I1 in the formula.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate a rolling year-to-date percentage by quarter as the year progresses | sleake | Excel Programming | 2 | 04-23-2015 11:51 AM |
Formula for week days only | gbaker | Excel | 5 | 02-15-2014 01:07 AM |
Formula to count entries as per month, year and submission wise from different sheets | pinkacidpunk | Excel | 1 | 05-28-2013 08:26 AM |
Converting serial number to years, months and days | hannu | Excel | 6 | 02-14-2013 09:21 PM |
Formula to calculate Leap Year | USAOz | Excel | 2 | 09-11-2011 04:58 PM |