# Formula to calculate progress between two dates with start date greater than today

1. ## Formula to calculate progress between two dates with start date greater than today

Hello, I'm using the following formula to calculate the progress between two dates. =(DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1) F9 is the Start Date and G9 is the End Date. However, this formula returns a #NUM error if the Start Date is greater than today. Does anyone know whether a modification to this formula using the IFERROR function to return a blank or 0% would work or if is there any other workaround? Thanks!!!

2. ## Re: Formula to calculate progress between two dates with start date greater than today

Welcome to the forum.

What did you try? Excel can't handle negative time differences, so you always have to work round them.

=IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),0)

or:

=IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),"")

=IF(F9>TODAY(),value_if_true,your_formula)

3. ## Re: Formula to calculate progress between two dates with start date greater than today

Thank you the following formula worked perfectly!

=IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),0)

4. ## Re: Formula to calculate progress between two dates with start date greater than today

Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

There are currently 1 users browsing this thread. (0 members and 1 guests)