+ Reply to Thread
Results 1 to 7 of 7

Insert row and keep row numbering sequentially in a column

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Insert row and keep row numbering sequentially in a column

    I want to insert a row and keep the numbering in column D sequencially, so no row number will be skipped.

    Please see attached. Both "before" and "after" worksheets.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Insert row and keep row numbering sequentially in a column

    Hi

    try this in D2 and copy down

    =ROW(D1)+1

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert row and keep row numbering sequentially in a column

    You really just need this in D1, then copied down:

    =ROW()


    @FOTIS: I don't think yours works, if you use that and insert a row, the numbers don't adjust properly.
    Last edited by JBeaucaire; 01-18-2012 at 07:44 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: Insert row and keep row numbering sequentially in a column

    You could use =ROW(A1)

    However, the formula may not be copied automatically into the new row.

    The good news is that all the other rows would be numbered correctly.

    If you made that data area a table, the formulae would be copied into new rows ... just a thought.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert row and keep row numbering sequentially in a column

    @TMShucks... I don't think so, insert a row after using that, notice the rows move down without correcting? You have to leave the cell reference out to get it to work using this method.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Insert row and keep row numbering sequentially in a column

    @JB, With all due respect

    ..@FOTIS: I don't think yours works, if you use that and insert a row, the numbers don't adjust properly.
    No one of our solutions, gives this: " the numbers don't adjust properly"
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Insert row and keep row numbering sequentially in a column

    Hi & thanks.

    Is there anyway to make the numbering go down the column automatically without putting a new formula in the blank cell when I insert a row? I know this works in a table, but is there anyway without a table? I'm assuming a macro is the only way?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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