ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Vlookup function wont work for copied data (https://www.excelbanter.com/excel-worksheet-functions/234798-vlookup-function-wont-work-copied-data.html)

Scarlett

Vlookup function wont work for copied data
 
I have copied a table from another source. I am trying to do a vlookup for a
column against this copied table. However N/A is returned. I tried TRIM,
CLEAN, nothing works.

I re-entered a couple of entries of the table and the vlookup function
worked fine. However is there a logic to this problem and how do I make sure
that the vlookup works for the entire column?


Jacob Skaria

Vlookup function wont work for copied data
 
Try a wildcard like

=VLOOKUP("*" & lookupvalue & "*",array,column,type)

If this post helps click Yes
---------------
Jacob Skaria


"Scarlett" wrote:

I have copied a table from another source. I am trying to do a vlookup for a
column against this copied table. However N/A is returned. I tried TRIM,
CLEAN, nothing works.

I re-entered a couple of entries of the table and the vlookup function
worked fine. However is there a logic to this problem and how do I make sure
that the vlookup works for the entire column?


Gord Dibben

Vlookup function wont work for copied data
 
The other source is what?

You could have some non-breaking spaces which CLEAN and TRIM won't find.

EditReplace

What: Alt + 0160

With: nothing

Replace all.

Note: hold the Alt key and type 0160 on the NumPad, not above the qwerty
keys.

If no joy go to Chip Pearson's site and download his cellview add-in to find
out what's in the cells.

http://www.cpearson.com/excel/CellView.aspx

An indispensable tool if bringing in data from the Internet



Gord Dibben MS Excel MVP


On Tue, 23 Jun 2009 19:16:02 -0700, Scarlett
wrote:

I have copied a table from another source. I am trying to do a vlookup for a
column against this copied table. However N/A is returned. I tried TRIM,
CLEAN, nothing works.

I re-entered a couple of entries of the table and the vlookup function
worked fine. However is there a logic to this problem and how do I make sure
that the vlookup works for the entire column?




All times are GMT +1. The time now is 02:22 PM.

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