ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Vlookup to the left? (https://www.excelbanter.com/excel-discussion-misc-queries/196435-vlookup-left.html)

Mac[_3_]

Vlookup to the left?
 
=Vlookup(a1,Range,6,FALSE)

Vlookup will count 6 column to the right and grab the value. Can I use
Vlookup to count to the left something like -6?

Thanks,
mac


Lars-Åke Aspelin[_2_]

Vlookup to the left?
 
On Sat, 26 Jul 2008 17:08:39 -0400, "Mac" wrote:

=Vlookup(a1,Range,6,FALSE)

Vlookup will count 6 column to the right and grab the value. Can I use
Vlookup to count to the left something like -6?

Thanks,
mac



You can not use a negative value for the col_index_num parameter in
VLOOKUP.

Try this formula instead:

=LOOKUP(A1,myrange,OFFSET(myrange,0,-6))

Hope this helps / Lars-Åke


Ted M H

Vlookup to the left?
 
VLOOKUP only goes to the right. But you can easily go left by using a
combination of MATCH and INDEX.
Data:
Lookup Table Lookup formula
Amount Name FindName FindAmount
500 Joe Steve
85 Steve Cindy
200 Darla
300 Cindy
You need to lookup up the names in the FindName column in the Lookup Table's
Name column and return to the FindAmount column the Amount in the Lookup
Table.
Put this formula into the FindAmount cells next to Steve and Cindy:
=INDEX(Amount,MATCH(C3,Name,0))
Amount and Name are named ranges for the cells with data in columns A and B.
FindName is column C (C3=Steve, C4=Cindy).
0 as MATCH argument is like using FALSE in VLOOKUP (Exact match).
Formula goes in column D (FindAmount)



"Mac" wrote:

=Vlookup(a1,Range,6,FALSE)

Vlookup will count 6 column to the right and grab the value. Can I use
Vlookup to count to the left something like -6?

Thanks,
mac



Mac[_3_]

Vlookup to the left?
 
Thanks All,

I'll give it a try....


"Mac" wrote in message
...
=Vlookup(a1,Range,6,FALSE)

Vlookup will count 6 column to the right and grab the value. Can I use
Vlookup to count to the left something like -6?

Thanks,
mac



MGuevara

Vlookup to the left?
 
Have you actually tried this -
I just tried and get a #N/A ...so I'm not sure if I'm doing something wrong
or if vlookup only looks right.

"Lars-Ã…ke Aspelin" wrote:

On Sat, 26 Jul 2008 17:08:39 -0400, "Mac" wrote:

=Vlookup(a1,Range,6,FALSE)

Vlookup will count 6 column to the right and grab the value. Can I use
Vlookup to count to the left something like -6?

Thanks,
mac



You can not use a negative value for the col_index_num parameter in
VLOOKUP.

Try this formula instead:

=LOOKUP(A1,myrange,OFFSET(myrange,0,-6))

Hope this helps / Lars-Ã…ke




All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com