Report That Shows Number of Occurrences In A Table

Albreezy

New Member
Joined
Apr 24, 2014
Messages
4
Hello all! This is my first post, and I hope I'm not asking something that has been covered before. I believe this will be a unique situation. After searching, it looks like people only have issues with deleting and/or finding duplicates.

I have a table from excel with multiple columns, and it actually has a new column added each day. For each day (column) user names appear for each user that has logged on. I would like to find a way to create a report that only shows which users names have appeared a certain number of times (such as 4). Ex: Using the table below, 2 different users (Chris and Jennifer) logged on at least 4 times. I need to make a report that lists which users logged on 4 or more times, and the count of those occurrences as well.

The reason we need to do this, is because we are having problems with users continuing to log on in a manner we don't want them logging in. After they have continued to log in after so many times, we are going to disable their access completely.

Thanks for your help! Let me know if you need any further explanation.

Day 1Day 2Day 3Day 4Day 5
ChrisChrisChrisChrisChris
JohnRobertRobertRobertScott
AmandaJenniferJenniferLarryKate
JenniferLarryMaryJohnJennifer
KevinRichMary

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board!

If you can convert this data to a normalized table in Access, it would be very easy (working with denormalized data like you have makes things much harder than they need to be).

In a normalized table, you would only have one table with two fields, in this example.

Code:
Day      Name
1        Chris
1        John
1        Amanda
1        Jennifer
1        Kevin
2        Chris
...
Then it would just be a simple Aggregate (Totals) Query grouping on Name and counting the Day field.
 
Upvote 0
I should have mentioned, each day could be around 800 user names. Also, I'll be looking for occurrences of at least 20x. Would the normalized table still be appropriate?
 
Upvote 0
YES! The larger your data records and fields gets, the more important (critical) it becomes to have normalized data!
 
Upvote 0
Note, if all the data appears on one page in Excel, and you have a list of all the different possible names, you could do this pretty easily in Excel using a COUNTIF formula over your whole data range.
 
Upvote 0
Something to add...the user names are not predetermined. There will be new user names each day that I will not have prior knowledge of.
 
Upvote 0
Sounds like you then really want to work with a normalized table then.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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