Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2013, 04:04 PM
56_kruiser 56_kruiser is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Novice
Problem with Vlookup
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default Problem with Vlookup

I am trying to do a non-exact vlookup and having strange results.

I have a cell that has a calculated number, formatted as percentage. When I lookup that percentage in a table, it is returning N/A.



Doing some testing with value in a formula , I can try different exact values, and some return a value, and others don't. No non-exact values return anything.

I have attached an example spreadsheet.

Any ideas what I'm doing wrong?
Attached Files
File Type: zip Example.zip (9.3 KB, 8 views)
Reply With Quote
  #2  
Old 08-04-2013, 08:30 PM
BobBridges's Avatar
BobBridges BobBridges is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I hardly ever use the True option for the fourth VLOOKUP argument, kruiser; almost always—well, always that I can remember—I'm looking for exact value, so I plug in 0 there. ("0" takes up less space than False, but means the same thing.)

So I had to look up what happens when you use True, and it says the table you're looking at—Table4, in C16 in your sample—must be in ascending order. You have it in descending. I'm guessing that Excel reasons this way: Starts at S4. The value in S4 is 100". The value of C15 is 60.5. Is C15 greater than S4? No, it's less. Well, that's it; since all the rest of the values in Table4 must be 100 or greater, then clearly no value in Table4 will fit the search. So it returns #N/A.
Reply With Quote
  #3  
Old 08-05-2013, 06:02 AM
56_kruiser 56_kruiser is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Novice
Problem with Vlookup
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default

Quote:
Originally Posted by BobBridges View Post
I hardly ever use the True option for the fourth VLOOKUP argument, kruiser; almost always—well, always that I can remember—I'm looking for exact value, so I plug in 0 there. ("0" takes up less space than False, but means the same thing.)

So I had to look up what happens when you use True, and it says the table you're looking at—Table4, in C16 in your sample—must be in ascending order. You have it in descending. I'm guessing that Excel reasons this way: Starts at S4. The value in S4 is 100". The value of C15 is 60.5. Is C15 greater than S4? No, it's less. Well, that's it; since all the rest of the values in Table4 must be 100 or greater, then clearly no value in Table4 will fit the search. So it returns #N/A.
Thanks so much. Sometimes it takes a new pair of eyes to read the instructions.

I read those several times, and ascending never rang the bell, just sort.

I knew it was something simple.

Thanks again.
Reply With Quote
  #4  
Old 08-05-2013, 10:10 AM
56_kruiser 56_kruiser is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Novice
Problem with Vlookup
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default Now exact match not working...

I am uploading the example spreadsheet with a different issue noted in it.

I have changed a lookup to include the Lookup Argument of false, which means I want an exact match only in the lookup. But it is working as expected.

I have the falue of M* in the cell that is being looked up. But it is returning the value for M. What I think is happening is it is ignoring the *. I don't want it to do that.

The spreadsheet example is attached to this post.

Any thoughts?
Attached Files
File Type: zip Example.zip (10.7 KB, 8 views)
Reply With Quote
  #5  
Old 08-05-2013, 11:31 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

This is giving trouble because the asterisk is a wildcard. Is there a possibility you could change it to something else ? ( like fi / )
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 08-05-2013, 11:42 AM
56_kruiser 56_kruiser is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Novice
Problem with Vlookup
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
This is giving trouble because the asterisk is a wildcard. Is there a possibility you could change it to something else ? ( like fi / )
This is interesting. I'm sure aware of that being a wildcard, but didn't think it would be in this case. But thinking about it, I guess it does make sense, as having it 'search' a table, then I is being used that way.

I may try to discover a way to have it taken literally, but I can use something else if necessary.

Thanks for the input.
Reply With Quote
  #7  
Old 08-05-2013, 11:45 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Problem with Vlookup Windows 7 64bit Problem with Vlookup Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

The only way to look at it literally (AFAIK) is to preced it with a tile ~*.
But in this case it desn't seem practical
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question: Will Vlookup work on this problem? jnix612 Excel 1 07-27-2013 12:11 AM
VLookup formula Problem (salary plus (commission x sales)) topgear2015 Excel 11 06-05-2013 09:02 PM
Problem with Vlookup Can i do this with a VLookup? foodstudent Excel 1 01-21-2011 12:34 AM
Using IF & VLOOKUP together junction Excel 7 11-18-2010 05:15 AM
Problem with Vlookup Vlookup and If statement problem bunnygum Excel 1 03-24-2009 05:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft