Complex IF statement between two sheets with a checkbox
Hi,
I am having trouble figuring out how to create a formula. I have one sheet "Step 1-Validations-CBRE" that will contain a full list of vehicle IDs and another sheet "Fleet Inspections" that will contain the submissions for vehicle inspections.
Ultimately, I am trying to determine which vehicles have had inspections completed for the current week and easily see which ones have not. I have the current week formulas working fine. I just now need a formula in the "Step 1-Validations-CBRE" sheet.
I tried to illustrate what I am looking for below. Is anyone able to help me determine the appropriate formula? Thank you!!
Best Answer
-
You are going to want something that looks similar to:
=IF(COUNTIFS({Other Sheet Compass Vehicles}, CBRE@row, {Other Sheet Week}, 1) = 1, 1)
Basically we count how many times that particular vehicle has the week box checked in the other sheet. There should only be 1 per vehicle per week, so we say that if that count equals 1, then check the box. If the count does not equal 1 meaning there are no rows in the other sheet that contain that vehicle and a checked box, then leave the box unchecked.
Answers
-
You are going to want something that looks similar to:
=IF(COUNTIFS({Other Sheet Compass Vehicles}, CBRE@row, {Other Sheet Week}, 1) = 1, 1)
Basically we count how many times that particular vehicle has the week box checked in the other sheet. There should only be 1 per vehicle per week, so we say that if that count equals 1, then check the box. If the count does not equal 1 meaning there are no rows in the other sheet that contain that vehicle and a checked box, then leave the box unchecked.
-
Thank you so much! I was trying to make it way harder than it needed to be. Lol!
-
Happy to help. 👍️
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!