Index and Match with Multiple Criteria

matthewlouis

Active Member
Joined
Mar 28, 2014
Messages
374
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am trying to match 3 rows of data with data in another tab ('1'). For some reason, some of the returned values are correct . . . but some are returning the results from a different row.

{=INDEX('1'!$R$5:$R$55,MATCH(C71&D71&E71,'1'!$A$5:$A$55&'1'!$B$5:$B$55&'1'!$C$5:$C$55),0)}

When it looks in '1'!$R$5:$R$55, it returns the correct information for some of these . . . but sometimes, it returns data that is 5 or 6 rows off.

For example, c71=7, D71=3, and E71=4. It looks in a row in '1'! for those numbers and matches the number of times that combination of 7 3 4 occurs. I made sure the C matches the $A$, the D matches the $B$, and the E matches the $C$.

In some of them, it matches correctly . . . some it does not. It always returns the right number but it is not the right row. There are no decimals and I made sure all were numbers, not text.

Anyone know why it's matching the wrong rows?

Thanks in advance!
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try adding this
=INDEX('1'!$R$5:$R$55,MATCH(C71&D71&E71,'1'!$A$5:$A$55&'1'!$B$5:$B$55&'1'!$C$5:$C$55,0),0)
which specifies an exact match
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top