If function with dates
Hi Experts,
I'm trying to create a formula which should give me a Date as result.
I have 2 check boxes and depends what it's clicked I would like to get the date below as results.
- If HALO Calendar is not clicked than DATE DATE(2022 / 8 / 26)
- IF HALO Calendar and Virtual Model CR1 is clicked than DATE(2022 / 10 / 13)
- If HALO Calendar is clicked and Virtual Model CR1 is NOT clicked than DATE(2022, 9, 14).
I tried several versions below but it's only partial working.
What is my mistake?
Thanks
=IF([Halo Calendar]@row = 0, DATE(2022 / 8 / 26), IF(AND([Halo Calendar]@row = 1, [Virtual Model CR1]@row = 1), DATE(2022 / 10 / 13), IF(AND([Halo Calendar]@row = 1, [Virtual Model CR1]@row = 0), DATE(2022, 9, 14))))
=IF([Halo Calendar]@row = 0, DATE(2022 / 8 / 26), IF([Virtual Model CR1]@row = 1, DATE(2022 / 10 / 13), DATE(2022, 9, 14)))
Best Answer
-
You pretty much had the formula correct but just what it was looking for was wrong, checkboxes are treated as checked = TRUE, unchecked = FALSE.
Also you needed to change the / for , in the first two DATE formulas.
So your formula should have been:
=IF([Halo Calendar]@row = FALSE, DATE(2022,8,26), IF(AND([Halo Calendar]@row = TRUE, [Virtual Model CR1]@row = TRUE), DATE(2022,10,13), IF(AND([Halo Calendar]@row = TRUE, [Virtual Model CR1]@row = FALSE), DATE(2022,9,14))))
Tested and working
Hope this helps
Thanks
Paul
Answers
-
You pretty much had the formula correct but just what it was looking for was wrong, checkboxes are treated as checked = TRUE, unchecked = FALSE.
Also you needed to change the / for , in the first two DATE formulas.
So your formula should have been:
=IF([Halo Calendar]@row = FALSE, DATE(2022,8,26), IF(AND([Halo Calendar]@row = TRUE, [Virtual Model CR1]@row = TRUE), DATE(2022,10,13), IF(AND([Halo Calendar]@row = TRUE, [Virtual Model CR1]@row = FALSE), DATE(2022,9,14))))
Tested and working
Hope this helps
Thanks
Paul
-
Thanks a lot Paul it's working! 😊
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!