VLOOKUP Function to return values in multipal Columns
Hi,
Just change the column argument to 3, 4, 5,... The 2 in the following
formula is the column argument.
=VLOOKUP(C5,Sheet1!B$1:C$16,2,FALSE)
You can make it more dynamic by doing something like
=VLOOKUP(C5,Sheet1!B$1:C$16,COLUMN(B1),FALSE)
then when you copy the formula to the right you will get the results for
column 3, then 4, then 5,....
--
If this helps, please click the Yes button.
Cheers,
Shane Devenshire
"KP" wrote:
I'm using the VLOOKUP function to look up value in another sheet and return
the corresponding value, My problem is It works for the first column but the
how do I get the next 4 columns
Sheet 1 has the date that needs to be looked up and once the Employee name
is found then return the corresponding values in Column D,E,F
Sheet 1
C D E F
Employees Volume Hours VPH
ABC 100 10 3.3
Result Sheet
Formula being used
=VLOOKUP(C5,Sheet1!B$1:C$16,2,FALSE) to Match the name and get the value in
column D in Sheet 1
=VLOOKUP(D5,Sheet1!C$1:D$16,2,FALSE) to get the value of Column E in Sheet 1
for the above match.
Hope I explained this correctly.
--
Thanks
KP
|