Formula to calculate two week iteration
Our company works in two week chunks we call iterations. Using the following formula in Excel I am able to calculate what the current iteration is. However when I import from Excel Smartsheet doesn't appear to like the formula.
Using the current date the formula in Excel is
=FLOOR.MATH(DAYS(NOW(),"6/11/01")/14)
Using a specific date the formula in Excel is
=FLOOR.MATH(DAYS("8/2/20","6/11/1")/14)
Does anyone know of a way to get these formulas to work?
Answers
-
In Smartsheet, you'll want to use FLOOR instead of FLOOR.MATH and NETDAYS instead of DAYS.
There is now Smartsheet version of NOW as it does not have time formulas, you could try using TODAY() which returns the current day.
Also, if you put the date in quotes it will act like a string. You can either reference a cell in a date column, or use the DATE formula.
I'm not sure the multiple you want in your FLOOR formula, so I've removed that part.
To get the net days between today and 6/11/01, the formula is
=(NETDAYS(TODAY(), DATE(2001, 6, 11)))
It returns -6997, if you divide by 14 you get -499.78571
=(NETDAYS(TODAY(), DATE(2001, 6, 11))) / 14
I'm assuming you want a whole number? If so, this returns -500
=ROUND(NETDAYS(TODAY(), DATE(2001, 6, 11)) / 14, 0)
Your second formula in this style is
=ROUND(NETDAYS(DATE(2020, 8, 2), DATE(2001, 6, 11)) / 14, 0)
Though, it's sometimes easier to reference date columns, as in the below screenshot
If you want the values to not be negative, change the order of the dates.
👨🏼💻 Dan Palenchar | School of Sheets Solutions Consulting | Smartsheet Aligned Gold Partner
If this helped, help me & the SSC by accepting and reacting w/ 💡insightful, ⬆️ Vote Up, and/or ❤️Awesome!
- 🆘 Smartsheet Consulting Inquiries: schoolofsheets.com/workwithus
- ▶️ Smartsheet Tutorial Videos: schoolofsheets.com/youtube
PS - If you have a follow up response tag me @SoS | Dan Palenchar so I get notified of your reply!
Help Article Resources
Categories
Check out the Formula Handbook template!