+ Reply to Thread
Results 1 to 6 of 6

Autofilter - display column showing visible row count

  1. #1
    Registered User
    Join Date
    07-04-2004
    Posts
    33

    Autofilter - display column showing visible row count

    I want to autofilter a list. In the column directly to the left of the filtered list I would like to consecutively number each of the visible rows in the filtered list.
    So if i have a list with headers in b1 and c1 and data entered in b2 and c2 ....
    and the filtered list has 3 items in it.
    then I'd like to see:

    A1: No B1: Header1 C1: Header2
    A2: 1 B2: 1234 C2: ABCD
    A3: 2 B3: 1234 C3: FGHI
    A4: 3 B4: 1234 C4: JKLM

    Is this even possible?

    Thanks
    Richard

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Yes it is possible, and not to difficult.
    Put this in the first column: =SUBTOTAL(3,$A$2:A2) and copy down

    Hope it helped
    Ola Sandström

  3. #3
    Registered User
    Join Date
    07-04-2004
    Posts
    33

    Autofilter - display column showing visible row count

    Hi -
    When I try your formula in column A [the header is No - so formula starts in A2 then I get 0 as the result for A2. And it still isn't showing consecutive numbers in descending rows. Am I doing something wrong?

    Richard


    Yes it is possible, and not to difficult.
    Put this in the first column: =SUBTOTAL(3,$A$2:A2) and copy down

    Hope it helped
    Ola Sandström

  4. #4
    Registered User
    Join Date
    07-04-2004
    Posts
    33

    Autofilter - display column showing visible row count

    Ola
    Hi - the formula works of course!
    I just entered it into the wrong column.

    Thanks very much -

    Richard

  5. #5
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Happy to hear
    Thanks for the feedback
    Ola Sandström

  6. #6
    Debra Dalgleish
    Guest

    Re: Autofilter - display column showing visible row count

    If you use Excel's Data>Subtotals feature, you should remove the column
    of "numbering" subtotals before you apply the Subtotals feature.

    Otherwise, your table may be deleted when you remove the Subtotals feature.


    olasa wrote:
    > Yes it is possible, and not to difficult.
    > Put this in the first column: =SUBTOTAL(3,$A$2:A2) and copy down
    >
    > Hope it helped
    > Ola Sandström
    >
    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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