excel - Look up value with multiple criteria -


data

category    qty    $ disc /unit           2    b           4    c           2              7              7              16   b           7    c           5              1    c           13             6    c           9    b           3              4    c           3      category  min qty  max qty  $ disc /unit         1        5        $1          6        10       $2          11       11 +     $3  b         1        5        $2  b         6        10       $3  b         11       11 +     $4  c         1        5        $3  c         6        10       $4  c         11       11 +     $5  

i need disc/unit table 2 criteria

  1. category can a, b, or c
  2. qty can between / equal min. qty , max qty ranges.

this ain't pretty works, if , big if:

  • your data sorted ascending column g , column h
  • you don't need column can keep decoration purposes

the formula in cell d2 , copied down is

=index(index($j$2:$j$10,match(a2,$g$2:$g$10,0)):index($j$2:$j$10,match(a2,$g$2:$g$10,1)),match(b2,index($h$2:$h$10,match(a2,$g$2:$g$10,0)):index($h$2:$h$10,match(a2,$g$2:$g$10,1)),1)) 

do not apply formula whole columns unless stare @ "calculating -- 2%" message minutes on end.

enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -