ninjapaping
New Member
- Joined
- Aug 6, 2024
- Messages
- 11
- Office Version
- 365
- Platform
- Windows
=AND((YEAR(L2)+10)=YEAR(TODAY()))
=OR((YEAR(L2)+10)=YEAR(TODAY()))
=OR(YEAR(L2)=YEAR(TODAY())-10,YEAR(L2)=YEAR(TODAY())-15,YEAR(L2)=YEAR(TODAY())-20,YEAR(L2)=YEAR(TODAY())-25)
Yes, that's exactly it. Thanks!The AND inor the OR inExcel Formula:=AND((YEAR(L2)+10)=YEAR(TODAY()))
do nothing as there isn't a 2nd criteriaExcel Formula:=OR((YEAR(L2)+10)=YEAR(TODAY()))
If you mean you are using the OR for multiple tests of the dates then yes that works if you are using the same format for each test
Excel Formula:=OR(YEAR(L2)=YEAR(TODAY())-10,YEAR(L2)=YEAR(TODAY())-15,YEAR(L2)=YEAR(TODAY())-20,YEAR(L2)=YEAR(TODAY())-25)