+ Reply to Thread
Results 1 to 3 of 3

Thread: Formula to keep row numbers sequential AFTER rows are deleted.

  1. #1
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    164

    Formula to keep row numbers sequential AFTER rows are deleted.

    If I have a string of numbers in a column starting with 1 going thru 20 and I were to delete the middle number (11-15; esentially removing 5 lines), how would I set up the cells to now re-number the rows 1 thru 15?

    I've attached an example for clarity.

    CheddarThief
    Attached Files Attached Files
    Last edited by cheddarthief; 08-18-2011 at 09:24 AM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Formula to keep row numbers sequential AFTER rows are deleted.

    Probably the easier way is, in your example, to replace the value 1 with the formula:

    =ROW()-4

    And copy that all the way down your list of numbers. You can now delete rows on a whim and the numbers will stay sequential.

  3. #3
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Formula to keep row numbers sequential AFTER rows are deleted.

    Andrew, that worked great. Thanks.

+ 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.2.0