Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel VLOOKUP可以将数组作为标准吗?_Excel_Formula - Fatal编程技术网

Excel VLOOKUP可以将数组作为标准吗?

Excel VLOOKUP可以将数组作为标准吗?,excel,formula,Excel,Formula,而不是: =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) 我可以这样写吗 =IFERROR(VLOOKUP(Array("Red","Green","Blue"),$AA$5:$AB$54,2,FALSE),0) 我试过: =IFERROR(VL

而不是:

=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)
我可以这样写吗

=IFERROR(VLOOKUP(Array("Red","Green","Blue"),$AA$5:$AB$54,2,FALSE),0)
我试过:

=IFERROR(VLOOKUP(AND("Red","Green","Blue"),$AA$5:$AB$54,2,FALSE),0)
但当没有发生错误时,该值返回

或者,如果我有一个20多个值的列表,我可以将它们写入一个可以用作标准的命名范围吗

=SUMPRODUCT(SUMIF(AA:AA,{"Red","Green","Blue"},AB:AB))
您还可以用一系列单元格替换{Red,Green,Blue}


在我看来更像是一个SUMIF。@ScottCraner=sumifa5:AA54,ORRed,绿色,蓝色,AB5:AB54仍然为我返回0。是否有其他方法将多个条件写入SUMIF?