You can use MATCH
in an "array formula" like this
=MATCH(1,(A:A=Q1)*(B:B=R1),0)
which needs to be confirmed with CTRL+SHIFT+ENTER
....or add an INDEX
function and the formula can be entered normally
=MATCH(1,INDEX((A:A=Q1)*(B:B=R1),0),0)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…