How do you do a VLookup with two conditions?
Hi, I have two formulas that work (below) when both conditions are met, but
both return "#N/A" if one of the conditions is not met.
=LOOKUP(2,1/(($A$1:$A$100=N$1)*($B$1:$B$100=$M2)),$F$1:$F$100)
=INDEX($F$1:$F$100,MATCH(1,($A$1:$A$100=N$1)*($B$1 :$B$100=$M2),0))
$A$1:$A$100 is the Type column, N$1 is the type to match
$B$1:$B$100 is the Diameter column, $M2 is the diameter to match
$F$1:$F$100 is the Length column
How would I incorporate your formula into either of these formulas?
Thanks,
"Pete" wrote:
You can have:
= IF ( ISERROR (lookup formula), "", lookup formula),
or ISNA instead of ISERROR.
Pete
|