Share via

How do I extend a formula where one component refers to the same cell while the other component changes?

Laurence Hauben 0 Reputation points
2026-03-13T03:22:48.8866667+00:00

I want to automatically extend a simple formula like this one across a number of rows:

B20=B19+B17

B21=B20+B17

B22=B21+B17

Excel doesn't want to do it. It keeps changing both variables. I want B17 to be constant. How do I get Excel to accept this command?

Microsoft 365 and Office | Excel | For home | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Alexandr S 104.6K Reputation points Independent Advisor
    2026-03-13T07:41:33.41+00:00

    Hello, Laurence Hauben.

    Insert the "$" sign into the formulas like this:

    B20=B19+$B$17

    B21=B20+$B$17

    B22=B21+$B$17

    Next, select all three cells and drag them for auto-completion.

    0 comments No comments

  2. Viorel 126.8K Reputation points
    2026-03-13T05:45:09.8066667+00:00

    Try to use this formula in B20: =B19+$B$17.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.