Index Match (multiple columns)

ScottSom

New Member
Joined
Mar 2, 2015
Messages
6
I am using Excel 2007 (hopefully upgrading soon) and I am trying to look up some values in a large spreadsheet using the Index Match and i am running into problems with the last match. The first 3 columns i am looking for an exact match by word or number but the final i am looking for something greater than or equal to the value i have entered. How should the formula read when one is not an exact match?

Appreciate any help, thanks
Scott
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Here is a small sample of the data and the search info i would be trying to find. Length is great than or equal to the value entered.

Table
DeptSizeCodeLengthRate
10.5RD1.0821000
10.5SQ2.0822000
10.75RD2.9993000
10.75RD3.4164000
20.5RD1.0821000
20.5REC2.0822000
20.75REC2.9993000
20.75RD3.4164000
Find>=
DeptSizeCodeLengthRate
10.75RD3.01?

<colgroup><col style="width: 28pt; mso-width-source: userset; mso-width-alt: 1353;" width="37"> <col style="width: 32pt; mso-width-source: userset; mso-width-alt: 1572;" width="43"> <col style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;" width="51"> <col style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;" width="58"> <col style="width: 42pt; mso-width-source: userset; mso-width-alt: 2048;" width="56"> <tbody>
</tbody>
 
Upvote 0
Thanks for the sample. Not sure what value you want to see in the stead of the question mark...

E13, control+shift+enter, not just enter:
Rich (BB code):

=IFERROR(1/(1/MIN(IF($A$2:$A$9=$A13,IF($B$2:$B$9=$B13,
    IF($C$2:$C$9=$C13,IF($D$2:$D$9>=$D13,$E$2:$E$9)))))),"Not available")
 
Upvote 0
Thanks for the Help. I wasn't thinking of using the nested If statment in an array, I did manage to get it to work using Max instead of Min. One question, i am trying the figure out what the "1/(1/" is for?

Thanks agian
 
Upvote 0
Thanks for the Help. I wasn't thinking of using the nested If statment in an array, I did manage to get it to work using Max instead of Min. One question, i am trying the figure out what the "1/(1/" is for?

Thanks agian

Are you saying that you needed the highest rate associated with the stated conditions?
 
Upvote 0
Yes and the formula works using the max instead of min that you had posted. Thank you, i just can't quite follow the logic in your statement with the 1/(1/.
 
Upvote 0
Yes and the formula works using the max instead of min that you had posted. Thank you,

You are welcome.

i just can't quite follow the logic in your statement with the 1/(1/.

When no data is available, that bit will cause an error on which IFERROR acts with "not available." If a max value is available, say 50,

1/(1/50)

will return 50 as we want.
 
Upvote 0
I fully understand now, because it provides an error because it's a logic statement. Thanks so much for the Help!
 
Upvote 0

Forum statistics

Threads
1,216,060
Messages
6,128,548
Members
449,457
Latest member
ncguzzo

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