• Maintaining formula when adding new column

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Maintaining formula when adding new column

    • This topic has 2 replies, 2 voices, and was last updated 16 years ago.
    Author
    Topic
    #459815

    I hope I am describing this accurately:

    Column M (April 2009)
    Column N (May 2009)
    Column O (formula) =SUM(N6-M6)

    For June, I copy Column N and insert it to the right of Column N (becoming Column O )
    Now Column P has the formula =SUM(N6-M6) which I have to manually change to =SUM(O6-N6)

    Is there an option where the formula automatically updates without manually having to change it?

    Thank you for your help.

    Michael

    Viewing 0 reply threads
    Author
    Replies
    • #1160408

      You could use a formula like this in O6:

      =OFFSET(O6,0,-1)-OFFSET(O6,0,-2)

      This will always calculate the difference of the two cells to the left of the cell with the formula. Note that there is no need to use SUM.

    Viewing 0 reply threads
    Reply To: Maintaining formula when adding new column

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: