Index Match With Multiple Criteria

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create an index formula with multiple criteria in Column P. For this formula I would like to pull in the corresponding value from my table if the value in N is equal to the array in S4:S20, the Value in Column B is equal to the array V3:Y3 and the value in column O falls between the weight Min and Max Columns T +U. For example, if a Product is Large Standard, .0625lbs and has unit identifier of 1 should return a value of $5.75 While I have tried creating this formula in my cells below, I continue to receive errors. Any help in solving this would be greatly appreciated. Thank You!
1728077561555.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello, try the following (the "$B2=$V$3:$Y$3" part should be part of the "column_num" argument instead of "row_num" argument):

Excel Formula:
=INDEX($V$4:$Y$20,XMATCH(1,($N2=$S$4:$S$20)*($O2>=$T$4:$T$20)*($O2<=$U$4:$U$20)),XMATCH($B2,$V$3:$Y$3))
 
Upvote 0
Solution
For the future I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. :(
If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.

Another option would be
Excel Formula:
=FILTER(FILTER(V$4:Y$20,(S$4:S$20=N2)*(T$4:T$20<O2)*(U4:U20>=O2)),V$3:Y$3=B2)
 
Upvote 0
Hello, try the following (the "$B2=$V$3:$Y$3" part should be part of the "column_num" argument instead of "row_num" argument):

Excel Formula:
=INDEX($V$4:$Y$20,XMATCH(1,($N2=$S$4:$S$20)*($O2>=$T$4:$T$20)*($O2<=$U$4:$U$20)),XMATCH($B2,$V$3:$Y$3))
This worked! Thank You!
 
Upvote 0

Forum statistics

Threads
1,223,876
Messages
6,175,123
Members
452,614
Latest member
MRSWIN2709

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