How to reference another sheet in a formula
I've been trying to write a formula that will "Check a checkbox (in sheet A) IF [name] cell (in sheet A) is found in {name} column (in sheet B), AND the box in [checkbox] column (in sheet B) is checked."
Basically, does a particular staff member's name appear on another sheet, and if so does it have a checkbox checked in that row.
I've written nested IFs, ANDs, CONTAINS, HAS, etc, statements and just can't get anything to return something other than "Invalid Operation".
Just a couple things I tried, in case I get close enough for someone to be able to fix!
=IF(AND(CONTAINS([namesheetA]7, {NameSheetB}), {CheckboxSheetB} = 1), 1)
=IF(AND({NameSheetB} = [nameSheetA]9, {CheckboxSheetB} = 1), 1)
Any help would be appreciated.
-KT
Best Answer
-
Try something like this...
=IF(COUNTIFS({NameSheetB}, [nameSheetA]@row, {CheckboxSheetB}, 1) > 0, 1)
Answers
-
Try something like this...
=IF(COUNTIFS({NameSheetB}, [nameSheetA]@row, {CheckboxSheetB}, 1) > 0, 1)
-
Thank you Paul! I just had to take the @row off and it worked just fine.
-
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
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!