Workbook takes too long to calcuate

baleshst

Board Regular
Joined
Jan 24, 2010
Messages
131
Hi,

I have a Profit and loss workbook.
Sheet 1 has the actual profit and loss which has roughly 700 rows and columns upto zz.
Sheet 2 is the TB which has roughly 6000 rows and columns upto U
Sheet 1 derives data from sheet 2. In sheet 1, there is a data validation drop down given which will calculate the P&L as the criteria from data validation is selected.

The problem comes here. First of all, when the sheet opens it takes a lot of time to open. (there are no external links to another workbook). And when the user selects criteria from data validation, it takes approx 5 mins for the Profit and loss to calculate. Most of the formulas used in the Profit and loss account are similar to this =+SUMIFS(TB!$J1:$J60000,TB!$C1:$C60000,$A452,TB!$E1:$E60000,F$3)*$B452


Please let me know if I could speed up the workbook opening speed and sheet calculation speed.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
It would help if you added what version of Excel and on what Platform you're using in your Profile. Also, it couldn't hurt to post a small sample of the data using XL2BB which would also include the formulas in question.
If you have access to Excel on the Web, you can Check Performance there which could help.
 
Upvote 0
Sheet 2 is the TB which has roughly 6000 rows and columns upto U

=+SUMIFS(TB!$J1:$J60000,TB!$C1:$C60000,$A452,TB!$E1:$E60000,F$3)*$B452
If you have up to 6000 rows of data, why are you going up to row 60000 instead of 6000?
Also, do you have a lot of formulas in "blank" rows of data?

It may help to eliminate a lot of unnecessary formulas.

Also note that Excel does have a formula dependency limit. It can only track something like 1 million formula dependencies.
Once you exceed that limit, Excel cannot zero in on what cells need re-calculating, and has to re-calculate every single formula in the entire workbook!
If you run into this, it is usually a sign that you are using the wrong tool for the project! If you have that many formula dependencies, you probably are working with a relational database model, and as such, it would be far better to use a relational database program like Microsoft Access or SQL.

Other than that, you may want to shut off Automatic Calculation, and only Recalculate at specified times (or manually).
It will still take a long time to calculate, but then at least it is only happening at certain specified times, and not every time you make a data change.
 
Upvote 0
Sometimes there are thousands of blank rows at the bottom of a sheet, after the last row with data. They cause the sheet to be very slow. Here is how you can get rid of it:
1678455290367.png
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top