Calculate % complete with Date Range and Today's date
Hello community,
I need a formula to return % Complete based on a start - end date range and today's date.
So for example:
Date Range: 06/18/23 - 06/30/23
Today's date: 06/26/23
As there are 12days in this date range, and today's date is day 8 out of 12, the percentage complete would be 66.6%
Thanks in advance!
Best Answer
-
=MAX(MIN((TODAY() - Start@row) / (Finish@row - Start@row), 1), 0)
This does the percentage:
(TODAY() - Start@row) / (Finish@row - Start@row)
This caps it at 100%:
MIN(..............., 1)
This keeps it from going negative for future tasks:
MAX(..............., 0)
Answers
-
Follow up - this is my solution but maybe there is a single formula option?
Currently I have two helper columns
Days: =IFERROR(NETDAYS(Start@row, Finish@row), "")
Today - Start: =IF(Finish@row > TODAY(), TODAY() - Start@row)
% Complete: =IFERROR([Today - Start]@row / Days@row, "")
-
Try this:
=MAX(MIN((TODAY() - Start@row) / (Finish@row - Start@row), 1), 0)
-
That worked, thanks again Paul!
It also shows 100% complete when it is in the past which is great. What part of this formula makes it do that?
-
=MAX(MIN((TODAY() - Start@row) / (Finish@row - Start@row), 1), 0)
This does the percentage:
(TODAY() - Start@row) / (Finish@row - Start@row)
This caps it at 100%:
MIN(..............., 1)
This keeps it from going negative for future tasks:
MAX(..............., 0)
-
Thanks Paul, very helpful as always!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!