In cell C2, try this:
Copy/Autofill down.Code:=INDEX($B$10:$E$14,MATCH(A2,$A$10:$A$14,0),MATCH(B2,{0,501,1001,3001},1))
In cell A13, you have a space " " after the text, which is why the formula isn't finding a result in cell C3.
Cheers,
I have a table of rates with product types and quantities.
There are 5 product types and the rate changes for each one by quantity as follows: 0 – 500, 501-1000, 1001-3000, 3000+
I can use the following formula which works OK for one product type but excel will not allow me to nest enough IF statements to satisfy the number of product types.
=IF(B2="Type1",IF(AND(C2>0,C2<=500),B10,IF(B2="Type1",IF(AND(C2>500,C2<=1000),C10,……etc
I believe I can use MATCH but can’t seem to use the <,>= to satisfy the quantities. Can anyone help?
In cell C2, try this:
Copy/Autofill down.Code:=INDEX($B$10:$E$14,MATCH(A2,$A$10:$A$14,0),MATCH(B2,{0,501,1001,3001},1))
In cell A13, you have a space " " after the text, which is why the formula isn't finding a result in cell C3.
Cheers,
Bookmarks