Formula Date Great Than and if cell not blank

Groovy Chick

Board Regular
Joined
Oct 10, 2017
Messages
69
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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,098
Office Version
  1. 365
Platform
  1. Windows
Does this do what you want?
Excel Formula:
=IF(AA3>TODAY(),"N/A",IF(AA3>AC3,"Yes","No"))
 
Solution

Groovy Chick

Board Regular
Joined
Oct 10, 2017
Messages
69
Office Version
  1. 2016
Platform
  1. Windows
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?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,098
Office Version
  1. 365
Platform
  1. Windows
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"))
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,098
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
Glad I was able to help.
 

Forum statistics

Threads
1,181,436
Messages
5,929,875
Members
436,700
Latest member
lewismorg

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
Top