SOLVED

Logical function with Vlookup in a single formula

Deleted
Not applicable

Hi Everybody,

 

How to use Vlookup along with IF function in a one single formula.

Please help

1 Reply
best response
Solution

Hello-

 

Try looking at this example for reference.  It looks at the value in cell C3 and depending on whether it says "Name" or "Address"  the vlookup column reference will change. (See attached .xlsx for additional reference).

 

=IF(C3="Name",VLOOKUP(C2,$B$7:$D$13,2,FALSE), VLOOKUP(C2,$B$7:$D$13,3,FALSE) )

 

Vlookup If.png

1 best response

Accepted Solutions
best response
Solution

Hello-

 

Try looking at this example for reference.  It looks at the value in cell C3 and depending on whether it says "Name" or "Address"  the vlookup column reference will change. (See attached .xlsx for additional reference).

 

=IF(C3="Name",VLOOKUP(C2,$B$7:$D$13,2,FALSE), VLOOKUP(C2,$B$7:$D$13,3,FALSE) )

 

Vlookup If.png

View solution in original post