A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Curious Phenomenon...Vlookup not matching



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2008, 12:57 PM posted to microsoft.public.excel.worksheet.functions
Eric @ BP-EVV
external usenet poster
 
Posts: 6
Default Curious Phenomenon...Vlookup not matching

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)

Thanks !


  #2  
Old August 27th, 2008, 01:04 PM posted to microsoft.public.excel.worksheet.functions
Duke Carey
external usenet poster
 
Posts: 1,027
Default Curious Phenomenon...Vlookup not matching

One simple test is to enter a formula that checks to see if the two are
identical

=(a1=d1)

which will return TRUE if they match and FALSE if they don't. You'll almost
assuredly get a FALSE because otherwise the VLOOKUP would match the two.

In addition to TRIM you could try CLEAN() to remove non-printing characters.

"Eric @ BP-EVV" wrote:

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)

Thanks !


  #3  
Old August 27th, 2008, 01:11 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Curious Phenomenon...Vlookup not matching

Although TRIM gets rid of unwanted normal spaces, it does not get rid
of the non-breaking space character with a code of 160 - you can get
rid of these with Find/Replace. As you only have one offending item,
though, it will be easier to copy the lookup value and paste it
into the appropriate cell of the table.

If you want to investigate further, you can do =LEN(cell) on both
cells to find out how many characters there are in each. Also, you can
select one of the cells and then click in the far right of the formula
bar as if to edit it - if you have spaces at the end of the values you
can see this from where the cursor ends up.

Hope this helps.

Pete

On Aug 27, 12:57*pm, Eric @ BP-EVV
wrote:
I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet. *
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. *Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)

Thanks !


  #4  
Old August 27th, 2008, 01:18 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Curious Phenomenon...Vlookup not matching

Chip Pearson has a very nice addin that will help determine what those cells
really contain:
http://www.cpearson.com/excel/CellView.aspx



Eric @ BP-EVV wrote:

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)

Thanks !


--

Dave Peterson
  #5  
Old August 27th, 2008, 01:20 PM posted to microsoft.public.excel.worksheet.functions
Eric @ BP-EVV
external usenet poster
 
Posts: 6
Default Curious Phenomenon...Vlookup not matching

It did fail your test, and the CLEAN function did the trick too....I was
unaware of that function. Thanks...I can go home and feel good about the day
today....I learned something new !

"Duke Carey" wrote:

One simple test is to enter a formula that checks to see if the two are
identical

=(a1=d1)

which will return TRUE if they match and FALSE if they don't. You'll almost
assuredly get a FALSE because otherwise the VLOOKUP would match the two.

In addition to TRIM you could try CLEAN() to remove non-printing characters.

"Eric @ BP-EVV" wrote:

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)

Thanks !


  #6  
Old August 27th, 2008, 01:23 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Curious Phenomenon...Vlookup not matching

Chip's site seems to be unavailable at the moment.

Pete

On Aug 27, 1:18*pm, Dave Peterson wrote:
Chip Pearson has a very nice addin that will help determine what those cells
really contain:http://www.cpearson.com/excel/CellView.aspx

Eric @ BP-EVV wrote:

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. *Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)


Thanks !


--

Dave Peterson


  #7  
Old August 27th, 2008, 05:14 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Curious Phenomenon...Vlookup not matching

It's working as of this post.

Pete_UK wrote:

Chip's site seems to be unavailable at the moment.

Pete

On Aug 27, 1:18 pm, Dave Peterson wrote:
Chip Pearson has a very nice addin that will help determine what those cells
really contain:http://www.cpearson.com/excel/CellView.aspx

Eric @ BP-EVV wrote:

I have a vlookup that is retunring an "#N/A" for one item in a spreadsheet.
I have added a "trim" function to the mix to get rid of extra spaces and it
still returns the same. The values in both the cell being looked up and the
cell that SHOULD contain the match appear to be the same text to me. Is
there a way to determine exactly what is the differences ? Both cells contain
text only (or at least that's all that is visible to the naked eye !)


Thanks !


--

Dave Peterson


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:28 AM.


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