ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Trouble with Vlookup (https://www.excelbanter.com/excel-discussion-misc-queries/235540-trouble-vlookup.html)

Hawksby

Trouble with Vlookup
 
Afternoon all,

I have a field of text which is starts with a number and basically what i'm
tring to do is use this number in a vlookup to return a value in another cell.

The fomula that i'm using is =vlookup(left(A1,1),Range of table,2,False)

The problem seems to be with the way in which the fomula is treating the
value from the left part of the formula. Does anyone know how i can get
around this?

Per Jessen

Trouble with Vlookup
 
Hi

As Left() function is a text function, it return a string, so you need to
convert the result to a value:

=vlookup(Value(left(A1,1)),Range of table,2,False)

Regards,
Per


"Hawksby" skrev i meddelelsen
...
Afternoon all,

I have a field of text which is starts with a number and basically what
i'm
tring to do is use this number in a vlookup to return a value in another
cell.

The fomula that i'm using is =vlookup(left(A1,1),Range of table,2,False)

The problem seems to be with the way in which the fomula is treating the
value from the left part of the formula. Does anyone know how i can get
around this?



L. Howard Kittle

Trouble with Vlookup
 
Try, which worked for me.

=vlookup(Value(left(A1,1)*1,Range of table,2,False)


Regards,
Howard

"Per Jessen" wrote in message
...
Hi

As Left() function is a text function, it return a string, so you need to
convert the result to a value:

=vlookup(Value(left(A1,1)),Range of table,2,False)

Regards,
Per


"Hawksby" skrev i meddelelsen
...
Afternoon all,

I have a field of text which is starts with a number and basically what
i'm
tring to do is use this number in a vlookup to return a value in another
cell.

The fomula that i'm using is =vlookup(left(A1,1),Range of table,2,False)

The problem seems to be with the way in which the fomula is treating the
value from the left part of the formula. Does anyone know how i can get
around this?






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

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