ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I lock cell formulas??? (https://www.excelbanter.com/excel-discussion-misc-queries/88707-how-do-i-lock-cell-formulas.html)

John - Menifee, CA

How do I lock cell formulas???
 
For example, formaula is cell C1 adds cell A1 and B1. If I insert column
between B1 and C1, the formule will shift to D1. How do I make D1 formula add
cells B1 and C1 automatically. D1 currently will continue to add A1 and B1.

Elkar

How do I lock cell formulas???
 
You could use the OFFSET fuction.

In C1 enter:
=OFFSET(C1,0,-1)+OFFSET(C1,0,-2)

This adds the cells that are 1 column and 2 columns to the left of C1. When
you insert a column, the formula will be moved to D1, but still add the cells
that are 1 and 2 columns to the left.

HTH,
Elkar


"John - Menifee, CA" wrote:

For example, formaula is cell C1 adds cell A1 and B1. If I insert column
between B1 and C1, the formule will shift to D1. How do I make D1 formula add
cells B1 and C1 automatically. D1 currently will continue to add A1 and B1.


John - Menifee, CA

How do I lock cell formulas???
 
Thanks. Never used that fuction before. Still learning.

"Elkar" wrote:

You could use the OFFSET fuction.

In C1 enter:
=OFFSET(C1,0,-1)+OFFSET(C1,0,-2)

This adds the cells that are 1 column and 2 columns to the left of C1. When
you insert a column, the formula will be moved to D1, but still add the cells
that are 1 and 2 columns to the left.

HTH,
Elkar


"John - Menifee, CA" wrote:

For example, formaula is cell C1 adds cell A1 and B1. If I insert column
between B1 and C1, the formule will shift to D1. How do I make D1 formula add
cells B1 and C1 automatically. D1 currently will continue to add A1 and B1.



All times are GMT +1. The time now is 08:25 AM.

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