DrBowes,
Perhaps we need to "compare notes".
There might be a situation where Advanced Filter might NOT be as fast - perhaps in situations like you describe. Keep in mind however, that the "Sort" function that you utilize is actually a component of the (Advanced) Filter component.
There have been others at Tek-Tips who have confirmed that indeed Advanced Filter has been MUCH faster. This is ESPECIALLY the case when compared to routines that loop through the records.
I would "challenge" you and all other programmers to "check out" the FULL capabilities of the Advanced Filter.
Unfortunately Microsoft has not provided much in the way of documentation on the use of the Advanced Filter, so unless one has had previous experience with such functionality, then it's certainly more difficult to "get up to speed" with the Advanced Filter.
The previous experience I refer to is with Lotus 123, which had this Advanced Filter capability - only MUCH MORE SUPERIOR than (the current version of) Excel - over a decade ago (nearly a lifetime in the computer industry).
"For the record"... When Microsoft "simulated" the "Database/Advanced Filter" component of Lotus 123, they only copied ONE of the data manipulation functions - that of being able to filter or extract data. The functions they did NOT copy are: Data-Find, Data-Modify, Data-Delete, and Data-Append.
In addition, Microsoft also did not copy Lotus 123's (ancient) capability to have spreadsheet-based relational databases.
So, DrBowes, in terms of comparing the latest release of Excel to the ancient version of Lotus 123, I can CERTAINLY agree with you than Excel's Advanced Filter leaves MUCH to be desired !!!
Nonetheless, I firmly believe that for one to "ignore" the POWER of Excel's Advanced Filter, is to "short-change" oneself - because there is STILL a considerable amount of "data manipulation" capability that one can utilize.
The Advanced Filter is especially useful where a user has a (spreadsheet-based) database that requires generation of multiple reports based on the need to use multiple criteria to isolate the data for the reports.
There is essentially "no limit" to the number of fields that can be referenced in the criteria, and the number of simple and/or complex formulas that can be used in referencing the fields.
These same type of criteria can also be used by Excel's "database (math) functions" - e.g. =DSUM, =DCOUNTA, etc).
In Excel, I've set up applications where all the user has to do to generate a "detail" report of the "data behind any database formula" in a matrix summary report, is to simply click use <Control> E while the cursor is on the formula. This extracts the data to a SEPARATE sheet for viewing, and is ready-to-print.
I hope this "background" information on the use of the Advanced Filter will encourage you to explore the "HIDDEN POWER" of this component.
A final
![[idea] [idea] [idea]](/data/assets/smilies/idea.gif)
... If anyone out there happens to have "connections" with Microsoft..., perhaps Microsoft could be persuaded
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)
into upgrading Excel to include the missing data manipulation functions. ...but I won't hold my breath
![[yawn] [yawn] [yawn]](/data/assets/smilies/yawn.gif)
.
Regards, ...Dale Watson dwatson@bsi.gov.mb.ca