Forum Discussion
calculating percentage between two dates
- Jun 30, 2023
creativekat26 I think the problem is the separators between the function arguments. The example I've provided is ";"(this is my separator). If you have ","(comma) as a separator please replace ";" with "," in my formula.
Hi creativekat26 the formula proposed by you works. Which version of excel do you have?
'IFERROR(MIN(1; (DATEDIF(B4;TODAY();"d")+1)/(DATEDIF(B4;C4;"d")+1));"not started")
Regards
https://www.upwork.com/freelancers/~01cf0fc8446b00f44c
- creativekat26Jun 30, 2023Copper Contributor
leoperdia I have the latest version of excel.
I know that each formula works separately - but is there a way to combine these two formulas below?
=IFERROR((DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1),"Not start")
=MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1))
So that when a date passes it shows 100% and for future dates it shows "not started"?
Thank you for your help!
- leoperdiaJun 30, 2023Brass Contributor
creativekat26 Meaby I do not get you correctly, but the formula I've shared in the previous post is a combination of both:
IFERROR(MIN(1; (DATEDIF(B4;TODAY();"d")+1)/(DATEDIF(B4;C4;"d")+1));"not started")
The example I've shared is using this formula. The behavior is the following:
-If range date in the future--> not started
-If today is within the range date---> % of progress
-If range date in the past--> 100%
Regards
https://www.upwork.com/freelancers/~01cf0fc8446b00f44c
- creativekat26Jun 30, 2023Copper ContributorIt is not recognizing this string as a formula
IFERROR(MIN(1; (DATEDIF(B4;TODAY();"d")+1)/(DATEDIF(B4;C4;"d")+1));"not started")
it's thinking its just plain text. am I missing something?