#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default vLookup Help

I am sure that I read the solution to this problem b4 but can not locate the
answer. My example is my Lookup_value is 24208853. This number apperars in
the Table_array but I get #N/A returned. The reason is one is formatted as
general and the other is formatted as text. How can I get around this? I do
not have the option of getting specifying the format for the data.

T.I.A.

Grant


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default vLookup Help

With
A1: (the lookup value)
and
D1:E10 (the lookup table)

Try this:

If the LookUp value is TEXT
and the table values are NUMERIC:
=VLOOKUP(--A1,D1:E10,1,0)

Otherwise,
If the LookUp value is NUMERIC
and the table values are TEXT:
=VLOOKUP(""&A1,D1:E10,1,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Grant" wrote:

I am sure that I read the solution to this problem b4 but can not locate the
answer. My example is my Lookup_value is 24208853. This number apperars in
the Table_array but I get #N/A returned. The reason is one is formatted as
general and the other is formatted as text. How can I get around this? I do
not have the option of getting specifying the format for the data.

T.I.A.

Grant



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default vLookup Help

This works!
Thanks
Otherwise,
If the LookUp value is NUMERIC
and the table values are TEXT:
=VLOOKUP(""&A1,D1:E10,1,0)





"Ron Coderre" wrote in message
...
With
A1: (the lookup value)
and
D1:E10 (the lookup table)

Try this:

If the LookUp value is TEXT
and the table values are NUMERIC:
=VLOOKUP(--A1,D1:E10,1,0)

Otherwise,
If the LookUp value is NUMERIC
and the table values are TEXT:
=VLOOKUP(""&A1,D1:E10,1,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Grant" wrote:

I am sure that I read the solution to this problem b4 but can not locate
the
answer. My example is my Lookup_value is 24208853. This number apperars
in
the Table_array but I get #N/A returned. The reason is one is formatted
as
general and the other is formatted as text. How can I get around this? I
do
not have the option of getting specifying the format for the data.

T.I.A.

Grant





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default vLookup Help

Hi Grant,

Unfortunately you don't tell is what "one" is and what "the other".
Let's assume it is the search key (the 1st argument to the Lookup function) which is a number, and the table keys are text.
Replace Your Search Key with:
TEXT(YourSearchKey,"#")

BTW look at the more uptodate versions of this function: VLOOKUP() and, to a lesser extent, HLOOKUP()

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Grant" wrote in message ...
|I am sure that I read the solution to this problem b4 but can not locate the
| answer. My example is my Lookup_value is 24208853. This number apperars in
| the Table_array but I get #N/A returned. The reason is one is formatted as
| general and the other is formatted as text. How can I get around this? I do
| not have the option of getting specifying the format for the data.
|
| T.I.A.
|
| Grant
|
|


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 a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 10:13 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"