Counting formula

brooklyn2007

Board Regular
Joined
Nov 20, 2010
Messages
143
i have a long column of unique customers who many of them repeat themselves more than once. I need to find a formula to calculate the total number of these unique customers who have bought more than once. It does not matter if some of them bought two, three or infinite times. It has to calculate it as one repeat. Below is a example of the column and the result that should come, the formula is missing. Thanks

Excel Workbook
ABCDEFGH
1Find the total number of unique names that repeat more than once
2
3JohnAnswer3
4Jim
5TomFormula to use??????
6John
7John
8Ben
9George
10Jim
11Ken
12Ben
13John
14Tim
15Mike
16
17
Sheet1
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
try

=SUMPRODUCT((A1:A30000<>"")/COUNTIF(A1:A30000,A1:A30000&""))


Nope, it gives me a 9 result instead of 3

Excel Workbook
ABCDEFG
1Find the total number of unique names that repeat more than once
2
3JohnAnswer3
4Jim
5TomFormula to use9
6John
7John
8Ben
9George
10Jim
11Ken
12Ben
13John
14Tim
15Mike
16
Sheet1
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(A3:A15<>"",MATCH("~"&A3:A15,A3:A15&"",0)),ROW(A3:A15)-ROW(A3)+1),1))
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(A3:A15<>"",MATCH("~"&A3:A15,A3:A15&"",0)),ROW(A3:A15)-ROW(A3)+1),1))

Again, it is not working. This time is giving me 8


Excel Workbook
ABCDEFG
1Find the total number of unique names that repeat more than once
2
3JohnAnswer3
4Jim
5TomFormula to use8
6John
7John
8Ben
9George
10Jim
11Ken
12Ben
13John
14Tim
15Mike
16
Sheet1
 
Upvote 0
Allow me to explain better. The result which I'm looking should be 3. John, Jim, Ben. Even thought these three names are repeated different times in the range, each of them should count as one.
 
Upvote 0
Try this

=SUM(IF(FREQUENCY(IF(A3:A100<>"",MATCH("~"&A3:A100,A3:A100&"",0)),ROW(A3:A100)-ROW(A3)+1)>1,1))

Ctrl+Shift+Enter

M.
 
Upvote 0
Again is 8. It should be 3. I'm using CTRL + Shift + Enter



Excel Workbook
ABCDEFG
1Find the total number of unique names that repeat more than once
2
3JohnAnswer3
4Jim
5TomFormula to use8
6John
7John
8Ben
9George
10Jim
11Ken
12Ben
13John
14Tim
15Mike
16
Sheet1
 
Upvote 0
Allow me to explain better. The result which I'm looking should be 3. John, Jim, Ben. Even thought these three names are repeated different times in the range, each of them should count as one.

Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(A3:A15<>"",MATCH("~"&A3:A15,A3:A15&"",0)),ROW(A3:A15)-ROW(A3)+1)>1,1))

Forget that with TRIM's :laugh:...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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