# Formula Date Great Than and if cell not blank

#### Groovy Chick

##### Board Regular
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

Does this do what you want?
Excel Formula:
``=IF(AA3>TODAY(),"N/A",IF(AA3>AC3,"Yes","No"))``

#### Groovy Chick

##### Board Regular
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

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"))``

#### Groovy Chick

##### Board Regular
Thank you so much for your help. Pefect.

#### Joe4

You are welcome.
Glad I was able to help.

Replies
8
Views
114
Replies
8
Views
139
Replies
0
Views
79
Replies
1
Views
153
Replies
3
Views
147

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.

### Which adblocker are you using?

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

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