Match function to match multiple values

2019-09-22 14:25发布

I have two columns

Column A   Column B 
Apple       A
banana      B
Grape       C
Apple       D
Banana      F

Now I want to find the row number for row which has data Apple & D.

Is their a way to use Match function to get the row number?

3条回答
Luminary・发光体
2楼-- · 2019-09-22 15:02

Try this !!

=SUMPRODUCT((MATCH(1,(A1:A5="Apple")*(B1:B5="D"),0)))

Array formula CTRL+SHIFT+ENTER

查看更多
ゆ 、 Hurt°
3楼-- · 2019-09-22 15:10

Alternate, does not require array entry:

=MATCH(TRUE,INDEX(A1:A5&B1:B5="Apple"&"D",),0)
查看更多
仙女界的扛把子
4楼-- · 2019-09-22 15:18

You can use this one:

=LOOKUP(2,1/(A1:A5="Apple")/(B1:B5="D"),ROW(A1:A5))

or non-volatile version (if your ranges starts from first row):

=MATCH(2,1/(A1:A5="Apple")/(B1:B5="D"))

with array entry (CTRL+SHIFT+ENTER).

查看更多
登录 后发表回答