Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLOOKUP example not working...

Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
Entry'!B3)
Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)

If Column A = 16354-XL, Column B gives correct description ex "Gloves"
If Column A = 26754, Column B can't find match and gives "#N/A"
If we type in 26754 (instead of formula) in Column A, Column B gives correct
desctiption ex "Hats"

Thanks,

Steph
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default VLOOKUP example not working...

Hi Steph,

My standard list. Look at 1 and 3 especially
================================================== =======
Vlookup gives wrong answer

Niek Otten, April 1 2006

Frequent causes:

1. Some cells look like numbers, but are actually text. You can check with the ISTEXT function.
Check both the search arguments and the lookup table.
Formatting as numbers afterwards doesn't help.
Remedy:
Format an empty cell as Number. Enter the number 1. EditCopy. Select your "numbers". EditPaste Special, check Multiply.

2. The data is not sorted ascending and the 4th argument of the VLOOKUP is TRUE or is omitted.

3. There are spaces or other invisible characters in either the search arguments or the lookup table.
This often happens when you import data from other applications.
Use the LEN() function to see how many characters there really are in the cell and compare that with what you see.
Use the TRIM function to remove all spaces except single spaces between words.
Use the CLEAN function to remove all nonprintable characters. HTML characters can be removed with a macro by David
McRitchie,
which can be downloaded he http://www.mvps.org/dmcritchie/excel/join.htm#trimall

4. The formula was copied from somewhere else, but the addresses of the lookup table were not absolute so have changed in
the Paste process
and now point to the wrong range.
Use absolute addresses for the lookup table, like $A$1:$B$20 instead of relative addresses like A1:B20.
When editing or entering a formula, use the F4 key to toggle between several forms of relative addresses and absolute ones
(normally only for the table, not for the search argument, but this depends on your specific problem).
The first hit of F4 changes the default relative address to an absolute one. That is usually what you need.
Even better: use a Defined Name for the table instead of cell addresses; InsertNameDefine.

5. The table was extended after its initial use, but the definition of the table in the VLOOKUP or in the Defined Name was
not adjusted accordingly.
To prevent this from happening: always use explicit bottom and top rows (with dummy error values if necessary)
and insert new rows or cells between those two.
Then the definition of the range or the Defined Name will adjust automatically.
Users of Excel 2003 and higher may profit from the List feature in the Data menu to maintain tables.
================================================== =======

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"steph44haf" wrote in message ...
| Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
| Entry'!B3)
| Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)
|
| If Column A = 16354-XL, Column B gives correct description ex "Gloves"
| If Column A = 26754, Column B can't find match and gives "#N/A"
| If we type in 26754 (instead of formula) in Column A, Column B gives correct
| desctiption ex "Hats"
|
| Thanks,
|
| Steph


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLOOKUP example not working...

I think the issue may be with the table. The data we are looking up may be
26754, but the lookup table reference has the number as '26754. Is there any
way to fix this?

"steph44haf" wrote:

Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
Entry'!B3)
Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)

If Column A = 16354-XL, Column B gives correct description ex "Gloves"
If Column A = 26754, Column B can't find match and gives "#N/A"
If we type in 26754 (instead of formula) in Column A, Column B gives correct
desctiption ex "Hats"

Thanks,

Steph

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default VLOOKUP example not working...

Yes. See item 1. in my list

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"steph44haf" wrote in message ...
|I think the issue may be with the table. The data we are looking up may be
| 26754, but the lookup table reference has the number as '26754. Is there any
| way to fix this?
|
| "steph44haf" wrote:
|
| Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
| Entry'!B3)
| Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)
|
| If Column A = 16354-XL, Column B gives correct description ex "Gloves"
| If Column A = 26754, Column B can't find match and gives "#N/A"
| If we type in 26754 (instead of formula) in Column A, Column B gives correct
| desctiption ex "Hats"
|
| Thanks,
|
| Steph


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 formula not working with data on separate sheet akee Excel Worksheet Functions 18 March 16th 06 03:18 PM
Vlookup not working because of duplicate matches BBS Excel Worksheet Functions 8 February 3rd 06 11:39 AM
Vlookup not working in 2000 - worked in 97! [email protected] Excel Discussion (Misc queries) 3 September 7th 05 11:30 AM
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


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