Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
johli
 
Posts: n/a
Default 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


--
johli
------------------------------------------------------------------------
johli's Profile: http://www.excelforum.com/member.php...o&userid=27388
View this thread: http://www.excelforum.com/showthread...hreadid=469427

  #2   Report Post  
Rowan
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tried using SUBTOTAL function (XL XP) and it doesn't seem to work JethroUK© New Users to Excel 12 August 22nd 05 08:33 PM
Visible rows and functions that work tracy Excel Worksheet Functions 2 August 19th 05 06:25 AM
How do you ignore hidden rows in a countif() function Scott buckwalter Excel Worksheet Functions 9 August 11th 05 09:36 PM
How to plot only visible autofiltered rows in a data list Craig Charts and Charting in Excel 1 June 28th 05 09:38 PM
color bands for visible rows only tjtjjtjt Excel Discussion (Misc queries) 1 April 30th 05 09:16 PM


All times are GMT +1. The time now is 04:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"