SUMIF水平


-1

我正在搜索列标题并在其下返回一个值。

例:

_|A|B|C

1|X|Y|Z

2|1|2|3

如果值为Y,则必须返回2。我尝试过=SUMIF(A1:C1,"B", A2:C2),但意识到IFSUM不支持水平搜索。

我很感激另一种解决方案!

Answers:


2

=HLOOKUP("Y",A1:C2,2,FALSE)将在您的范围A1:C2中查找您的值“Y”,并返回第二行中的值。FALSE开关将强制它仅查找完全匹配(即值不必按升序排列)。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.