INDEX(MATCH) or JOIN(COLLECT)?
When we first started using Smartsheet, the rep who handled our "Launch Package" created the following formula.
=IFERROR(IFERROR(INDEX({SupplierItemNumber-AL}, MATCH($[Our Part Number]@row, {OurPN-AL}, 0)), INDEX({SupplierItemNumber-MZ}, MATCH($[Our Part Number]@row, {OurPN-MZ}, 0))), "ERROR - CHECK PART#")
It searches two sheets for "OurPN" and when it finds a match it returns the Supplier PN. The problem is there may be multiple suppliers that have their own "supplier PN" for "OurPN". So, it returns the first match it finds.
I want to be able to search multiple sheets and match "OurPN" and a specific supplier then return the supplier PN.
Not sure if INDEX(MATCH) or JOIN(COLLECT) would work better. Any suggestions?
Comments
-
I talked to Technical Support and they came up with a formula that would work for my situation.
=JOIN(COLLECT({Sheet 1 Range 1}, {Sheet 1 Range 2}, Criteria1, {Sheet 1 Range 3}, Criteria2)) + " " + JOIN(COLLECT({Sheet 2 Range 1}, {Sheet 2 Range 2}, Criteria1, {Sheet 2 Range 3}, Criteria 2))
-
This came in handy for me today. Thanks for posting what Tech Support came up with.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!