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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!