May 24 2018 04:55 AM
May 24 2018 04:55 AM
Hi Everybody,
How to use Vlookup along with IF function in a one single formula.
Please help
May 24 2018 06:41 AM - edited May 24 2018 06:42 AM
SolutionHello-
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) )
May 24 2018 06:41 AM - edited May 24 2018 06:42 AM
SolutionHello-
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) )