Moving cell in Excel 2010 causes function with named range inputs to recalculate - big performance inpact!

easperhe

New Member
Joined
Mar 25, 2011
Messages
4
When I move a cell in excel 2010, any function on that same sheet that has a named range as one of it's inputs will get recalculated. This is a big performance impact for me as I have a sheet with a lot of formulaes that have named ranges as inputs. Why is this happening??!! If I replace the named range with a cell name, e.g. A1, the recalculation does NOT occur.

I've read info about how excel recalculates: http://msdn.microsoft.com/en-us/library/bb687891.aspx#Y1595

and I still don't see why this is happeing. And, I've tried adding
Application.Volatile (False)
and this doesn't help. Any suggestions would be greatly appreciated!

Example:
Function etest(etest_var As String)
etest = 1
End Function

In cell A1, I have formula
=etest(etest_var)
Cell A2 is named "etest_vav"

When I move a cell ANY WHERE on the sheet, it seems excel thinks the named range "etest_var" has been modified and therefore recalculates the etest function. If I change cell A1 formula to this
=etest($A$2)
Then moving a cell on the sheet does not cause the recaculation.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If a named range is defined using a volatile function (like OFFSET), then all dependents will be volatile. If that's the case, try defining it with INDEX instead.
 
Upvote 0
Agree that defining a range with a volatile function could cause this behavior. But in my case, I'm not doing that. In my example, the cell A2 is defined directly, i.e. statically, as etest_var. So, a volatile range definition is not the issue here.
 
Upvote 0
Got it. Yes, the behavior is the same in Excel 2003 and 2007; the UDF recalculates when an unrelated cell is moved (but not when copied), though other non-volatile formulas do not.
 
Upvote 0
And it's not because it's a UDF; any formula that references a named range recalculates when cells are cut.
 
Upvote 0
shg,

I'm sure this is a dump question. But, how do you know any formula that references a named range is getting recalculated? With a UDF, I can set a breakpoint. But with a regular formula, how do you know it's getting recalculated?

Eric
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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