Counting number of times a name appears when there are several in each column

peggrif

New Member
Joined
Dec 6, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'd really appreciate any help with this.

I have a spreadsheet which contains information about files. It has the file name and then a set of usernames that have access to it, along with a lot of other information. So it looks similar like this:
FilePathMembersSizeAccessed
File1Pathforfile1Jude;Sam;Lucy105gb01/01/22
File2Pathforfile2Jude;Lucy;Steve;Helen96gb01/05/22
And continues for several thousand rows. The 'members' column isn't always the same number of people per column because some files are only accessed by one or two people and some are accessed by hundreds.

Essentially I want to find out which of the members have access to the largest number of files. Ideally I'd end up with a table saying:
MemberNumber of files
Jude1050
Lucy1003
Steve978
and so on for each person.

What would be even better would be to have something like this:
MemberNumber of files over 10000gb the person has access toNumber of files over 7000gb the person has access to
Jude12100
Lucy40102
Steve1764
and so on - is that something that could realistically be done?

Thanks in advance for any help.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
If this is a one off problem the easy way to get the count is to cut and paste the Members column into a new workbook and then use Text to columns to split it into separate columns, then a simple countif will give you the counts. If you need to do this more than once then this is the sort of process that could be automated.
To get the file sizes you will need to run through all the files which can be done using the filesystem object and looking at filename.size attribute. So it is possible to do this with VBA
 
Upvote 0
Thank you for your reply.

It's a one off problem in that I only need to do this to one worksheet, but there are several thousand people on the worksheet.

I've copied that column into a new workbook, used text to columns and made it a table called 'Table1', which looks like this:
Member 1Member 2Member 3Member 4Member 5Member 6
LucyStevePaul
JudeCarolineHelenSamSteve
but has several hundred columns and several thousand rows.


I can make a sheet that looks like this:
NameFiles
Lucy=countif(table1, A2)
Steve=countif(table1, A3)
By copying each name individually from one of the cells in the members column, then typing the formula in the right hand column.

Is there an easy way to make Excel give every name that appears in Table1 its own row in one column (so that it creates the 'Name' column above but one for all of the different names that appear), so that I can then copy down the countif formula and it will calculate each name?
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEF
1Member 1Member 2Member 3Member 4Member 5Member 6
2LucyStevePaul
3JudeCarolineHelenSamSteve
4
5
6
7Caroline
8Helen
9Jude
10Lucy
11Paul
12Sam
13Steve
14
Main
Cell Formulas
RangeFormula
A7:A13A7=LET(Rng,A2:F3,r,ROWS(Rng),s,SEQUENCE(r*COLUMNS(Rng),,0),i,INDEX(Rng,MOD(s,r)+1,INT(s/r)+1),SORT(UNIQUE(FILTER(i,i<>""))))
Dynamic array formulas.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Counting how many times names appear when there's 2+ per cell, and comparing other info
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

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