Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Keep Excel Formula constant

I have a formula in a cell at the top of the worksheet, which calculates
values of numbers below it (formula = G3*G8). However, I am constantly
adding rows below this formula with data into row G8, and as a result, the
formula changes to =G3*G9 which is no longer correct. I have tried placing $
in front of both the G and the 8 however it does not keep the cell constant.
Is there any way I can keep that cell constant while still adding rows below
it? Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Keep Excel Formula constant

Here is a little trick to get cell references that don't adjust. A formula
like:

=G8

will adjust as you add or remove rows above G8, but the formula:

=INDIRECT("G"&8)

refers to the same cell, but will not adjust as you add or remove cells!
--
Gary's Student
gsnu200703


"ChrisG" wrote:

I have a formula in a cell at the top of the worksheet, which calculates
values of numbers below it (formula = G3*G8). However, I am constantly
adding rows below this formula with data into row G8, and as a result, the
formula changes to =G3*G9 which is no longer correct. I have tried placing $
in front of both the G and the 8 however it does not keep the cell constant.
Is there any way I can keep that cell constant while still adding rows below
it? Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Keep Excel Formula constant

OK, that makes sense, but how do I write the formula when I am trying to
multiply two numbers without having either cell change. I could not get G8
and G3 to multiply with "Indirect" writen outside of the brackets?

"Gary''s Student" wrote:

Here is a little trick to get cell references that don't adjust. A formula
like:

=G8

will adjust as you add or remove rows above G8, but the formula:

=INDIRECT("G"&8)

refers to the same cell, but will not adjust as you add or remove cells!
--
Gary's Student
gsnu200703


"ChrisG" wrote:

I have a formula in a cell at the top of the worksheet, which calculates
values of numbers below it (formula = G3*G8). However, I am constantly
adding rows below this formula with data into row G8, and as a result, the
formula changes to =G3*G9 which is no longer correct. I have tried placing $
in front of both the G and the 8 however it does not keep the cell constant.
Is there any way I can keep that cell constant while still adding rows below
it? Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Keep Excel Formula constant

Try:

=INDIRECT("G"&8)*INDIRECT("G"&3)

--
Gary's Student
gsnu200703


"ChrisG" wrote:

OK, that makes sense, but how do I write the formula when I am trying to
multiply two numbers without having either cell change. I could not get G8
and G3 to multiply with "Indirect" writen outside of the brackets?

"Gary''s Student" wrote:

Here is a little trick to get cell references that don't adjust. A formula
like:

=G8

will adjust as you add or remove rows above G8, but the formula:

=INDIRECT("G"&8)

refers to the same cell, but will not adjust as you add or remove cells!
--
Gary's Student
gsnu200703


"ChrisG" wrote:

I have a formula in a cell at the top of the worksheet, which calculates
values of numbers below it (formula = G3*G8). However, I am constantly
adding rows below this formula with data into row G8, and as a result, the
formula changes to =G3*G9 which is no longer correct. I have tried placing $
in front of both the G and the 8 however it does not keep the cell constant.
Is there any way I can keep that cell constant while still adding rows below
it? Thanks for your help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula vs constant rk0909 Excel Discussion (Misc queries) 1 January 14th 10 03:03 AM
Constant in Excel Formula Chele Excel Worksheet Functions 3 April 18th 09 12:34 AM
Set a constant from a formula in VBA Ed Excel Discussion (Misc queries) 1 December 1st 06 01:31 AM
Excel displaying formulae as constant and not calculating formula gpbell Excel Worksheet Functions 2 February 16th 06 08:26 AM
Constant in Formula Sige Excel Programming 27 September 28th 05 08:21 AM


All times are GMT +1. The time now is 05:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"