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
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!