If formula current/expired/blank

W

Warren Jo

I'm using this formula to return a 'current' or 'expired' value depending on
the date in column B (expiry after one year). Because I want to autofill
rows that don't yet have data, I require some extra criteria so that no value
is returned if B is still blank. Comprehend??

=IF((TODAY()-B4>365), "EXPIRED", "CURRENT")

It may be a bit clumsy, so comments on this base formula would also be
appreciated.
 
Z

zvkmpw

I'm using this formula to return a 'current' or 'expired' value dependingon
the date in column B (expiry after one year).  Because I want to autofill
rows that don't yet have data, I require some extra criteria so that no value
is returned if B is still blank.  Comprehend??

=IF((TODAY()-B4>365), "EXPIRED", "CURRENT")

Maybe something like this would help:
=IF(B4="","",IF((TODAY()-B4>365), "EXPIRED", "CURRENT"))
 
O

OssieMac

Hi Warren,

Try the following.

=IF(B4="","",IF((TODAY()-B4>365), "EXPIRED", "CURRENT"))
 
D

Dana DeLouis

I'm using this formula to return a 'current' or 'expired' value depending on
the date in column B (expiry after one year). Because I want to autofill
rows that don't yet have data, I require some extra criteria so that no value
is returned if B is still blank. Comprehend??

=IF((TODAY()-B4>365), "EXPIRED", "CURRENT")

It may be a bit clumsy, so comments on this base formula would also be
appreciated.

Hi. Another option:

=IF(ISBLANK(B4),"",IF(EDATE(B4,12) > TODAY(),"Expired","Current"))


= = = = = = =
HTH :>)
Dana DeLouis
 

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