Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2005

Tip: Looking for answers? Try searching our database.

Locking Formulas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thadar - 16 Dec 2005 20:22 GMT
Hello,

I need to average 3 cells.  However, whenever I add a new column, the
formulas shift by a cell, but I dont want them to.  How do I keep the
formulas from changing?

Example:

Avg   Cell F   Cell G   Cell H

Now, I want to Avg Cell F-H

However, when I insert a new cell to put this latest years numbers in I
want what is currently in Cell H (Soon to be Cell I when I insert a
column at Cell F) to drop out of the equation.  I still want to Avg
Cell F-H but Excel keeps shifting the formula to Cell G-I.

Ok, hope that makes sense.  How do I lock the formula?

Signature

Thadar

Biff - 16 Dec 2005 23:02 GMT
Hi!

Try this:

=AVERAGE(INDIRECT("F1:H1"))

That formula will always refer to cells F1:H1.

Biff

> Hello,
>
[quoted text clipped - 14 lines]
>
> Ok, hope that makes sense.  How do I lock the formula?
Max - 17 Dec 2005 02:00 GMT
> .. =AVERAGE(INDIRECT("F1:H1"))

If we need to copy down from the starting cell,
one variation on Biff's suggestion above to try in say, K1:
=AVERAGE(OFFSET(INDIRECT("F1"),ROW(A1)-1,,,3))
K1 could then be copied down to return correspondingly
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
Max - 17 Dec 2005 02:19 GMT
Another variant, placed in K1, copied down:
=AVERAGE(OFFSET(INDIRECT("F1:H1"),ROW(A1)-1,))
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.