vlookup - strange result

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,073
Office Version
  1. 365
Platform
  1. Windows
hi all, curious as to how vlookup does its thing. I am well versed in how it is supposed to work (lookup this xx, in that range, and return me the value i want from a specified column; use "false" for exact match.

vlookup(B2,$D$2:$f$500, 2,0)

now i have a list of business numbers on one sheet that have a sort order number adjacent to them. The business numbers are not in ascending order. On another tab, i have a another version of the original data to which i want to apply the same sort. so, i added a vlookup based on the business number, looking in the range B:F on my other tab. The sort order is in col E.

VLOOKUP(E3,'FY24 ABN EMAIL CONTACT'!$A$13:$B$1084,2,0) (first row of data on source sheet is 13)

this formula works as it should except where it comes to a handful business numbers. this formula for several different business numbers (6 different numbers) returns 41. the first of these 6 is actually 267th in the list.
 
filtered rows were killing me. still don't know why 6 returned the same answer but they all changed once i unfiltered the rows.
 
Upvote 0
That would worry me greatly since VLOOKUP is not affected by filters...
as it did me. still don't know what happened but have to assume i did something stupid somewhere. I have added it to my list of things to look into further when i get some spare time.
 
Upvote 0

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