Index Match question

Hello, I have 2 sheets, 1 is a tracking sheet, the other is a reference sheet. I need to pull into the tracking sheet a dollar amount from the reference sheet. The dollar amount is based on the information pulled from 2 different columns - Job Title and # of hours. I tried to use a join function to simplify the index match, and created a "Concatenate" column, but am getting "Invalid Data Type" error.
Here's a screen shot of my columns:
Tracking sheet
Reference sheet
The formula needs to match the Concatenate columns in the tracking & reference sheets and bring back into the Tracking sheet the "Subtotal $ Amount" from the reference sheet.
I have tried about 100 different iterations, but the latest formula I tried looks like this:
=INDEX({Incentive Reference Sheet Range - Concatenate}, {Incentive Reference Sheet Range - $$$ amount}, MATCH([Concatenate Column]@row))
Any ideas? And, thanks so much!!!!
Best Answers
-
Hey @Jen H.
An Index/Match has the syntax of
=Index(source range you want, MATCH(what you are matching from, source range matching to, 0)). As you realized, the INDEX/MATCH can only work with one criteria which you resolved with the concatenation. You could use your concatenation if the syntax of your formula was corrected.
=INDEX({Incentive Reference Sheet Range - Concatenate}, MATCH([Concatenate Column]@row,{Incentive Reference Sheet Range - $$$ amount}, 0))
An INDEX/COLLECT allows you to collect a range based on any number of criteria. You wouldn't need any concatenation. This is a powerful formula and one you need in your arsenal of formulas.
=INDEX(COLLECT({Incentive Reference Sheet Subtotal $ Amount column}, {Incentive Reference Sheet Job Title Column}, [Job Title]@row, {Incentive Reference Sheet Shift Duration Hours column}, [Number of Hours]@row),1)
Do these give you the results you expect?
Kelly
-
@Kelly Moore -thank you so much! This worked perfectly!!!! I will definitely use INDEX(COLLECT) in the future. This is such a powerful formula. Thanks again!!!
Answers
-
Hey @Jen H.
An Index/Match has the syntax of
=Index(source range you want, MATCH(what you are matching from, source range matching to, 0)). As you realized, the INDEX/MATCH can only work with one criteria which you resolved with the concatenation. You could use your concatenation if the syntax of your formula was corrected.
=INDEX({Incentive Reference Sheet Range - Concatenate}, MATCH([Concatenate Column]@row,{Incentive Reference Sheet Range - $$$ amount}, 0))
An INDEX/COLLECT allows you to collect a range based on any number of criteria. You wouldn't need any concatenation. This is a powerful formula and one you need in your arsenal of formulas.
=INDEX(COLLECT({Incentive Reference Sheet Subtotal $ Amount column}, {Incentive Reference Sheet Job Title Column}, [Job Title]@row, {Incentive Reference Sheet Shift Duration Hours column}, [Number of Hours]@row),1)
Do these give you the results you expect?
Kelly
-
@Kelly Moore -thank you so much! This worked perfectly!!!! I will definitely use INDEX(COLLECT) in the future. This is such a powerful formula. Thanks again!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 449 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!