#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Vlookup Problem

I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup Problem

It might be that you have a number in B10 and text values that look
like numbers in the first column of your table (or vice-versa).

If you are dealing with text values, like product codes, it might be
that you have leading or trailing spaces in B10 or in your table - you
can use TRIM to get rid of these.

Hope this helps.

Pete

On May 18, 11:16 pm, NANGO wrote:
I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Vlookup Problem

Thanks, but I'm still a novice, so I'm not exactly sure what you mean.

In B10 we enter an item number and on the vlookup we look for the item
number in B10 in the first column in my vlookup and the 2nd column is the
description.

The order codes can be all numeric, alpha-numberic, or even have special
characters like - and = along with numbers and alpha.

Thoughts?

"Pete_UK" wrote:

It might be that you have a number in B10 and text values that look
like numbers in the first column of your table (or vice-versa).

If you are dealing with text values, like product codes, it might be
that you have leading or trailing spaces in B10 or in your table - you
can use TRIM to get rid of these.

Hope this helps.

Pete

On May 18, 11:16 pm, NANGO wrote:
I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Vlookup Problem

Oops, I did take all my order codes and TRIM them and then did a paste
special - values back in to my worksheet and it seems to be working.

I apolgize for not trying that first.

Thanks so much@

"Pete_UK" wrote:

It might be that you have a number in B10 and text values that look
like numbers in the first column of your table (or vice-versa).

If you are dealing with text values, like product codes, it might be
that you have leading or trailing spaces in B10 or in your table - you
can use TRIM to get rid of these.

Hope this helps.

Pete

On May 18, 11:16 pm, NANGO wrote:
I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup Problem

Thanks for feeding back - glad it worked for you.

When you use VLOOKUP with FALSE as the 4th parameter you are looking
for an EXACT match, so leading and/or trailing spaces can throw this
out. You might also like to put TRIM(B10) instead of just B10 in your
VLOOKUP formula to get rid of any unwanted spaces in the input.

Hope this helps.

Pete

On May 18, 11:41 pm, NANGO wrote:
Oops, I did take all my order codes and TRIM them and then did a paste
special - values back in to my worksheet and it seems to be working.

I apolgize for not trying that first.

Thanks so much@



"Pete_UK" wrote:
It might be that you have a number in B10 and text values that look
like numbers in the first column of your table (or vice-versa).


If you are dealing with text values, like product codes, it might be
that you have leading or trailing spaces in B10 or in your table - you
can use TRIM to get rid of these.


Hope this helps.


Pete


On May 18, 11:16 pm, NANGO wrote:
I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.


For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.


The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.


Here is the the code I'm using


=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))


Any ideas on why this might be happening?- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Vlookup Problem

In addition to Pete's advice......you don't need the list to be sorted when
using the 4th parameter of FALSE as you have done.

If an exact match is not found you will get #N/A


Gord Dibben MS Excel MVP

On 18 May 2007 15:27:44 -0700, Pete_UK wrote:

It might be that you have a number in B10 and text values that look
like numbers in the first column of your table (or vice-versa).

If you are dealing with text values, like product codes, it might be
that you have leading or trailing spaces in B10 or in your table - you
can use TRIM to get rid of these.

Hope this helps.

Pete

On May 18, 11:16 pm, NANGO wrote:
I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Vlookup Problem

Try this, if it shows up as " ", then you know it's a format issue

=IF(ISERROR(VLOOKUP(B10,ProductLookup,2,FALSE)),"
",VLOOKUP(B10,ProductLookup,2,FALSE))

Try copying the lookup numbers and pasting them as values then seeing if
their is a little question mark or some little box that you can click and
convert them from text to numbers.

"NANGO" wrote:

I have a spreadsheet which uses a VLOOKUP of approximately 30,000 item
numbers on a different tab called Product Lookup, to provide description,
price and 4 other pieces of information.

For some reason, some of my item numbers cannot be found even though they
are on the Product Lookup and all my item numbers are sorted in ascending
order.

The only way I can get the information I'm looking for to show up is if
manually go to the Product Lookup tab and copy the Item number I want and
paste it in the other tab.

Here is the the code I'm using

=IF(B10="","",VLOOKUP(B10,ProductLookup,2,FALSE))

Any ideas on why this might be happening?


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 Problem Ross Excel Discussion (Misc queries) 1 June 20th 06 05:01 PM
Vlookup problem Big Jones Excel Worksheet Functions 0 August 18th 05 02:33 PM
VLOOKUP Problem Tosca Excel Worksheet Functions 7 July 23rd 05 10:43 PM
VLOOKUP problem Wazooli Excel Discussion (Misc queries) 5 March 26th 05 01:52 PM
VLOOKUP problem Jaladino Excel Discussion (Misc queries) 1 March 2nd 05 04:02 AM


All times are GMT +1. The time now is 09:24 PM.

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

About Us

"It's about Microsoft Excel"