Forum Discussion
AndreySergeevRID
Sep 02, 2021Copper Contributor
The problem with ranges in formulas
Good afternoon, I need help! When you create a formula with a reference to another sheet, when you change the range of the other sheet, Excel itself changes the range in the original formula. How ...
- Sep 02, 2021
You can use INDIRECT to prevent that.
For example, let's say you have a formula
=SUM(OtherSheet!A1:A10)
Change it to
=SUM(INDIRECT("OtherSheet!A1:A10"))
Since the argument of INDIRECT is a text string, it won't change if you move or delete the range A1:A10.
HansVogelaar
Sep 02, 2021MVP
You can use INDIRECT to prevent that.
For example, let's say you have a formula
=SUM(OtherSheet!A1:A10)
Change it to
=SUM(INDIRECT("OtherSheet!A1:A10"))
Since the argument of INDIRECT is a text string, it won't change if you move or delete the range A1:A10.
- AndreySergeevRIDSep 02, 2021Copper Contributor
HansVogelaar Thank you very much