Count items from table, with multiple criteria and on unique items

sukin

New Member
Joined
Jun 22, 2017
Messages
7
Hello,

Currently I am having a problem with a count issue.
From a table I need to count a number of items based on several conditions, so I used the countifs formula.

I have for example 2 criteria already set in the countifs formula.
see below for example:
[TABLE="width: 268"]
<tbody>[TR]
[TD]Criteria A[/TD]
[TD]Criteria B[/TD]
[TD]Criteria C[/TD]
[TD]Count column[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]netherlands[/TD]
[TD]Jan[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]UK[/TD]
[TD]Feb[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Germany[/TD]
[TD]Jan[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]netherlands[/TD]
[TD]Jan[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]netherlands[/TD]
[TD]Jan[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]UK[/TD]
[TD]Feb[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Germany[/TD]
[TD]Jan[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]UK[/TD]
[TD]Feb[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Germany[/TD]
[TD]Jan[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]netherlands[/TD]
[TD]Feb[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]UK[/TD]
[TD]Jan[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Germany[/TD]
[TD]Feb[/TD]
[TD="align: right"]0
[/TD]
[/TR]
</tbody><colgroup><col><col><col span="2"></colgroup>[/TABLE]

Now they need to count all A and B's, for January.
But my issue is, I want only unique countries to be counted. Here Netherlands is counted for 3, but this needs to be 1.

Do I use the correct formula (countifs)? or how does it need to be adjusted?

thanks,
Suk In
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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