Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.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
Google sheets 如何索引和匹配4个标准_Google Sheets_Concatenation_Array Formulas_Google Sheets Formula_Gs Vlookup - Fatal编程技术网

Google sheets 如何索引和匹配4个标准

Google sheets 如何索引和匹配4个标准,google-sheets,concatenation,array-formulas,google-sheets-formula,gs-vlookup,Google Sheets,Concatenation,Array Formulas,Google Sheets Formula,Gs Vlookup,我使用4个标准来确定零售价格和SKU(次要问题)。 我以前曾成功地将索引和匹配用于2个标准。根据4个标准,我遇到了错误 我尝试使用这个公式 =ArrayFormula(index(CFanPriceList,match(1,(A18=CFanStyle)*(B18=CFanColour),*(C18=CFanSize),*(D18=CFanLight),0),7)) 命名范围为: CFanPrices A2:H15 CFanStyle A2:A15 CFanColour B2

我使用4个标准来确定零售价格和SKU(次要问题)。 我以前曾成功地将索引和匹配用于2个标准。根据4个标准,我遇到了错误

我尝试使用这个公式

=ArrayFormula(index(CFanPriceList,match(1,(A18=CFanStyle)*(B18=CFanColour),*(C18=CFanSize),*(D18=CFanLight),0),7))
命名范围为:

CFanPrices  A2:H15 

CFanStyle   A2:A15 

CFanColour  B2:B15 

CFanSize    C2:C15 

CFanLight   D2:D15
因此,在示例中:

Fanco Eco Silent,   White,  48',    TRUE
我希望返回279美元的数字

相反,我得到了

错误公式分析错误


有什么想法吗?

用这个代替你的公式:

=ARRAYFORMULA(IFERROR(VLOOKUP(A18&B18&C18&D18, 
 {A1:A16&B1:B16&C1:C16&D1:D16, A1:G16}, 8, 0)))
或使用您的命名范围:

=ARRAYFORMULA(IFERROR(VLOOKUP(A18&B18&C18&D18, 
 {CFanStyle&CFanColour&CFanSize&CFanLight, CFanPrices}, 8, 0)))

也许你可以和我分享这张床单?谢谢,传奇。真是一种享受!