Worksheet Formula

E

ewameg

Hi All, Need some help please!!

I'm trying to calculate the no. of days in between start date and en
date. I can do a simple formula to work that out but i need to tell i
that if the end date is blank, then to use todays date.

I know how to do it sub-consiously, but my brain just will not work!!!

Any ideas??
 
S

Special-K

Assuming Column A start date and Column B end date then

=IF(ISBLANK(B1)=TRUE,TODAY()-A1,B1-A1)

should produce what you want
 
Top