Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default vlookup cannot see value for some cells

I have a vlookup function on the one (1) sheet that look up at the cell's
values with a product code such as SBP, SBT, SN8, SN7, ... at the other sheet
(2):
=IF(ISERROR(VLOOKUP(A57,MasterData,10,0)),"",VLOOK UP(A57,MasterData,10,0))

This product code column is a first column in a MasterData range on the
sheet 1 and it's a first column on the sheet 2. For many cells everything is
fine the function is taking the value. But, for some ones there is no value -
it's empty. Only, after
I retype manually the same product code in a cell on the sheet 2 where the
function cannot get a data the value is appearing.

How possibly I could fix it?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default vlookup cannot see value for some cells

As a best guess you downloaded this data from some sort of a data base?
Sometimes when you do that some or all of the data will be padded with blank
spaces at the end. "This" and "This " are 2 different things. Try using a
helper column with the trim function in it to remove the padded blanks at the
end (if this is the case)...
--
HTH...

Jim Thomlinson


"Alex" wrote:

I have a vlookup function on the one (1) sheet that look up at the cell's
values with a product code such as SBP, SBT, SN8, SN7, ... at the other sheet
(2):
=IF(ISERROR(VLOOKUP(A57,MasterData,10,0)),"",VLOOK UP(A57,MasterData,10,0))

This product code column is a first column in a MasterData range on the
sheet 1 and it's a first column on the sheet 2. For many cells everything is
fine the function is taking the value. But, for some ones there is no value -
it's empty. Only, after
I retype manually the same product code in a cell on the sheet 2 where the
function cannot get a data the value is appearing.

How possibly I could fix it?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default vlookup cannot see value for some cells

Sounds like some of the product codes on the lookup sheet have leading or
trailing spaces.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Alex" wrote in message
...
I have a vlookup function on the one (1) sheet that look up at the cell's
values with a product code such as SBP, SBT, SN8, SN7, ... at the other

sheet
(2):
=IF(ISERROR(VLOOKUP(A57,MasterData,10,0)),"",VLOOK UP(A57,MasterData,10,0))

This product code column is a first column in a MasterData range on the
sheet 1 and it's a first column on the sheet 2. For many cells everything

is
fine the function is taking the value. But, for some ones there is no

value -
it's empty. Only, after
I retype manually the same product code in a cell on the sheet 2 where the
function cannot get a data the value is appearing.

How possibly I could fix it?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default vlookup cannot see value for some cells

Thank you very much, Jim.
You're right it'a a database data. I've used Trim and everything is working
perfectly now.

"Jim Thomlinson" wrote:

As a best guess you downloaded this data from some sort of a data base?
Sometimes when you do that some or all of the data will be padded with blank
spaces at the end. "This" and "This " are 2 different things. Try using a
helper column with the trim function in it to remove the padded blanks at the
end (if this is the case)...
--
HTH...

Jim Thomlinson


"Alex" wrote:

I have a vlookup function on the one (1) sheet that look up at the cell's
values with a product code such as SBP, SBT, SN8, SN7, ... at the other sheet
(2):
=IF(ISERROR(VLOOKUP(A57,MasterData,10,0)),"",VLOOK UP(A57,MasterData,10,0))

This product code column is a first column in a MasterData range on the
sheet 1 and it's a first column on the sheet 2. For many cells everything is
fine the function is taking the value. But, for some ones there is no value -
it's empty. Only, after
I retype manually the same product code in a cell on the sheet 2 where the
function cannot get a data the value is appearing.

How possibly I could fix it?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default vlookup cannot see value for some cells

Thank you very much, Jim.

You're right it's a database data. I've used Trim and everything is working
perfectly now.

"Jim Thomlinson" wrote:

As a best guess you downloaded this data from some sort of a data base?
Sometimes when you do that some or all of the data will be padded with blank
spaces at the end. "This" and "This " are 2 different things. Try using a
helper column with the trim function in it to remove the padded blanks at the
end (if this is the case)...
--
HTH...

Jim Thomlinson


"Alex" wrote:

I have a vlookup function on the one (1) sheet that look up at the cell's
values with a product code such as SBP, SBT, SN8, SN7, ... at the other sheet
(2):
=IF(ISERROR(VLOOKUP(A57,MasterData,10,0)),"",VLOOK UP(A57,MasterData,10,0))

This product code column is a first column in a MasterData range on the
sheet 1 and it's a first column on the sheet 2. For many cells everything is
fine the function is taking the value. But, for some ones there is no value -
it's empty. Only, after
I retype manually the same product code in a cell on the sheet 2 where the
function cannot get a data the value is appearing.

How possibly I could fix it?

Thanks

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 with merged cells Ryan Excel Worksheet Functions 0 September 24th 09 10:22 PM
VLOOKUP using 2 Cells RoadKill Excel Worksheet Functions 4 May 11th 08 04:21 AM
VLOOKUP 2 CELLS Pivot Table/Query Excel Programming 4 May 8th 07 04:55 PM
Vlookup value between 2 cells [email protected] Excel Worksheet Functions 2 August 16th 06 04:31 PM
Vlookup on multiple cells Debbie Excel Worksheet Functions 15 June 29th 06 09:00 PM


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