• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Cell references

Gents and Ladies,

I'm a little bit embarrassed to ask such a seemingly easy question, but I have somewhat of an issue that is really getting under my skin here.

In one cell I have a straightforward and simple formula (For example: =(F2+G2+H2)/2))

My problem is that when i insert a a column the formula changes to =(G2+H2+I2)/2 regardless of the cell reference being absolute or not.  I would like the formula to always refer to the same cell no matter if I insert a column or not. (In other words, the formula to remain unchanged)

I'm absolutely stymied by this.

Please help.

:)

Thank you.
0
thirtywinter
Asked:
thirtywinter
  • 2
1 Solution
 
SiddharthRoutCommented:
For that you have to use Offset formula for example if the above formula is in B2 then you can also use the following

=(OFFSET(B2,0,4,1,1)+OFFSET(B2,0,5,1,1)+OFFSET(B2,0,6,1,1))

Sid
0
 
SiddharthRoutCommented:
Oops I forgot the /2

=(OFFSET(B2,0,4,1,1)+OFFSET(B2,0,5,1,1)+OFFSET(B2,0,6,1,1))/2

Similarly if the formula is in A2 then change it to

=(OFFSET(A2,0,5,1,1)+OFFSET(A2,0,6,1,1)+OFFSET(A2,0,7,1,1))/2

Sid
0
 
ScottyworldCommented:
You can also use the INDIRECT function of Excel

=SUM(INDIRECT("F2:H2"))/2

0
 
thirtywinterAuthor Commented:
Worked like a champ! Thank you very much!

I was starting to wonder if I was loosing my mind or something.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now