Count unique values in column with few criterias with formula (without ctrl+shift+enter)

rost1

New Member
Joined
May 24, 2016
Messages
4
Hi everyone!

I need to count by non-array formula (w/o ctrl+shift+enter) quantity of unique items in column ("centre) that satisfy special criteria in column "month", as shown below:

centremonth #
11011
11021
11011
11031
11012
11022
11022

<tbody>
</tbody>

Answer (e.g. for Jan): unique qty of centres in Jan (#1) = 3 centres.

There are few possible ways to do it via using sumproduct+countif or sum+if+frequency formulas, but all of them require ctrl+shift+enter that significantly slow down calculations for large massive of data.

Please, provide easier suggestions to resolve this issue.
Thanks in advance!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Row\Col
A​
B​
C​
D​
E​
F​
1​
centre
month #
month# distinct centre
2​
1101
1
1​
3​
3​
1102
1
2​
2​
4​
1101
1
5​
1103
1
6​
1101
2
7​
1102
2
8​
1102
2

In F2 control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($B$2:$B$8=$E2,$A$2:$A$8),$A$2:$A$8),1))

This formula assumes that centre ids are numbers, not text.
 
Upvote 0
Thank you for the prompt answer. The matter is that I am looking for way to find solution without using of control+shift+enter
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,719
Messages
6,126,432
Members
449,314
Latest member
MrSabo83

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