Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default VBA Calculation - taking forever

I have a workbook with a series of formulas to prepare a financial
report.
There is a large volume of data in these workbooks but it is taking a
very long period of time to calculate and would like some assistance
to try and reduce the amount of calculation it does in order to speed
up the process.

So far it has taken over 10 minutes to do the calculations.

On the raw data, there is a UDF which determines what category the
transaction falls into: this is.....

------

Public Function CoA_Class_Lookup(Account As Variant) As String

Select Case Account

Case 100102 To 399901
CoA_Class_Lookup = "Expense"
Case 400102 To 551101
CoA_Class_Lookup = "Revenue"
Case 551102
CoA_Class_Lookup = "Transfer"
Case 551103 To 599907
CoA_Class_Lookup = "Revenue"
Case Else
CoA_Class_Lookup = "ERROR"
End Select

End Function

------

There is a large volume of array formulas in the cells which the
formula is:

=SUM((CCE='Grants Balance'!$A12)*(Period='Grants Balance'!H$2)*
(category='Grants Balance'!I$3)*(period.activity))*-1

------

In the raw data there is a column that has the formula
=CoA_Class_Lookup() where the range is named "category"

------

There is currently 11,000 rows of data in the raw data workbook and
any suggestions to improve the speed it takes to calculate all 11,000
rows would be greatly appreciated.

My suspision is that it is the "Select Case" function that is causing
the grief.
Is there any suggestions
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculation taking too long yowzers Excel Worksheet Functions 8 December 15th 09 11:25 PM
VBA Calculation - taking forever Harald Staff[_2_] Excel Programming 0 February 4th 09 07:35 AM
2007 Merge cells taking forever J Streger Excel Programming 7 January 27th 09 02:21 AM
Excel File Taking Forever to Open MEAD5432 Excel Discussion (Misc queries) 5 June 11th 08 08:58 PM
Calculating Cells Taking Forever Jason Excel Discussion (Misc queries) 2 September 14th 06 07:13 PM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"