Closed Thread
Results 1 to 11 of 11

numbering filtered rows

  1. #1
    glen.e.mettler@lmco.com
    Guest

    numbering filtered rows

    If I put = Row() in a column of cells I get the row number.
    Now, suppose I filter the data. I want to show the sequence row number
    of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    actual row number.
    For example, I amy have "Joe Smith" on row #45 but when I filter on a
    particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    That row is what I need to show.

    How can I do that? Is it possible without numbering by hand?

    Glen


  2. #2
    Dave Peterson
    Guest

    Re: numbering filtered rows

    If you can find a column that always has data in it (like that name column), you
    could use:

    in A2 (with headers in Row 1 and names in column B):

    =subtotal(3,$b$2:b2)

    and drag down column A.

    "glen.e.mettler@lmco.com" wrote:
    >
    > If I put = Row() in a column of cells I get the row number.
    > Now, suppose I filter the data. I want to show the sequence row number
    > of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    > actual row number.
    > For example, I amy have "Joe Smith" on row #45 but when I filter on a
    > particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    > That row is what I need to show.
    >
    > How can I do that? Is it possible without numbering by hand?
    >
    > Glen


    --

    Dave Peterson

  3. #3
    Ron Coderre
    Guest

    RE: numbering filtered rows

    If you have one filtered column that will always have a value (no blanks),
    maybe this will work for you:

    Assuming your data list is in A10:Z1000 and Col_B will have no blanks

    Insert a column in front of your data for the sequence numbers and head it
    Seq.
    Now Col_A is the Seq column

    A11: =SUBTOTAL(3,B$10:B11)-1
    Copy that formula down through A1000

    When you apply a filter, the Seq column will automatically number records,
    beginning with the first visible record.

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "glen.e.mettler@lmco.com" wrote:

    > If I put = Row() in a column of cells I get the row number.
    > Now, suppose I filter the data. I want to show the sequence row number
    > of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    > actual row number.
    > For example, I amy have "Joe Smith" on row #45 but when I filter on a
    > particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    > That row is what I need to show.
    >
    > How can I do that? Is it possible without numbering by hand?
    >
    > Glen
    >
    >


  4. #4
    Debra Dalgleish
    Guest

    Re: numbering filtered rows

    But don't use this technique in conjunction with the Data>Subtotals
    command, or it may delete all the rows in your table!

    Dave Peterson wrote:
    > If you can find a column that always has data in it (like that name column), you
    > could use:
    >
    > in A2 (with headers in Row 1 and names in column B):
    >
    > =subtotal(3,$b$2:b2)
    >
    > and drag down column A.
    >
    > "glen.e.mettler@lmco.com" wrote:
    >
    >>If I put = Row() in a column of cells I get the row number.
    >>Now, suppose I filter the data. I want to show the sequence row number
    >>of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    >>actual row number.
    >>For example, I amy have "Joe Smith" on row #45 but when I filter on a
    >>particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    >> That row is what I need to show.
    >>
    >>How can I do that? Is it possible without numbering by hand?
    >>
    >>Glen

    >
    >



    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html


  5. #5
    glen.e.mettler@lmco.com
    Guest

    Re: numbering filtered rows

    Thanks Dave, just what I needed.

    Glen


  6. #6
    Dave Peterson
    Guest

    Re: numbering filtered rows

    I'm confused...

    How would this delete any of the rows?

    Debra Dalgleish wrote:
    >
    > But don't use this technique in conjunction with the Data>Subtotals
    > command, or it may delete all the rows in your table!
    >
    > Dave Peterson wrote:
    > > If you can find a column that always has data in it (like that name column), you
    > > could use:
    > >
    > > in A2 (with headers in Row 1 and names in column B):
    > >
    > > =subtotal(3,$b$2:b2)
    > >
    > > and drag down column A.
    > >
    > > "glen.e.mettler@lmco.com" wrote:
    > >
    > >>If I put = Row() in a column of cells I get the row number.
    > >>Now, suppose I filter the data. I want to show the sequence row number
    > >>of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    > >>actual row number.
    > >>For example, I amy have "Joe Smith" on row #45 but when I filter on a
    > >>particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    > >> That row is what I need to show.
    > >>
    > >>How can I do that? Is it possible without numbering by hand?
    > >>
    > >>Glen

    > >
    > >

    >
    > --
    > Debra Dalgleish
    > Contextures
    > http://www.contextures.com/tiptech.html


    --

    Dave Peterson

  7. #7
    Debra Dalgleish
    Guest

    Re: numbering filtered rows

    When you remove the Subtotals (Data>Subtotals, Remove All), every row in
    the table that contains a Subtotal formula is deleted, including
    Subtotal formulas that were manually inserted.

    And there's no Undo. You can close the file without saving the changes,
    which is okay, unless you've made lots of other changes, and hadn't
    saved them.

    Dave Peterson wrote:
    > I'm confused...
    >
    > How would this delete any of the rows?
    >
    > Debra Dalgleish wrote:
    >
    >>But don't use this technique in conjunction with the Data>Subtotals
    >>command, or it may delete all the rows in your table!
    >>
    >>Dave Peterson wrote:
    >>
    >>>If you can find a column that always has data in it (like that name column), you
    >>>could use:
    >>>
    >>>in A2 (with headers in Row 1 and names in column B):
    >>>
    >>>=subtotal(3,$b$2:b2)
    >>>
    >>>and drag down column A.
    >>>
    >>>"glen.e.mettler@lmco.com" wrote:
    >>>
    >>>
    >>>>If I put = Row() in a column of cells I get the row number.
    >>>>Now, suppose I filter the data. I want to show the sequence row number
    >>>>of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    >>>>actual row number.
    >>>>For example, I amy have "Joe Smith" on row #45 but when I filter on a
    >>>>particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    >>>>That row is what I need to show.
    >>>>
    >>>>How can I do that? Is it possible without numbering by hand?
    >>>>
    >>>>Glen
    >>>
    >>>

    >>--
    >>Debra Dalgleish
    >>Contextures
    >>http://www.contextures.com/tiptech.html

    >
    >



    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html


  8. #8
    Dave Peterson
    Guest

    Re: numbering filtered rows

    Ahhhh.

    Now I see (as I picked up that hammer and saw!).



    Debra Dalgleish wrote:
    >
    > When you remove the Subtotals (Data>Subtotals, Remove All), every row in
    > the table that contains a Subtotal formula is deleted, including
    > Subtotal formulas that were manually inserted.
    >
    > And there's no Undo. You can close the file without saving the changes,
    > which is okay, unless you've made lots of other changes, and hadn't
    > saved them.
    >
    > Dave Peterson wrote:
    > > I'm confused...
    > >
    > > How would this delete any of the rows?
    > >
    > > Debra Dalgleish wrote:
    > >
    > >>But don't use this technique in conjunction with the Data>Subtotals
    > >>command, or it may delete all the rows in your table!
    > >>
    > >>Dave Peterson wrote:
    > >>
    > >>>If you can find a column that always has data in it (like that name column), you
    > >>>could use:
    > >>>
    > >>>in A2 (with headers in Row 1 and names in column B):
    > >>>
    > >>>=subtotal(3,$b$2:b2)
    > >>>
    > >>>and drag down column A.
    > >>>
    > >>>"glen.e.mettler@lmco.com" wrote:
    > >>>
    > >>>
    > >>>>If I put = Row() in a column of cells I get the row number.
    > >>>>Now, suppose I filter the data. I want to show the sequence row number
    > >>>>of the filtered data so that it shows 1,2,3,4,5 etc regardless of the
    > >>>>actual row number.
    > >>>>For example, I amy have "Joe Smith" on row #45 but when I filter on a
    > >>>>particular parameter, "Joe Smith" may be on row 2 of the filtered data.
    > >>>>That row is what I need to show.
    > >>>>
    > >>>>How can I do that? Is it possible without numbering by hand?
    > >>>>
    > >>>>Glen
    > >>>
    > >>>
    > >>--
    > >>Debra Dalgleish
    > >>Contextures
    > >>http://www.contextures.com/tiptech.html

    > >
    > >

    >
    > --
    > Debra Dalgleish
    > Contextures
    > http://www.contextures.com/tiptech.html


    --

    Dave Peterson

  9. #9
    Registered User
    Join Date
    04-21-2011
    Location
    Iran
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: numbering filtered rows

    Hi Dave Peterson ,
    Very Thanks for your solution , this is worked perfect ....
    I did very searching in Internet and just Your solution worked for me ....
    Thanks ...

    Note : add on Command to this formula
    For autonumber the hide row this is worked ok =subtotal(3,$b$2:b2)

    but for autonumber except the hide row you must use 103 key inestead of 3

    =subtotal(103,$b$2:b2)

    Thanks again

    Farzad From Iran

    ..................................................
    Last edited by romperstomper; 04-21-2011 at 05:23 AM. Reason: remove quote and email address

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: numbering filtered rows

    this is a veryold thread and people still had excel 97 then as well as 2003 the 103 option is not in excel 97.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: numbering filtered rows

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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