if cell is blank then calculate how many days?

M

Machel

What would the formula in C column be if I want to know how many days from
the A column date to today - if the B column is blank?

A B C
Start Date Return to Work Date Out How Many Days?
06/29/2009
01/11/2009 02/02/2009

Thank you for your help!
 
L

Luke M

=IF(B2="",TODAY()-A2,"")

If you want to limit this to workdays (Mon-Fri) try:
=IF(B2="",NETWORKDAYS(A2,TODAY())-1,"")
 
M

Machel

Thank you so much! that worked!
If we also want to know the number counting all the days (not just work
days), then I would remove the NETWORKDAYS portion?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top