Oct 29 2021 02:19 AM
Hi all,
I have the below table:
I would like the Percent Completed column to show the time elapsed as a percentage, but with the following features:
Capping at 100% for tasks whose end date has passed
Not showing negative values for tasks not yet started
Remaining blank if no date is available
I have been playing with IFs for ages this morning, but can't seem to crack it.
Thanks!
Martha
Oct 29 2021 03:16 AM
In G4:
=IF(OR(C4="",D4=""),"",MIN(MAX((TODAY()-C4+1)/(D4-C4+1),0%),100%))
Format as a percentage and fill down.
Oct 29 2021 03:44 AM
@Hans Vogelaar I'm afraid that's not working - I'm getting 100% in some tasks not started or with dates in the future
Oct 29 2021 03:51 AM
Could you attach a small sample workbook demonstrating the problem, without sensitive information?
Oct 29 2021 03:54 AM
Oct 29 2021 07:46 AM
SolutionThe formula that I posted was for row 4 (as I mentioned), not for row 2.
I have attached a version with structured table references.
Nov 01 2021 06:34 AM