Turning off calculations not preventing hanging

JIMBO992

New Member
Joined
Feb 25, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have the below formula in approximately 1.4M cells (192 columns by 8036 rows) in one worksheet:

Excel Formula:
=IFERROR(IF(GP$119<$M124,"",IF(GP$119=$M124,HLOOKUP("T0",$119:$10231,MATCH($N124,$N$119:$N$10231,0),0),HLOOKUP("T+"&DATEDIF($M124,GP$119,"M"),$119:$10231,MATCH($N124,$N$119:$N$10231,0),0))),0)

In the same worksheet I also have an additional 150 columns (also with 8036 rows) that have far fewer non blank cells (205k). 103k of those cells have the below formula, with the remaining 102k being hard coded values:

Excel Formula:
=IF(OR(EE7579="",EE7579=0),"",VLOOKUP($V7602,$C$1:$D$30,2,0)*EE7579)

The document has become very slow and hangs and/or crashes when attempting to manipulate/change the sheet, such as inserting columns/rows (even in blank cells outside of any data); Sorting; cutting and pasting etc.

I was hoping that running a simple piece of VBA code (below), to turn off calculations would prevent the root cause of the hanging:

VBA Code:

Sub Turn_off_calculations()

Worksheets("Sheet 1").EnableCalculations = False

End Sub

VBA Code:

Calculations are turned off, but even if I attempt to insert a single row outside of my data range, excel still hangs/takes a long time to insert row.

Should disabling calculations prevent excel from hanging?

Many thanks in advance for any assistance!

James.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You might be better off using

VBA Code:
    Application.Calculation = xlCalculationManual
    Application.Calculation = xlCalculationAutomatic
 
Upvote 0
Thanks for the response and input, riv!

I should have clarified, manual calculations was the first step I took, but that doesn't prevent the hanging. From reading historic issues from others, most people believe it should?!

James.
 
Upvote 0
Yes it should if the formulas are the cause of the hanging. But there are other things that can cause Excel to hang. Poorly designed event macro code or lack of sufficent available PC memory to name two.
 
Upvote 0
A lot of conditional formatting can cause problems & is not affected by turning calculation to Manual
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,852
Members
449,345
Latest member
CharlieDP

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