Lookup Approximate match against multiple criteria!

Kamran01

Board Regular
Joined
Feb 10, 2017
Messages
86
Hello Everyone,

I have a data table and i want to find approximate match against that table,

CATEGORYDENIMDENIMNON_DENIMNON_DENIM
RANGENORMAL WASHHEAVY WASHWASHDYE
999
8.00%​
12.00%​
8.00%​
12.00%​
2,999
6.00%​
8.00%​
6.00%​
8.00%​
4,999
4.00%​
6.00%​
4.00%​
6.00%​
9,999
3.00%​
4.50%​
3.00%
4.50%​
14,999
2.50%​
4.00%​
2.50%​
4.00%​
29,999
2.00%​
3.50%​
2.00%​
3.50%​
49,999
1.50%​
3.00%​
1.50%​
3.00%​
100,000
1.00%​
2.50%​
1.00%​
2.50%​
200,000
0.50%​
2.00%​
0.50%​
2.00%​
1,000,000
0.50%​
2.00%​
0.50%​
2.00%​

I want below result, if quantity is less then their maximum range suppose 5000 is less then their 9,999 then result should be like below table.

QTYTYPESWASH_CATRESULT REQUIRED
5000NON_DENIMWASH3.00%

Looking forward for your kind response in this regard,

Best Regard,
Kamran Noor
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Maybe...

Book1
ABCDE
1CATEGORYDENIMDENIMNON_DENIMNON_DENIM
2RANGENORMAL WASHHEAVY WASHWASHDYE
39990,080,120,080,12
429990,060,080,060,08
549990,040,060,040,06
699990,030,0450,030,045
7149990,0250,040,0250,04
8299990,020,0350,020,035
9499990,0150,030,0150,03
101000000,010,0250,010,025
112000000,0050,020,0050,02
1210000000,0050,020,0050,02
13
14QTYTYPESWASH_CATRESULT REQUIRED
155000NON_DENIMWASH0,03
Plan4
Cell Formulas
RangeFormula
D15D15=INDEX(INDEX(B$3:E$12,0,MATCH(C15,B$2:E$2,0)),MATCH(A15,A$3:A$12)+1*ISNA(MATCH(A15,A$3:A$12,0)))


M.
 
Upvote 0
Thanks @Marcelo Branco it's done, and even i have solved this mystery with my own mind.

{=INDEX($B$5:$E$14,IFERROR(MATCH(A18-1,$A$5:$A$14,1)+1,1),MATCH(B18&C18,B3:E3&B4:E4,0))}

Can you please validate my answer too is it driving OK?

Thank you,
Kamran Noor
 
Upvote 0
Thanks @Marcelo Branco it's done, and even i have solved this mystery with my own mind.

{=INDEX($B$5:$E$14,IFERROR(MATCH(A18-1,$A$5:$A$14,1)+1,1),MATCH(B18&C18,B3:E3&B4:E4,0))}

Can you please validate my answer too is it driving OK?

Thank you,
Kamran Noor

From your data sample it seemed to me that the Categories (Normal Wash, Heavy Wash, Wash, Dye) are unique.

If I am correct, it is not necessary to use the Type criterion (DENIM, NON_DENIN) - so the category would suffice as a criterion to search for the correct column.

M.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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