If statements

jamie_lo75

New Member
Joined
Sep 7, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
1690268249765.png

=IF(ISBLANK(RC[-1]),"Not Done",IF(RC[-1]+730<=TODAY(),"Expired",IF(RC[-1]<=TODAY()+30,"About to Expire","Valid")))

I need help guys, not sure how to explain, but I want the if statement to show EXPIRED after 2 years and About to Expire 1 month before but 2 years
*The Radiation Safety Column should have 2 years validity so I want to show, VALID, ABOUT TO EXPIRE & EXPIRED
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Like the below?

Book1
AB
1Date
227/06/2021Expired
328/06/2021Expired
429/06/2021Expired
530/06/2021Expired
601/07/2021Expired
702/07/2021Expired
803/07/2021Expired
904/07/2021Expired
1005/07/2021Expired
1106/07/2021Expired
1207/07/2021Expired
1308/07/2021Expired
1409/07/2021Expired
1510/07/2021Expired
1611/07/2021Expired
1712/07/2021Expired
1813/07/2021Expired
1914/07/2021Expired
2015/07/2021Expired
2116/07/2021Expired
2217/07/2021Expired
2318/07/2021Expired
2419/07/2021Expired
2520/07/2021Expired
2621/07/2021Expired
2722/07/2021Expired
2823/07/2021Expired
2924/07/2021Expired
3025/07/2021Expired
3126/07/2021About to expire
3227/07/2021About to expire
3328/07/2021About to expire
3429/07/2021About to expire
3530/07/2021About to expire
3631/07/2021About to expire
3701/08/2021About to expire
3802/08/2021About to expire
3903/08/2021About to expire
4004/08/2021About to expire
4105/08/2021About to expire
4206/08/2021About to expire
4307/08/2021About to expire
4408/08/2021About to expire
4509/08/2021About to expire
4610/08/2021About to expire
4711/08/2021About to expire
4812/08/2021About to expire
4913/08/2021About to expire
5014/08/2021About to expire
5115/08/2021About to expire
5216/08/2021About to expire
5317/08/2021About to expire
5418/08/2021About to expire
5519/08/2021About to expire
5620/08/2021About to expire
5721/08/2021About to expire
5822/08/2021About to expire
5923/08/2021About to expire
6024/08/2021About to expire
6125/08/2021About to expire
6226/08/2021Valid
6327/08/2021Valid
6428/08/2021Valid
6529/08/2021Valid
6630/08/2021Valid
6731/08/2021Valid
6801/09/2021Valid
6902/09/2021Valid
7003/09/2021Valid
7104/09/2021Valid
7205/09/2021Valid
7306/09/2021Valid
7407/09/2021Valid
7508/09/2021Valid
7609/09/2021Valid
7710/09/2021Valid
7811/09/2021Valid
7912/09/2021Valid
8013/09/2021Valid
8114/09/2021Valid
8215/09/2021Valid
8316/09/2021Valid
8417/09/2021Valid
8518/09/2021Valid
8619/09/2021Valid
8720/09/2021Valid
8821/09/2021Valid
8922/09/2021Valid
9023/09/2021Valid
9124/09/2021Valid
9225/09/2021Valid
9326/09/2021Valid
9427/09/2021Valid
9528/09/2021Valid
9629/09/2021Valid
9730/09/2021Valid
9801/10/2021Valid
9902/10/2021Valid
10003/10/2021Valid
10104/10/2021Valid
Sheet1
Cell Formulas
RangeFormula
A2:A101A2=SEQUENCE(100,1,44374,1)
B2:B101B2=LET(d,A2#,MAP(d,LAMBDA(x,IF(EDATE(x,24)<=TODAY(),"Expired",IF(EDATE(x,23)<=TODAY(),"About to expire","Valid")))))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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