Looking for advice on preventing a range from calculating.

atf32

Board Regular
Joined
Apr 13, 2011
Messages
157
OS: Windows 7 MS2010

Is it possible to have a range of cells, with formulas that can be prevented from calculating, while the rest of the workbook is in calculation mode?:confused:
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi

If you mean inserted in a worksheet that has calculation enabled, no.

There is, however, a simple workaround that will mimic what you want.

You can mirror the values of an auxilliary worksheet (that you can hide) where you place all the formulas of the range that you want to only calculate on demand.

Disable calculation in the auxilliary worksheet. This way the values in the range will only change when you force calculation in the auxilliary worksheet.

This will work as if you have a range in the worksheet that is frozen. All the cells around will update automatically as usual.
 
Upvote 0
Unfortunately, I have to keep the workbook in calc mode. Otherwise, I am doing what you said.
 
Upvote 0
If I understand pgc's suggestion, it requires VBA.

For a simple example, consier a workbook with two sheets, Sheet1 and Sheet2.

In Sheet2!A1, enter =RAND().

In Sheet1!A1, enter =Sheet2!A1

Press F9 and watch Sheet1A1 -- it recalculates, as you wold expect.

In the VBA Immediate window, enter Sheet2.EnableCalculation=False

Now pressing F9 has no effect.

To recalculate Sheet2, Sheet2.EnableCalculation=True, then back to False
 
Upvote 0
Unfortunately, I have to keep the workbook in calc mode. Otherwise, I am doing what you said.


??

With my solution the workbook is in calc mode.

Maybe it was not clear. It is only the auxilliary worksheet (that can be hidden) that is not calculating automatically. All the other sheets in the workbook are calculating automatically.
 
Upvote 0
Thanks shg

That was what I meant.

The vba solution is handy, for ex. you can use a button to calculate.

It's also possible to do it directly:

- in the ribbon->developper in the properties of the sheet enable, disable calculation

or

- right-click on the worksheet tab, View code, and again in the properties of the sheet enable, disable calculation
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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