Don't fully understand vlookup I guess
Why is this not working:
=if(VLOOKUP("Active",$C$82:$C$100,1)="Active",VLOOKUP(D11,$G$11:$I$68,3,FALSE),if(VLOOKUP("Inactive",$C$82:$C$100,1,FALSE)="Inactive",VLOOKUP(D11,$G$11:$I$68,2,FALSE)))
Error: Did not find value 'Active' in VLOOKUP evaluation.
I understand what I input like so:
=if(VLOOKUP("Active",$C$82:$C$100,1)="Active"
if it finds "Active" in $C$82:$C$100 I want it to do the following:
VLOOKUP(D11, $G$11;$I$68;3;FALSE)
if it doesn't find it I want it to:
VLOOKUP("Inactive", $C$82;$C$100;1;FALSE)="Inactive"
if it finds "Inactive" I want it to:
VLOOKUP(D11, $G$11:$I$68,2,FALSE)
Posted Mar 28, 2018, 8:32 PM UTC
The first vlookup is missing a zero at the end to indicate that you are looking for an exact match in column 1. It should be like this:
vlookup("Active",$C$82:$C$100,1,0)
instead of this:
vlookup("Active",$C$82:$C$100,1)