Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Vlookup text conversion issue

I am getting inconsistent results from a vlookup
I am querying on field X which contains text -- or at least it looks like
text. could be a combination of numbers and letters. -- usually numbers that
have leading zeros

I have a search table with the same values -- or what looks like the same
values.

When I do my vlookup -- to make it find the correct answer, i have to go
into my query table cell and hit return. I've tried formatting both sets of
columns as General, Text, etc. and can't seem to overcome. The data is
imported from another program. I think it has something to do with the data
in my query table not have an EOL character ??? Short of going into every
cell and hitting RETURN/ENTER -- is there someway to get both my query cells
and search cells to be formatted the same?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Vlookup text conversion issue

This could be due to extra blanks and/or non-printable characters. Look at
TRIM/CLEAN functions (for both query and search table) to see if they can get
the data consistent.

"PamKT" wrote:

I am getting inconsistent results from a vlookup
I am querying on field X which contains text -- or at least it looks like
text. could be a combination of numbers and letters. -- usually numbers that
have leading zeros

I have a search table with the same values -- or what looks like the same
values.

When I do my vlookup -- to make it find the correct answer, i have to go
into my query table cell and hit return. I've tried formatting both sets of
columns as General, Text, etc. and can't seem to overcome. The data is
imported from another program. I think it has something to do with the data
in my query table not have an EOL character ??? Short of going into every
cell and hitting RETURN/ENTER -- is there someway to get both my query cells
and search cells to be formatted the same?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default Vlookup text conversion issue

PamKT wrote:
I am getting inconsistent results from a vlookup
I am querying on field X which contains text -- or at least it looks
like text. could be a combination of numbers and letters. -- usually
numbers that have leading zeros

I have a search table with the same values -- or what looks like the
same values.

When I do my vlookup -- to make it find the correct answer, i have to
go into my query table cell and hit return. I've tried formatting
both sets of columns as General, Text, etc. and can't seem to
overcome. The data is imported from another program. I think it has
something to do with the data in my query table not have an EOL
character ??? Short of going into every cell and hitting
RETURN/ENTER -- is there someway to get both my query cells and
search cells to be formatted the same?



Try to clean your imported data. For example if your table start from A2
type in an empty column, say from E2 this formula:

=clean(trim(A2)) for text entries

or also

=value(clean(trim(A2))) for numerical entries

or

=if(iserror(value(clean(trim(A2)))),clean(trim(A2) ),value(clean(trim(A2))))
that can manage both text and numerical entries.

Than drag across the rows and columns.

At the end you could copy and past special, values, to eliminate the added
columns...


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup where text not exact Janicej Excel Discussion (Misc queries) 2 August 19th 06 08:57 PM
Conversion to Text file format error Rob Excel Discussion (Misc queries) 1 June 26th 06 10:33 AM
Numbers stored as text causes problem with VLOOKUP naclu Excel Worksheet Functions 2 February 6th 06 09:09 AM
Numbers stored as text causes problem with VLOOKUP bpeltzer Excel Worksheet Functions 0 February 4th 06 08:07 PM
Vlookup datatype(?) issue ars Excel Worksheet Functions 1 January 25th 05 09:11 AM


All times are GMT +1. The time now is 12:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"