How to use IF function to compare two dates and tick checkbox
I would like to use a IF function that test that when the date that the user input in a form in the Form sheet is the same is the date listed in the "Availability" sheet, it must tick the checkbox.
I am currently using this formula but get a "INVALID OPERATION" error. Both columns are 'Date' type.
The objective is to use it as a booking form where a report will show which dates are still available to be booked (the unchecked rows)
Answers
-
I would use a "Count(collect())" Combo to see if it is bigger then 1.
=if(count(collect({form range 1},{form range 1},=date@row))>=1,1,0)
this will count all the cells that share the same date has the "Availability". If it is greater or equal to 1, the box is ticked.
-
Try this:
=IF(COUNTIFS({Form Sheet Date Column}, @cell = Date@row)> 0, 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!