Count duplicates without knowing value

Dobo_Bobo

New Member
Joined
Jan 24, 2018
Messages
31
Please can someone tell me if it possible in Excel to look down a column and count if a value (say a user's ID number) appears more than 50 times?

I've looked via Google but all of the results are for when you have a known value to count.

In my case the data I am using is a list of thousands of users who have raised a fault. What I need to find out is if a user has logged a fault more than 50 times. I know I can do this via a pivot table but long story short I can't use a pivot table.

What would work best (so things are kept simple for other uses) is to have a formula that does the count and also displays the user ID.

So in summary:

In the data which is thousands of rows long I need Excel to count any user who has logged a fault more than 50 times and the result is displayed as user's ID number and in another cell the count total.


If anyone can help I will really appreciate it and I will return to give thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Thanks for your reply Aladin. The data I use is sensitive so I have had to make some up.

So with this example (see image below) in F2 and G2 I need a formula to look in the table and count any user who has logged a fault more than 5 times. In this example Joe Bloggs is the user who has logged faults more than 5 times.

I use data that contains faults logged by thousands of users, therefore I can't use a simple CountIF because there are too many users. A simple pivot table can tell me but I was hoping there is a formula that I can use instead?

Thanks for your help.


LnGh0qQ.png
 
Upvote 0
Sorry, I am new to the forum. Is this suitable?

CallNo
User ID
Name
Fault
12859
25487
Joe Bloggs
Desktop won't turn on
12863
25487
Joe Bloggs
Monitor broken
12867
25487
Joe Bloggs
Keyboard missing keys
12871
24824
Mary Smith
Mouse broken
12875
25487
Joe Bloggs
LAN socket not working
12879
27892
Harold Kay
Not receiving email
12883
51428
Jenny Jones
Desktop won't turn on
12887
57489
Clark Kent
LAN socket not working
12891
28749
Sonia Williams
LAN socket not working
12895
25487
Joe Bloggs
Not receiving email
12899
25487
Joe Bloggs
Desktop won't turn on
12903
51287
Mary Bold
Monitor broken
12907
58934
Jack Black
Keyboard missing keys
12911
59428
Dawn French
Mouse broken
12915
59848
Jennifer Saunders
LAN socket not working
12919
22849
Harry Jones
Not receiving email
12923
25487
Joe Bloggs
Desktop won't turn on
12927
54988
Tim Gold
LAN socket not working
12931
25487
Joe Bloggs
LAN socket not working
12935
24868
Kate Williams
Not receiving email
12939
24848
Dawn Jolly
Desktop won't turn on
12943
56894
Mike Pickering
Monitor broken

<tbody>
</tbody>
 
Last edited:
Upvote 0
Thanks...

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
1​
CallNoUser IDNameFaultCount
8​
1​
2​
12859
25487
Joe BloggsDesktop won't turn on
8​
25487​
Joe Bloggs
3​
12863
25487
Joe BloggsMonitor broken
4​
12867
25487
Joe BloggsKeyboard missing keys
5​
12871
24824
Mary SmithMouse broken
1​
6​
12875
25487
Joe BloggsLAN socket not working
7​
12879
27892
Harold KayNot receiving email
1​
8​
12883
51428
Jenny JonesDesktop won't turn on
1​
9​
12887
57489
Clark KentLAN socket not working
1​
10​
12891
28749
Sonia WilliamsLAN socket not working
1​
11​
12895
25487
Joe BloggsNot receiving email
12​
12899
25487
Joe BloggsDesktop won't turn on
13​
12903
51287
Mary BoldMonitor broken
1​
14​
12907
58934
Jack BlackKeyboard missing keys
1​
15​
12911
59428
Dawn FrenchMouse broken
1​
16​
12915
59848
Jennifer SaundersLAN socket not working
1​
17​
12919
22849
Harry JonesNot receiving email
1​
18​
12923
25487
Joe BloggsDesktop won't turn on
19​
12927
54988
Tim GoldLAN socket not working
1​
20​
12931
25487
Joe BloggsLAN socket not working
21​
12935
24868
Kate WilliamsNot receiving email
1​
22​
12939
24848
Dawn JollyDesktop won't turn on
1​
23​
12943
56894
Mike PickeringMonitor broken
1​

In E2 just enter and copy down:
Rich (BB code):
=IF(ISNA(MATCH($B2,$B$1:$B1,0)),INDEX(FREQUENCY($B$2:$B$23,CHOOSE({1,2},$B2-1,$B2)),2),"")

G1 houses a criterion count.

In H1 just enter:
Rich (BB code):
=COUNTIFS(E2:E23,">="&G1)

In G2 control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS($G$2:G2)>$H$1,"",INDEX($B$2:$B$23,SMALL(IF($E$2:$E$23>=$G$1,ROW($A$2:$A$23)-ROW($A$2)+1),ROWS($G$2:G2))))

In H2 just enter and copy down:
Rich (BB code):
=IF($G2="","",VLOOKUP($G2,B:C,2,0))
 
Upvote 0
Wow! Thank you very much Aladin! :)

My request can be easily done in pivot tables so for you to take the time to write the formulas has been a huge help! Now that I have these formulas it will help me free up time so that I can spend more time researching the formulas you've used.

Many thanks!
 
Upvote 0
Wow! Thank you very much Aladin! :)

My request can be easily done in pivot tables so for you to take the time to write the formulas has been a huge help! Now that I have these formulas it will help me free up time so that I can spend more time researching the formulas you've used.

Many thanks!

Glad to help. Thanks for the like and update.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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