Vlookup & Match formula error

bobkap

Active Member
Joined
Nov 22, 2009
Messages
313
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Please see file at this Dropbox link below.

If you enter the number "1" in cell C6, data under "DMG" in column F changes to "#N/A", but columns D and E work the way that they are supposed to with the same formula I cannot figure out why this is happening. If I enter "2" in C6 there are no problems. I just cannot figure out why this is happening.

Any help would be most appreciated.


 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
The error is not in the formula, it is in the way that you have defined the named range 'bk'. To use an approximate match on column A, you need to exclude the headers from the range as the header is breaks the ascending order requirement for approximate matching. If the header was text and everything below was numeric then it would work.

The formula appears to work with other values because of the way that the approximate match algorithm works. When you include the headers it will fail if the match is the first item below the header, the only exception being is if the header happens to have a lower alphanumeric value than the first data record.
 
Upvote 0
Solution
THANKS very much!! I may have figured that out on my own in about 8 years. :)
 
Upvote 0
I may have figured that out on my own in about 8 years.
When it first happened to me, it didn't take me too long to find a quick fix for it but it was about 10 years before I actually figured out the reason behind it :oops:
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,753
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top