excel - Can a VLOOKUP take an array as criteria? -
instead of:
=iferror(vlookup("red",$aa$5:$ab$54,2,false),0) + iferror(vlookup("green",$aa$5:$ab$54,2,false),0) + iferror(vlookup("blue",$aa$5:$ab$54,2,false),0) can write this?
=iferror(vlookup(array("red","green","blue"),$aa$5:$ab$54,2,false),0) i tried:
=iferror(vlookup(and("red","green","blue"),$aa$5:$ab$54,2,false),0) but returned #value (when no iferror in place)
or if have list of 20+ values, can write them named range used criteria?
use this:
=sumproduct(sumif(aa:aa,{"red","green","blue"},ab:ab)) you can replace {"red","green","blue"} range of cells.

Comments
Post a Comment