Provide Count based upon criteria in Data along with unique row and header data

rugbyhubby

New Member
Joined
Mar 6, 2012
Messages
19
I have a data set in which I am trying to count how often, for a given category (column) a Person (row) has a number greater than 1 (data). I have named the category section "Header" and the person list "People" and named the data range "Data". This may be an easy question but I am getting baffled! I am looking for a formula and not VBA to get the answer. Here is a sample set of data

Column110838011083801210838013108380141151620115162051151620611516207
Person1
Person2111
Person3
Person43121
Person51
Person6
Person7512
Person8
Person91
Person10
Person11
Person1215

<colgroup><col><col><col span="3"><col><col span="3"></colgroup><tbody>
</tbody>


In this example Person 4 I would count once for the first category and once for the second category as they have a value of 3 and 2 respectively. For Person 7 I would count twice for category 1 only. What I need the formula to solve for is:
* looking at a particular person
* identify how often their value is >1 for each category (placement of these counts would be in a separate column, one value for each category.

Any help would be greatly appreciated.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try this:

Code:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=SUMPRODUCT((People="Person7")*(Data>1))[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
Try this:

Code:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=SUMPRODUCT((People="Person7")*(Data>1))[/TD]
[/TR]
</tbody>[/TABLE]

I forgot to mention I was trying to avoid sumproduct as it was killing my system! I was using =SUMPRODUCT((Header=Catg1)*(data>1)*(Person=Pers1)) and any change to the sheet was causing my system to recalc for about 10 minutes. Apologies for not putting this out there at the start.
 
Upvote 0

Forum statistics

Threads
1,221,469
Messages
6,160,028
Members
451,611
Latest member
PattiButche

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