I am trying to achieve the following scenario.

  1. value of G1 has formula set to (=F1)
  2. When I copy the formula to other cells in column G, I want the formula to saty same (=F1) instead of dynamically getting updated to next cell number in the F column like (=F2) etc.
link|improve this question
feedback

migrated from stackoverflow.com Jun 10 '11 at 12:35

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 3 down vote accepted

For something like this you can use the $-symbol.

=$F$1

The $-symbol will take the following character as constant. So with the code above it will always refer to F1, no matter where you copy it.

link|improve this answer
Why in German? ? – GrzegorzOledzki Jan 11 '11 at 11:48
I was still tired I guess... as soon as I answered I realized that I wanted to answer in English... I hope it's showing in English now? (I edited it) – evident Jan 11 '11 at 11:53
feedback

This isn't really for Stack Overflow but the answer is to use absolute references and so your formula would be =$F$2 and wherever you copy it, it would still refer to that cell.

Another way to do this would be with named cells, but absolute references is probably simpler.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown