+ Reply to Thread
Results 1 to 2 of 2

countif for only visible rows when combined with autofilter - possible?

  1. #1
    Registered User
    Join Date
    09-20-2005
    Posts
    8

    countif for only visible rows when combined with autofilter - possible?

    I would like to use countif or something that works like that on a autofiltered column to count occurences of several values, like a frequency list.

    The problem is that not just the visible cells are counted but the hidden ones as well.
    Is there a way to do this, subtotal can count all visible rows in a column but I need to separate the different values.

    /Johan

  2. #2
    Rowan
    Guest

    Re: countif for only visible rows when combined with autofilter -possible?

    You could use a sumproduct function, this example counts all the visible
    records in column A which have the value "Rowan":

    =SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(A2:A100,1,1),ROW(A2:A100)-ROW(INDEX(A2:A100,1,1)),0))=1),--(A2:A100="Rowan"))

    Hope this helps
    Rowan

    johli wrote:
    > I would like to use countif or something that works like that on a
    > autofiltered column to count occurences of several values, like a
    > frequency list.
    >
    > The problem is that not just the visible cells are counted but the
    > hidden ones as well.
    > Is there a way to do this, subtotal can count all visible rows in a
    > column but I need to separate the different values.
    >
    > /Johan
    >
    >


+ 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