Excel Find Speed vs. VBA binary Search?

后端 未结 4 1664
天命终不由人
天命终不由人 2020-12-18 03:50

How good/fast is Excel VBA\'s Find vs. binary search? My platform is Office 11|2003 and I\'ll be searching for strings against Column A on three sheets of values. Total nu

4条回答
  •  没有蜡笔的小新
    2020-12-18 04:24

    I find using the AutoFilter works a lot faster than manually searching the records with any method.

    I filter, check to see if there are any results, then move on. If any are found (by checking the count of results), I can search the small portion that are filtered manually or return them all.

    I used it on around 44,000 records, searching for a list of 100+ parts against it.

    Binary searches can easily get stuck in infinite loops if you're not careful.

提交回复
热议问题