Total count of criteria based on each unique ID

BradleyS

Active Member
Joined
Oct 28, 2006
Messages
333
Office Version
  1. 2010
Platform
  1. Windows
I would like a total count of items per unique ID. In the image below the total should come to 3, as there are 4 unique IDs, but one unique ID has no data.
It doesn't matter what the data values are in column C. Only that it doesn't count blank cells, i.e. ID 4 has no data in any of the cells in column C so should not be counted.

I just need to find out how many IDs have data regardless of what the dat maybe.

Count Data by ID.jpg
 

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.
How about
+Fluff 1.xlsm
ABCD
1
21
31a3
41
51
62
722
82
92c
103
1133
1235
133
144
154
164
174
Master
Cell Formulas
RangeFormula
D3D3=SUM(--(FREQUENCY(IF(B2:B17<>"",MATCH(A2:A17,A2:A17,0)),ROW(A2:A17)-ROW(A2)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCD
1
21
31a3
41
51
62
722
82
92c
103
1133
1235
133
144
154
164
174
Master
Cell Formulas
RangeFormula
D3D3=SUM(--(FREQUENCY(IF(B2:B17<>"",MATCH(A2:A17,A2:A17,0)),ROW(A2:A17)-ROW(A2)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.

Perfect. How do you do it! I have been trying to work this out for half a day with no success.

I forgot to press Ctrl+Shift+Enter and it still worked. Is it OK if it still works, or is there a reason I should press Ctrl+Shift+Enter regardless?

Thank you
 
Upvote 0
Are you doing this in xl 2010 as per your profile?
 
Upvote 0
You wouldn't need to array enter the formula in 365 or 2021, but any other version should need Ctrl Shift Enter.
 
Upvote 0
Thank you for all your help on this. It's very much appreciated
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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