+ Reply to Thread
Results 1 to 12 of 12

Formula when update when row inserted.

Hybrid View

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Formula when update when row inserted.

    Hey, I am admittedly really new to excel, so it's probably a really simple mistake. After much web searching cannot find the answer to this. I am trying to create simple groups of sequential numbers that will auto update when I insert a new row. Easy I thought. So I enter 1 as a value in the top row (say A1) of a section and then enter the formula =A1+1 in the next row. I copy paste that for the length of the section I want into the column below and everything auto adjusts fine. This is where the problem begins. If I insert a row, the formulas below don't adjust leaving them referencing the row that was previously above and not currently. If I just enter A1 as a value and copy paste down. The cells all update A2, A3, A4... relative to their row, and when I insert a line they all bump up the chain, but when I add the "+1" it stops working.

    I know it's probably a rookie mistake, but whenever I search the solution I get results for constants ($A$1), not what I want.
    Thanks in advance for your help and patience with a noob.

    Chris.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula when update when row inserted.

    Hi

    Does
    Formula: copy to clipboard
    =OFFSET(A2,-1,0)+1

    in A2 copied down help?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula when update when row inserted.

    Quote Originally Posted by Richard Buttrey View Post
    Hi

    Does
    Formula: copy to clipboard
    =OFFSET(A2,-1,0)+1

    in A2 copied down help?
    Hey Sorry Guys.
    I did manage to get this to work. Does exactly what I was looking for. Thanks for all the help.

  4. #4
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula when update when row inserted.

    Handy, but not quite what I'm looking for. Noticed I typed the title of my thread wrong, should read "Formula won't update when row inserted". Here's a sample of what I am trying to do.

    Thanks.
    Chris.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,751

    Re: Formula when update when row inserted.

    If I understand correctly then it seems that after your group(s) of sequential numbers are created your could copy and paste special (values) as in the following copy of your file:
    Copy of Numbering Sample.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula when update when row inserted.

    Quote Originally Posted by JeteMc View Post
    If I understand correctly then it seems that after your group(s) of sequential numbers are created your could copy and paste special (values) as in the following copy of your file:
    Attachment 438746
    Let me know if you have any questions.
    The file just comes up with sequential numbers and no formulas, this causes the same problem of not updating the numbering when a new row is inserted.

    Chris

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,751

    Re: Formula when update when row inserted.

    Perhaps if you would add your expected outcomes after a row has been inserted, say in column D, to your example someone will know how to do what you are requesting.

  8. #8
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Formula when update when row inserted.

    I don't get what you really need with your instructions:

    If I insert a row here the number 5 will bump down to A18 instead of changing to 6.

  9. #9
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula when update when row inserted.

    I have a list of numbers in column A. Say 1-10. I want to be able to insert a row somewhere in the middle of that list and have the numbers change accordingly. I thought it would work to reference the first cell (A1) and add "1" to it. It works initially creating the proper formulas as I copy paste them (=A2+1, =A3+1, =A4+1...), but if I insert a new row in between the formulas don't correct to reference the new rows. It should be really simple, but I can't get it to work.

    Thanks.
    Chris

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula when update when row inserted.

    Quote Originally Posted by Gatti View Post
    I don't get what you really need with your instructions:
    Me neither!

    In the attached, which uses the offset formula I gave in #2, when you insert a row 5 and either enter 5 in A5 or copy A4 down the other rows renumber.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Formula when update when row inserted.

    Or you can just put the formula like:

    =ROW()-1

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula when update when row inserted.

    Quote Originally Posted by Gatti View Post
    Or you can just put the formula like:

    =ROW()-1
    Even better!

    Provided of course the numbering is tied to row numbers and not some other standard.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 07-29-2014, 11:10 AM
  2. Sum of columns to right - update when new column inserted
    By miro2021 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-21-2013, 11:00 AM
  3. Replies: 2
    Last Post: 07-02-2010, 02:40 PM
  4. auto update formula if rows inserted
    By ktchegi in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-20-2007, 07:51 AM
  5. update formula when row inserted
    By ktchegi in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-10-2007, 02:38 AM
  6. [SOLVED] how do you get a formula to not update when rows are inserted
    By Richard in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 01:55 PM
  7. [SOLVED] Formula doesn't update when rows are inserted
    By arreferee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2006, 11:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1