Checkbox with IF AND formula- satisfy two criteria simultaneously
Hi,
I want to add a formula to a checkbox column, the purpose is to automatically check the box once the cell satisfies two criteria simultaneously.
Criteria 1: Phase column=Milestone
Criteria 2: Finish Date column<= 03/11/2024
I have tried a few IF AND formulas but still can't get the result desired, loosing temper now :(
This is my current formula:
=IF(AND(Phase@row = "Milestone", Finish@row <= "03/11/24"), "yes", "no")
Please help thank you!
Best Answer
-
How about this?
=IF(AND( Phase@row = "Milestone", Finish@row <= DATE(2024, 3, 11)), 1, 0)
...
Answers
-
=IF(AND( Phase@row = "Milestone", Finish@row <= date(2024, 3,11), "1", "0")
1 and 0 are the switches for checkboxes.
For DATEs, use the function
DATE (YYYY,MM,DD)
...
-
Thanks!!! I used 1,0 too but it didn't work, I just copied your formula to the column, it shows INVALID OPERATION
-
How about this?
=IF(AND( Phase@row = "Milestone", Finish@row <= DATE(2024, 3, 11)), 1, 0)
...
-
OMG, you made my day. Thank you!!!!It worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!