36

I have the following formula in a Google Spreadsheet:

=IF(I11="VSS";G11;IF(I11="MCS";0;G11*Totais!C30))

I would like to freeze Totais!C30 when I click on bottom right of cell and drag down.

Currently when I do this, Totais!C30 change to Totais!C31, Totais!C32,...

2 Answers 2

60

By adding a $ in front of the column & row you can lock that specific area up when copying.

Example: Totais!$C$30 would lock down when copying anywhere else in the document. Totais!$C30 would lock down moving column to column. Totais!C$30 would lock down when moving down rows.

2
  • 1
    What if I have hundreads of such formulas to copy? I don't want to add $ to each one separately.
    – user100716
    Commented Aug 13, 2015 at 14:07
  • This does not lock the formula of a cell so that it cannot be edited. It locks the reference to an absolute reference which can then be copied unchanged to another cell. Commented Mar 27, 2017 at 22:10
6

I was able to make a big dent in locking down my individual cell formulas. I went to the formula tab, then I clicked on Show Formulas. I highlighted the first cell of one column, highlighted multiple cells, then I pressed F4. The dollar sign was added to ALL of the first cell locations in each of the formulas of the cells highlighted. It did not however add it to 2nd or third cell locations within the formulas. this would probably need to be done one at a time.

Example:

original

=SUM(I3-14)

=I6

=SUM(I3-E10)

=I5

AFTER F4

=SUM($I$3-I4)

=$I$6

=SUM($I$3-E10)

=$I$5

Hope this helps somebody.

1
  • This could be useful, but it does not exactly answer the question asked here. Commented Jun 8, 2016 at 11:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.