Need to look at a date and check box based on 3 criteria
I am trying to make a formula that looks at a date field and checks box if
1) Task date is over 3 years ago;
2) Retired isn't checked;
3) Type is a specific kind (Type S)
I can get the first part to work but I always run into problems with IF statements that have multiple criteria.
=IF(ISDATE([Task Last Completed]@row), IF([Task Last Completed]@row <= TODAY(-1096), 1)) is what I currently have that works but it doesn't look at the two additional criteria I need it to.
I've attached a screenshot of my sheet. The above formula is in the Over 3 years column.
Any help would be greatly appreciated.
Peggy
Answers
-
Hi Peggy,
Hope this helps!
=IF(AND(YEAR(TODAY()) - YEAR([Task Last Completed]@row) >= 3, Retired@row = 0, Type@row = "Type S"), 1, 0)
-
@Jayesh Nathani - thank you very much! That worked! I'd never used the YEAR function but now I'm reviewing all my sheets to see if I can modify it - thank you!
-
Happy to help :)
Have a great day.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!