Ignore blank cells when calculating date for If, Then function

A

AndreaS13

I have a training spreadsheet that uses the date function "Today" along with
the date training was completed to calculate when training is overdue. Is
there a way to have Excel ignore blank cells. Right now it is counting a
blank cell as "Overdue".

My formula is =IF(($C$3-J8)>1095, "OVERDUE", " "), where C3 = TODAY(); J8 is
the date of the last training class and 1095 is the amount of days it would
be considered "overdue".

Thanks,
Andrea
 
P

Peo Sjoblom

First of all change the space " " to a blank ""


=IF(OR(J8="",$C$3-J8<=1095),"","OVERDUE")


or better


=IF(OR(J8="",TODAY()-J8<=1095),"","OVERDUE")

that way you don't need an extra cell

--


Regards,


Peo Sjoblom
 

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