ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I prevent a formula element from incrementing when copying (https://www.excelbanter.com/excel-worksheet-functions/44466-how-do-i-prevent-formula-element-incrementing-when-copying.html)

Copying Excel Formulas

How do I prevent a formula element from incrementing when copying
 
Is there a way to prevent a field in a formula from incrementing when the
formula is copied to other cells? For example: In the formula
=PRODUCT(C3,A28), I do not want the A28 to change when I copy the formula to
ten other cells.

Mike

There is no easy way. If A28 never changes then just enter the number in the
formula. Or copy A28 to the ten cells left or down.

"Copying Excel Formulas" wrote:

Is there a way to prevent a field in a formula from incrementing when the
formula is copied to other cells? For example: In the formula
=PRODUCT(C3,A28), I do not want the A28 to change when I copy the formula to
ten other cells.


Robbo

Use the $ sign before the row and column:

=PRODUCT(C3,$A$28)

This will mean that the 'A28' part will stay the same where-ever you move
it. Alternatively if you want the row to change, you can use $A28, or if you
want the column to change, you can use A$28.


"Copying Excel Formulas" wrote:

Is there a way to prevent a field in a formula from incrementing when the
formula is copied to other cells? For example: In the formula
=PRODUCT(C3,A28), I do not want the A28 to change when I copy the formula to
ten other cells.


Copying Excel Formulas

I found out from another responder that if you write the A28 as $A$28, the
value will not change as it's copied to other cells. I tried it and it
worked. I just wanted to share this with you.

"Mike" wrote:

There is no easy way. If A28 never changes then just enter the number in the
formula. Or copy A28 to the ten cells left or down.

"Copying Excel Formulas" wrote:

Is there a way to prevent a field in a formula from incrementing when the
formula is copied to other cells? For example: In the formula
=PRODUCT(C3,A28), I do not want the A28 to change when I copy the formula to
ten other cells.



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

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