Nested If Statement

matty_lou82

New Member
Joined
Sep 14, 2018
Messages
38
I am looking for a nested IF statement that states in a cell "Expired" if the reference cell date is greater than today, AND if reference cell is either blank or contains a date prior to today, a blank value is returned.

So:

Reference Cell Date > Today - Returns "Expired"
Reference Cell Date = Blank - Returns "Blank"<strike></strike>
Reference Cell Date < Today - Returns "Blank"

I would really appreciate any help on this.

Thank you in advance,

 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the Board!

Let's say A1 is the reference cell. Then try:
Code:
=IF(A1>TODAY(),"Expired","Blank")

If you want an actual blank and not the word "BLANK", then use:
Code:
=IF(A1>TODAY(),"Expired","")
 
Upvote 0
Thank you so much for the warm welcome, this is very useful :)

Is there a way in whcih more than 2 variables can be returned? In this instance:

Reference Cell Date > Today - Returns "Not Expired"
Reference Cell Date = Blank - Returns "Blank"<strike></strike>
Reference Cell Date < Today - Returns "Expired"

Thank you
 
Upvote 0
Try a nested IF statement:
Code:
=IF(A1>TODAY(),"Not Expired",IF(A1 < TODAY(),"Expired","Blank"))
<today(),"expired","blank"))[ code]<="" html=""></today(),"expired","blank"))[>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top