ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Absolute references and inserting columns (https://www.excelbanter.com/excel-discussion-misc-queries/220616-absolute-references-inserting-columns.html)

BobK

Absolute references and inserting columns
 
I created a formula that contains absolute references (ex. =sum($C$5, $C$7,
$C$9)). I need to insert a NEW, blank column C. Even with absolute references
in the formula, the formula changes the references to $D$5, $D$7, etc.

Is there a way to keep the formula pointing to column C regardless of
inserting new columns?

Thanks in advance!

Gary''s Student

Absolute references and inserting columns
 
=SUM(INDIRECT("$C$5"),INDIRECT("$C$7"),INDIRECT("$ C$9"))
--
Gary''s Student - gsnu200833

David Biddulph[_2_]

Absolute references and inserting columns
 
Use the INDIRECT function.
--
David Biddulph

"BobK" wrote in message
...
I created a formula that contains absolute references (ex. =sum($C$5, $C$7,
$C$9)). I need to insert a NEW, blank column C. Even with absolute
references
in the formula, the formula changes the references to $D$5, $D$7, etc.

Is there a way to keep the formula pointing to column C regardless of
inserting new columns?

Thanks in advance!




Fred Smith[_4_]

Absolute references and inserting columns
 
One way is to use Indirect, as in:
=indirect("C5")+indirect("C7")+indirect("C9")

In your example, using Sum is superfluous. Just add the numbers.

Regards,
Fred.

"BobK" wrote in message
...
I created a formula that contains absolute references (ex. =sum($C$5, $C$7,
$C$9)). I need to insert a NEW, blank column C. Even with absolute
references
in the formula, the formula changes the references to $D$5, $D$7, etc.

Is there a way to keep the formula pointing to column C regardless of
inserting new columns?

Thanks in advance!



Bernard Liengme

Absolute references and inserting columns
 
Why SUM when =$C$5 + $C$7+ $C$9 does the same thing?
Now to answer your question
=INDIRECT("C5")+INDIRECT("C7")+INDIRECT("C9")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"BobK" wrote in message
...
I created a formula that contains absolute references (ex. =sum($C$5, $C$7,
$C$9)). I need to insert a NEW, blank column C. Even with absolute
references
in the formula, the formula changes the references to $D$5, $D$7, etc.

Is there a way to keep the formula pointing to column C regardless of
inserting new columns?

Thanks in advance!





All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com