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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!