J
John
Hi,
I am trying to return a price based on multiple Vlookups and the number of
items ordered.
I have seen the examples of multiple columns lookups, but I can not figure
out how to add then "range" component.
Here is the table:
Category Product Start End Price
Hardware Prod A 1 2 $ 20.00
Hardware Prod A 3 5 $ 18.00
Hardware Prod A 6 10 $ 16.00
Hardware Prod B 1 2 $ 15.00
Hardware Prod B 3 5 $ 13.00
Hardware Prod B 6 10 $ 11.00
Hardware Prod C 1 2 $ 10.00
Hardware Prod C 3 5 $ 9.00
Hardware Prod C 6 10 $ 7.00
Software Prod A 1 2 $ 30.00
Software Prod A 3 5 $ 28.00
Software Prod A 6 10 $ 26.00
Software Prod B 1 2 $ 25.00
Software Prod B 3 5 $ 24.00
Software Prod B 6 10 $ 23.00
I know how to get the multiple match
=INDEX($E$2:$E$16,MATCH("Hardware",IF($B$2:$B$16="Prod B",$A$2:$A$16),0))
which returns the value of $15.00.
But how can I do the lookup of the range in columns C and D when the person
orders 4 items? I want to return $13.00.
Thanks,
John
I am trying to return a price based on multiple Vlookups and the number of
items ordered.
I have seen the examples of multiple columns lookups, but I can not figure
out how to add then "range" component.
Here is the table:
Category Product Start End Price
Hardware Prod A 1 2 $ 20.00
Hardware Prod A 3 5 $ 18.00
Hardware Prod A 6 10 $ 16.00
Hardware Prod B 1 2 $ 15.00
Hardware Prod B 3 5 $ 13.00
Hardware Prod B 6 10 $ 11.00
Hardware Prod C 1 2 $ 10.00
Hardware Prod C 3 5 $ 9.00
Hardware Prod C 6 10 $ 7.00
Software Prod A 1 2 $ 30.00
Software Prod A 3 5 $ 28.00
Software Prod A 6 10 $ 26.00
Software Prod B 1 2 $ 25.00
Software Prod B 3 5 $ 24.00
Software Prod B 6 10 $ 23.00
I know how to get the multiple match
=INDEX($E$2:$E$16,MATCH("Hardware",IF($B$2:$B$16="Prod B",$A$2:$A$16),0))
which returns the value of $15.00.
But how can I do the lookup of the range in columns C and D when the person
orders 4 items? I want to return $13.00.
Thanks,
John