Recalculating Excel Sheets with activated autofilter

G

Guest

Hi all

I wrote a solution which recalculates the whole workbook (Excel 2002 SP2) in some functions. Everything works fine, but if the user activates the autofilter for some big sheets with complex formulas, the performance is terrible. Without activated filter, recalculation is finished in 10-20 seconds, with activatet autofilter it will take 2-3 minutes

Any ideas how to get a better performance
 
C

Charles Williams

Hi BVA,

selecting any filter in autofilter mode triggers a recalcuation of all the
formulae in the list, even if none of their precedents have changed.

So maybe what is happening is that in a normal recalc very few of these
formulae are being calculated because very few precedents have changed, but
when the filter is activated all the formulae are being recalculated.

You could check this by timing ctrl/alt/f9 , if this takes 2-3 minutes it
would tend to confirm the explanation.

If this explanation is correct then you need to speed up the formulae, so
post an example of a slow formula and we will see if there is a faster way.


Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

BVA said:
Hi all,

I wrote a solution which recalculates the whole workbook (Excel 2002 SP2)
in some functions. Everything works fine, but if the user activates the
autofilter for some big sheets with complex formulas, the performance is
terrible. Without activated filter, recalculation is finished in 10-20
seconds, with activatet autofilter it will take 2-3 minutes.
 
G

Guest

Hi Charles

thanks for the answer. Unfortunately, the recalculating of the hole workbook with CTRL/ALT/F9 needs about 20 seconds, so the bottleneck aren't the slow formulas..

Does Excel recalculate the autofilter after recalculating a formula in the filtered table? This could be the answer to my problem..

Greeting
BVA
 
C

Charles Williams

Hmmm... are you in Automatic calculation mode? if so switch to manual and
see what happens.


Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

BVA said:
Hi Charles,

thanks for the answer. Unfortunately, the recalculating of the hole
workbook with CTRL/ALT/F9 needs about 20 seconds, so the bottleneck aren't
the slow formulas...
Does Excel recalculate the autofilter after recalculating a formula in the
filtered table? This could be the answer to my problem...
 
G

Guest

Hi Charles,

another thing I just found out: It is not only the activated autofilter. If I switch on the autofilter and calculate, everything is OK (20 seconds). But the more filter criterias I define, the longer takes the calculation (up to 3 minutes).
 
C

Charles Williams

Hi BVA,

What I meant was: are you in Manual calculation mode all the time when using
autofilter?
(nothing to do with ctrl/alt/f9)


Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

BVA said:
Hi Charles,

another thing I just found out: It is not only the activated autofilter.
If I switch on the autofilter and calculate, everything is OK (20 seconds).
But the more filter criterias I define, the longer takes the calculation (up
to 3 minutes).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top