INDEX/MATCH with a HAS Function for Multi-Select Column
I am trying to create an INDEX/MATCH where the INDEX is a Checkbox column and the MATCH is a multi-select column. I am not sure how to incorporate the HAS function for the multi-select column. I would like the High Priority flag marked if any/1 or more of the Sites Under Consideration are flagged a High Priority in the separate sheet.
I have gotten the below results with the below formula, but it's not flagging the High Priority? column, instead inputing in True or False. It also doesn't appear to be functioning properly for every row.
=IF(NOT(ISBLANK([Sites Under Consideration]@row)), JOIN(COLLECT({Affiliate Sites Range 2}, {Key ID}, HAS(@cell, [Sites Under Consideration]@row)))
Any assistance is appreciated!
Answers
-
I would use an IF/COUNTIFS combo. If the number of rows in the reference sheet that contain one of the entries in the dropdown column and have a flag flagged is greater than zero, then flag it here on the destination sheet.
=IF(COUNTIFS({Key ID}, HAS(@cell, [Sites Under Consideration]@row, {Affiliate Sites Range 2}, @cell = 1)> 0, 1)
-
@Paul Newcome Thank you! I tried that and got #incorrect argument set. Any ideas?
-
Sorry about that. I missed a parenthesis.
=IF(COUNTIFS({Key ID}, HAS(@cell, [Sites Under Consideration]@row), {Affiliate Sites Range 2}, @cell = 1)> 0, 1)
-
@Paul Newcome Thank you. It is still not working for thew rows with more than one Sites Under Consideration. The rows highlighted yellow should be flagged, as they contain a high priority site on the Affiliate Sites sheet.
I appreciate your help! Let me know if you think of any other solution.
-
Let's try flipping the HAS argument.
=IF(COUNTIFS({Key ID}, HAS([Sites Under Consideration]@row, @cell), {Affiliate Sites Range 2}, @cell = 1)> 0, 1)
-
@Paul Newcome THANK YOU SO MUCH! That worked! You are a gem!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!