RicardoCubed
Board Regular
- Joined
- Jul 10, 2013
- Messages
- 206
- Office Version
- 365
- Platform
- Windows
Hi all. I am trying various combinations of the Aggregate function to count the number of time the letter x appears in column that adjusts when you filter the list.
I want it to be dynamic as when i filter the list by other criteria I only want to count the filter list where x appears.
So, in the case below if I filter the list for Dept A the the result should be 1.
I would think i can replace in cell C1 the countif with an aggregate that would ignore hidden rows once filtered.
Are you able to use Aggregate function on text?
Thanks in advance for any help on this.
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Dept[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"][/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
</tbody>
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=COUNTIF(C2:C12,"x")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I want it to be dynamic as when i filter the list by other criteria I only want to count the filter list where x appears.
So, in the case below if I filter the list for Dept A the the result should be 1.
I would think i can replace in cell C1 the countif with an aggregate that would ignore hidden rows once filtered.
Are you able to use Aggregate function on text?
Thanks in advance for any help on this.
A | B | C | |
---|---|---|---|
Total | |||
Name1 | |||
Name2 | |||
Name3 | |||
Name4 | |||
Name5 | |||
Name6 | |||
Name7 | |||
Name8 | |||
Name9 | |||
Name10 | |||
Name11 |
<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Dept[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"][/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"][/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=COUNTIF(C2:C12,"x")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]