Formula Date Great Than and if cell not blank

Groovy Chick

Board Regular
Joined
Oct 10, 2017
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hi, I have dates in cells AA3 and AC3. What I want to do is return Yes if the date in cell AA3 is greater than the date in cell AC3 but only if the date in cell AA3 is less than today. If the date in cell AA3 is greater than today I want to ignore it, so probably return an N/A. If cell AC3 is blank and AA3 is less than today then I still want to return a yes but if cell AC3 is blank and AA3 is greater than today I would want to ignore it, so probably return an N/A. For anything else I would like to return No. Can anyone help? I am going around in circles! Many thanks.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Does this do what you want?
Excel Formula:
=IF(AA3>TODAY(),"N/A",IF(AA3>AC3,"Yes","No"))
 
Upvote 0
Solution
Does this do what you want?
Excel Formula:
=IF(AA3>TODAY(),"N/A",IF(AA3>AC3,"Yes","No"))
Hi Joe4, that seems to work really well, thank you very much! Just one more question. If I also wanted to add a statement that if in cell C the text is "event" then also return an N/A where would that go in the formula?
 
Upvote 0
Hi Joe4, that seems to work really well, thank you very much! Just one more question. If I also wanted to add a statement that if in cell C the text is "event" then also return an N/A where would that go in the formula?
Just add an OR clause to the intial check for "N/A" conditions, i.e.
Rich (BB code):
=IF(OR(C3="event",AA3>TODAY()),"N/A",IF(AA3>AC3,"Yes","No"))
 
Upvote 0
You are welcome.
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,214,069
Messages
6,117,523
Members
448,765
Latest member
crobehh

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