INDEX and MATCH to complete a Two Column Look-up
I have used excel to complete two column look-ups before using this formula:
=INDEX(P32:P41,MATCH(J5&D5,E32:E41&B32:B41,0))
J5=column 1 item to match
D5=column 2 item to match
E32:E41= column 1 array to look-up
B32:B41=column 2 array to look-up
However, Smartsheet does not seem to recognize the "&" ampersand function in the formula.
What is a workaround for this missing feature?
Comments
-
Can you provide a screenshot of what you are trying to accomplish with mock data manually entered?
-
Here is the original Excel document i was using. The two column look-up function formula works.
I select the "Week" and the "STORE" and it returns the value in the "Labour" column.
Here is the excel formula I used: =INDEX(P32:P41,MATCH(J5&D5,E32:E41&B32:B41,0))
Here are my smartsheets. The master data is in one sheet, and the table is in another.
Here is the smartsheet formula that is the same as excel, but does not work:
=INDEX({SUN Labour},match([C2]1&[C5]1,{Date}&{Store},0))
-
Ok. You are going to want to use an INDEX/COLLECT instead.
=INDEX(COLLECT({Labor Range}, {Date Range}, [C2]1, {Store Range}, [C5]1))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!