Filtered table using Countif

E

Elba

I have an excel spread sheet table that I filter. I would like to be able to
countif the number of cells in the filtered data to the vigen contidion.
Anyone know how to do this?
Countif returns the number of cells in the unfiltered data, even when they
are filtered.
Elba
 
P

Pete_UK

Have a look in Excel Help for the SUBTOTAL worksheet function.

I don't know what " ... vigen contidion ... " means.

Hope this helps.

Pete
 
E

Elba

Hi Pete_UK and Don Guillet, thanks for you response, but SUBTOTAL doesn't
have "COUNTIF" see below:

Function_num (includes hidden values) Function_num (ignores hidden values)
Function
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP

vigen contidion: sorry misspelled, "given condition" or criteria

=COUNTIF(A1:A35,"criteria")

This formula counts the number of cells in the filtered data even when they
are filtered.

Thanks in advance,

Elba
 
T

T. Valko

Assume the full unfiltered data range is B2:B11. B1 is the column header
with filter.

Suppose you want to count the number of "A's" in column B:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B11,ROW(B2:B11)-ROW(B2),0,1)),--(B2:B11="A"))
 
E

Elba

Mr. T Valko, thanks so much for your help, my knowledge of english and excel
formula's is limited, but this formula works perfectly, perfectly, perfectly
fine.

Thanks again for your help.

Elba
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top