Prevent cell numbers from incrementing in a formula in Excel

后端 未结 4 1165
囚心锁ツ
囚心锁ツ 2021-02-02 04:56

I have a formula in Excel that needs to be run on several rows of a column based on the numbers in that row divided by one constant. When I copy that formula and apply it to eve

4条回答
  •  我在风中等你
    2021-02-02 05:50

    There is something called 'locked reference' in excel which you can use for this, and you use $ symbols to lock a range. For your example, you would use:

    =IF(B4<>"",B4/B$1,"")
    

    This locks the 1 in B1 so that when you copy it to rows below, 1 will remain the same.

    If you use $B$1, the range will not change when you copy it down a row or across a column.

提交回复
热议问题