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
- Smartsheet Customer Resources
- 62.2K Get Help
- 360 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!