ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   most efficient way to filter out and iterate through datasets in X (https://www.excelbanter.com/excel-discussion-misc-queries/176405-most-efficient-way-filter-out-iterate-through-datasets-x.html)

Bart Wouters[_2_]

most efficient way to filter out and iterate through datasets in X
 
Hi all,

I am currently doing some rapid prototyping in VBA-Excel2003.
Excel is used as lightweight relational database, hence requiring
frequent selection of 'records/rows' based on multiple criteria.

The selections then are transformed into arrays in order to present them in
listboxes.

What is the most efficient/performant way to filter out the relevant
information ?
autofilter ? advancefilter ? find(next) ? for each r in rows - loop ?

tnx in advance,
kind regards,
Bart Wouters

Bernie Deitrick

most efficient way to filter out and iterate through datasets in X
 
Bart,

The best way is to use Autofilter before use of
..SpecialCells(xlCellTypeVisible) Sorting on your key column(s) prior to
filtering would also improve speed and processing ease.

HTH,
Bernie
MS Excel MVP


"Bart Wouters" wrote in message
...
Hi all,

I am currently doing some rapid prototyping in VBA-Excel2003.
Excel is used as lightweight relational database, hence requiring
frequent selection of 'records/rows' based on multiple criteria.

The selections then are transformed into arrays in order to present them
in
listboxes.

What is the most efficient/performant way to filter out the relevant
information ?
autofilter ? advancefilter ? find(next) ? for each r in rows - loop ?

tnx in advance,
kind regards,
Bart Wouters





All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com