sveinhelge.urdal
Member
I have two cells with dates and want excel to calculate how many days overdue i am in my woorkload.
Eksample:
A1 contains the start date
B1 next due date
C1 I want to show how many days I'm overdue.
I have managed to shov the number of days by useing this formula:
=DATEDIF(B1;TODAY();"d")
Problem is that whwen the task is completed I want to be abel to leave the due date cell blank (B1) but then the formula in C1 returns the answer 40960.
Allso when I'm not overdue yet the formula returns an #NUM! error.
How can I make the cell blank if not overdue and returneing the value "OK" when cell B1 is blank?
Eksample:
A1 contains the start date
B1 next due date
C1 I want to show how many days I'm overdue.
I have managed to shov the number of days by useing this formula:
=DATEDIF(B1;TODAY();"d")
Problem is that whwen the task is completed I want to be abel to leave the due date cell blank (B1) but then the formula in C1 returns the answer 40960.
Allso when I'm not overdue yet the formula returns an #NUM! error.
How can I make the cell blank if not overdue and returneing the value "OK" when cell B1 is blank?