Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2017, 01:17 PM
bonth123 bonth123 is offline converting a return of days in a formula to year 1, 2, 3 ect. Windows 7 64bit converting a return of days in a formula to year 1, 2, 3 ect. Office 2007
Novice
converting a return of days in a formula to year 1, 2, 3 ect.
 
Join Date: Jun 2017
Posts: 3
bonth123 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 06-08-2017, 09:33 PM
xor xor is offline converting a return of days in a formula to year 1, 2, 3 ect. Windows 10 converting a return of days in a formula to year 1, 2, 3 ect. Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

If TODAY()-I2 is positive then

=CEILING((TODAY()-I1)/365,1)
Reply With Quote
  #3  
Old 06-09-2017, 06:52 AM
bonth123 bonth123 is offline converting a return of days in a formula to year 1, 2, 3 ect. Windows 7 64bit converting a return of days in a formula to year 1, 2, 3 ect. Office 2007
Novice
converting a return of days in a formula to year 1, 2, 3 ect.
 
Join Date: Jun 2017
Posts: 3
bonth123 is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 06-09-2017, 06:55 AM
bonth123 bonth123 is offline converting a return of days in a formula to year 1, 2, 3 ect. Windows 7 64bit converting a return of days in a formula to year 1, 2, 3 ect. Office 2007
Novice
converting a return of days in a formula to year 1, 2, 3 ect.
 
Join Date: Jun 2017
Posts: 3
bonth123 is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 06-09-2017, 07:00 AM
xor xor is offline converting a return of days in a formula to year 1, 2, 3 ect. Windows 10 converting a return of days in a formula to year 1, 2, 3 ect. Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Yes, I should have written I2 instead of I1 in the formula.
Reply With Quote
Reply



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 a return of days in a formula to year 1, 2, 3 ect. 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft