Hi,
I'd like help understanding the following formula that is being used in a sheet I inherited. I'd like to understand how to break down the formula to understand what exactly it is doing and how it is doing it.
The formula is calculating "% Time Elapsed" based on Duration, Start Date and End Date.
=IFERROR(IF(AND(Duration@row = 0, [End Date]@row <= TODAY(), ISDATE([End Date]@row)), 1, IF(AND(Duration@row = 0, [Start Date]@row > TODAY()), 0, IF(OR(AND([End Date]@row <= TODAY(), Duration@row = 0), (NETWORKDAYS([Start Date]@row, TODAY()) / ([End Date]@row - [Start Date]@row)) > 1), 1, IF(OR(AND([End Date]@row > TODAY(), Duration@row = 0), (NETWORKDAYS([Start Date]@row, TODAY()) / ([End Date]@row - [Start Date]@row)) < 0), 0, (NETWORKDAYS([Start Date]@row, TODAY()) / ([End Date]@row - [Start Date]@row)))))), "")
I tried breaking it down by IF statements but I'm still not able to figure it out ;P
Thanks!
Andy