ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If formula current/expired/blank (https://www.excelbanter.com/excel-worksheet-functions/257599-if-formula-current-expired-blank.html)

Warren Jo

If formula current/expired/blank
 
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()-B4365), "EXPIRED", "CURRENT")

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

zvkmpw

If formula current/expired/blank
 
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()-B4365), "EXPIRED", "CURRENT")


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




OssieMac

If formula current/expired/blank
 
Hi Warren,

Try the following.

=IF(B4="","",IF((TODAY()-B4365), "EXPIRED", "CURRENT"))

--
Regards,

OssieMac


"Warren Jo" wrote:

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()-B4365), "EXPIRED", "CURRENT")

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


Dana DeLouis[_3_]

If formula current/expired/blank
 
On 2/28/2010 6:14 PM, Warren Jo wrote:
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()-B4365), "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


All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com