If formula to check greater than today date

nr6281

New Member
Joined
Jun 19, 2019
Messages
37
=IF(AL2="",AND(OR(AD2="Coffee",AD2="Tea",AD2="Soap",AD2="Milk"),YEAR(AE2)>TODAY()))

Hi,

Can someone help me correct the above formula?

AL: Column has words and blanks from inventory (Blanks remaining inventory, filled are sold)
AD= Is the product we have
AE= Date

So if the AL column is blank and any of the product in AD matching the formula above is older than the date for the day (Today) should come as true.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Maybe
=IF(AND(AL2="",OR(AD2="Coffee",AD2="Tea",AD2="Soap",AD2="Milk")),IF(AE2>TODAY(),TRUE))
 
Upvote 0
HI,

Just a small change in this I want to capture dates that are over 7 years from the product date is that possible?
 
Upvote 0
What cell is the date you want to "capture" in? and do you mean dates 7 years after the product date or before?
 
Upvote 0
I thought AE2 had the product date? where is the date that is being checked 7 years from the product date (or if AE2 isn't the product date where is the product date?).

Also you haven't answered the other question.
 
Upvote 0
Yes you are correct AE2 has the product date and there is date that is being checked 7 years is at AD2
 
Upvote 0
But in your OP AD2 holds Tea, Coffee etc :confused:
 
Upvote 0

Forum statistics

Threads
1,224,752
Messages
6,180,742
Members
452,996
Latest member
nelsonsix66

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