Look up multiple column values from Sheet B to match values in Sheet A to return value from Sheet B
Hello,
I'm trying to make a formula that counts values from Sheet A against multiple columns in Sheet B, if only 1 total match is found, then lookup values from Sheet A against Sheet B and based on the result, pull in the value from a Status column. If either too many same results or no results are found return a text value "Not Found" (this is temporary).
The closest I have gotten is the following formula (The formula is in Sheet A, "Projects Tracker X" is Sheet B):
=IF(COUNTIFS({Projects Tracker Establishment}, Location@row, {Projects Tracker Project ID}, [Project ID]@row, {Projects Tracker Project Name}, [Project Name]@row) = 1, (COLLECT({Projects Tracker Project Status}, {Projects Tracker Establishment}, Location@row, {Projects Tracker Project ID}, [Project ID]@row, {Projects Tracker Project Name}, [Project Name]@row), "Not Found")
Currently the formula works for the "Not Found" section, but returns #INVALID COLUMN VALUE if only 1 match is found.
Is anyone able to help me fix this please?
Thanks
Best Answer
-
Hi @Clare123
I hope you're well and safe!
Yes, absolutely.
Here's the structure.
=INDEX({ColumnWithTheValueYouWantToShow}, MATCH(CellThatHaveTheValueToMatch@row,{ColumnWithTheValueToMatchAgainsTheCell}, 0))
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
I am still working my way through what you are trying to do exactly, but you are missing a closing parenthesis.
-
Thank you. Oh yeah, sorry, it was a bad copy and paste
-
Can you use INDEX MATCH in Smartsheet's?
-
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Hi @Clare123
I hope you're well and safe!
Yes, absolutely.
Here's the structure.
=INDEX({ColumnWithTheValueYouWantToShow}, MATCH(CellThatHaveTheValueToMatch@row,{ColumnWithTheValueToMatchAgainsTheCell}, 0))
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hello,
Thank you for the help! I found the solution to my problem with INDEX COLLECT. I think I made things too complicated by trying to count the amount of matches found within multiple columns, and have instead used an IFERROR to flag any rows that do not have an exact match. The formula is as follows:
=IFERROR(INDEX(COLLECT({Projects Tracker Project Status}, {Projects Tracker Establishment}, Location@row, {Projects Tracker Project ID}, [Project ID]@row, {Projects Tracker Project Name}, [Project Name]@row), 1), "Not Found")
Thank you!
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.7K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 468 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!