+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : counting rows

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    huntsville alabama
    MS-Off Ver
    excel 2007
    Posts
    18

    counting rows

    how do I do a running count of rows. I have a list of 12000+ items that I would like to number, but as I go through them, I will be deleting about half, but I want the count to update as I delete them.

    Thanks.
    Last edited by rossmoyne; 02-08-2011 at 06:07 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: counting rows

    Welcome to the forum.

    If column A is available, and row 1 is the header, then in A2 and copy down

    =ROWS(A$1:A2)-1
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-03-2011
    Location
    huntsville alabama
    MS-Off Ver
    excel 2007
    Posts
    18

    Re: counting rows

    Thanks, but that does add up the total rows I have, but that's not what I need. Let me rephase my question:

    I want each row to have a unique number. I can do that easy enough at the start, by putting an '1 in the first cell / row I want counted and then dragging it down. However, doing it that way, if I delete row 4, then my overall count doesn't update, row 5 is still row 5, when now it should be the new row 4.

    What I would like, is a way for the row numbers to update automatically when delete a row, instead of having to manually redo the row numbers.

    Any help would be greatly appreciated.

    Thanks.

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: counting rows

    Quote Originally Posted by runnymede15june1215 View Post
    Thanks, but that does add up the total rows I have, but that's not what I need. Let me rephase my question:

    I want each row to have a unique number.
    His formula does exactly what you asked...try it, see example attached

    Deleted a few rows out of this example...they automatically renumber themselves
    Attached Files Attached Files
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  5. #5
    Registered User
    Join Date
    02-03-2011
    Location
    huntsville alabama
    MS-Off Ver
    excel 2007
    Posts
    18

    Re: counting rows

    Your right. I must have done something wrong the first time.

  6. #6
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: counting rows

    If you're satisfied with his solution click on the scales in his post and give him some credit, then go back and edit your first post in this thread to "solved.

    ....to mark thread as solved, choose edit button, then choose Go Advanced, scroll up to the title and change the prefix to Solved, and then choose save.
    Last edited by jwright650; 02-04-2011 at 01:37 PM. Reason: added choosing save

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: counting rows

    Give jwright the credit, he did the heavy lifting ...

+ 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