ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   vlookup (https://www.excelbanter.com/new-users-excel/227965-vlookup.html)

newkid47

vlookup
 
I have 2 columns and wish to retrive the info from the 2nd column. If I type
the name from the 1st column I get #N/A, if I copy directly from the 1st
column I get the correct answer, my formula is
=VLOOKUP(C2,$A$2:$B$180,2,FALSE) Why can I not get the info when I type it in?

T. Valko

vlookup
 
Why can I not get the info when I type it in?

Because what you're typing doesn't match what's in the column. There may be
unseen whitespace characters in the column and you're probably not typing
those in. When you copy from the column you're copying those whitespace
characters so there's a match.

Look for leading/trailing whitespace characters in A2:A180.

--
Biff
Microsoft Excel MVP


"newkid47" wrote in message
...
I have 2 columns and wish to retrive the info from the 2nd column. If I
type
the name from the 1st column I get #N/A, if I copy directly from the 1st
column I get the correct answer, my formula is
=VLOOKUP(C2,$A$2:$B$180,2,FALSE) Why can I not get the info when I type it
in?





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

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