Is anybody checking my work?

I'm all about index match match, to the point i try to use it for everything and just like many people use vba...

VLOOKUP and INDEX/MATCH constructs are of the most over used functions. They are amazing when used properly but I frequently get requests from people to review their spreadsheets and work out why they are so darn slow. A typical culprit is excessive use of linear search lookups rather than binary search lookups, and usually around 80% of the time with small tweaks they can be substituted for binary search lookups.

In my course I illustrate the efficiency of binary over linear. I have a list of 15000 social security numbers (fake ones) and we do a VLOOKUP against a table of 100000 ssn's with associated names, DOB etc. I set Excel to manual calc mode and when I hit recalc I get the class to count how many seconds until calc is completed, usually around 35-42 seconds.

Then I sort the table and use a binary search VLOOKUP (a double-jointed one to emulate #N/A behaviour of linear search VLOOKUP). Again the class counts the recalc time, only this time it's done in less than 1 second.

More on binary/linear search: Extract a number from a text string with LOOKUP Jon von der Heyden
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Very good article Jon, very clear explanation of what occurs step by step
 
I have a list of 15000 social security numbers (fake ones) and we do a VLOOKUP against a table of 100000 ssn's with associated names, DOB etc. I set Excel to manual calc mode and when I hit recalc I get the class to count how many seconds until calc is completed, usually around 35-42 seconds.

I ring IT and ask for a faster PC before repeating this and finding it takes no time at all :-).

Dom
 
I just got notified today of the Feb 21st replies to this thread. What gives:confused:

Nice article on Binary Lookup, Jon. There are several other nuggets on your site as well. The PrankBackfire sub is sick. I like it. BTW; what's your phone number :)
 
I think the notif you got was from a Spam post that got tanked.
 
It also made no sense so its was not good quality spam
 
Nice article on Binary Lookup, Jon. There are several other nuggets on your site as well. The PrankBackfire sub is sick. I like it.
Thanks. :) I may one day actually get the time to complete the dozens of partially written articles on the blog. I always start these things and then never have the time to complete.

BTW; what's your phone number :)
Haha! Stick we the number in the routine! Although I think the kid changed it after 2 weeks of continuous calls. ;-)
 

Forum statistics

Threads
1,223,725
Messages
6,174,128
Members
452,546
Latest member
Rafafa

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