Counting in filtered tables/or countif conditions????

glorg

New Member
Joined
Jul 19, 2018
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all, I'm stumped on how to count how many instances of a name appear in the whole range if it is either:
Filtered so that only type D rows are visible, or
Doing a Countif on the whole range if the corresponding row is a D type row.

Any help greatly appreciated
 

Attachments

  • Capture.JPG
    Capture.JPG
    32.8 KB · Views: 8

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi all, I'm stumped on how to count how many instances of a name appear in the whole range if it is either:
Filtered so that only type D rows are visible, or
Doing a Countif on the whole range if the corresponding row is a D type row.

Any help greatly appreciated
what is your excel version?
 
Upvote 0
Apologies.
Microsoft® Excel® for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
 
Upvote 0
Like this ?

Cell K4
Excel Formula:
=FILTER($A$1:$I$5,I1:I5=L2)

Cell O2
Excel Formula:
=COUNTA(FILTER($B$1:$I$5,I1:I5=L2))


1702631994317.png
 
Upvote 0
Microsoft 365
Please add that to your forum profile (click your user name at the top right of the forum, then ‘Account details’) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

I also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. ;)


count how many instances of a name appear
Do you mean this?

23 12 15.xlsm
BCDEFGHIJKL
1MondayTuesdayWednesdayThursdayFridaySaturdaySundayTypeNameName 3
2Name 4Name 2Name 2Name 3Name 6Name 1Name 7DTypeD
3Name 6Name 7Name 6Name 4Name 6Name 3Name 3NCount3
4Name 1Name 3Name 3Name 7Name 1Name 4Name 1D
5Name 5Name 5Name 2Name 6Name 1Name 7Name 5N
Count Names
Cell Formulas
RangeFormula
L3L3=SUMPRODUCT((B2:H5=L1)*(I2:I5=L2))
 
Upvote 0
Thanks Peter, I'll speak to the Admins and see if I can get that add-on added-on.

In the meantime, I feel I haven't explained myself very well. On my current worksheet, it does a countif per name for all shifts on a Fri,sat/sun.
It does one countif per name for the total range. What I need (and explained poorly) is one countif for only N type rows in the range Monday through Thursday.
This way I can show how many times a person is allocated to certain shift types and thus demonstrate many stupid layers of equity across the roster. Kill me now.
 
Last edited by a moderator:
Upvote 0
Not being familiar with your data or requirement, I'm afraid that does not make any sense to me.
Really need to see some sample data, the expected results and explanation in relation to that specific sample data.
 
Upvote 0
I was in Macksville yesterday, could've sat at the Star and shown you in person. I'll work on getting the add-on and get back to you
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,665
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top