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
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!