Reputation: 49
I am trying to create a VLOOKUP with condition to fill up columns G and H.
The algorithm/condition is something like this.
Target: Lookup M value from Column C, by matching the Node.
I tried to create an array formula {=IF(MIN(VLOOKUP(F2,$B:$C,2,FALSE))<0,VLOOKUP(F2,$B:$C,2,FALSE),0)}
But it doesn't seem to work properly.
Appreciate your enlightenment for this newbie. Thank you so much.
Upvotes: 0
Views: 978
Reputation: 197
This solves the issue:
How it works:
An array (CSE) formula in cell D96:
{=MIN(IF($A$96:$A$112=$C96,$B$96:$B$112))}
An array (CSE) formula in cell E96:
{=MAX(IF($A$96:$A$112=$C96,$B$96:$B$112))}
N.B.
Upvotes: 0
Reputation: 60174
For your version of Excel:
Negatives: =AGGREGATE(15,6,1/($F2=$B:$B)*$C:$C,1)
Positives: =AGGREGATE(14,6,1/($F2=$B:$B)*$C:$C,1)
Upvotes: 1