Vlookup

Scottie4

New Member
Joined
Oct 5, 2022
Messages
12
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
Platform
  1. Windows
Hello everybody! I was curious if there was a way to count how many times a name popped up on an excel sheet, without needing to specify a specific name. As I have over 120 different names that are on the sheet multiple times I need a formula to show this.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
you could do a pivot table of the names and count, then sort by name, and that would give you the most frequent
OR
If text
=INDEX(A2:A25,MODE(MATCH(A2:A25,A2:A25,0)))
easier if a number
=Mode(Range)

Book5
ABCDEFG
1
2name 1name 213
3name 22
4name 33
5name 41
6name 53
7name 13
8name 2
9name 3
10name 4
11name 5
12name 6
13name 7
14name 8
15name 9
16name 2
17name 3
18name 2
19name 3
20name 2
21name 2
22name 2
23name 4
24name 5
25name 1
26
Sheet3
Cell Formulas
RangeFormula
C2C2=INDEX(A2:A25,MODE(MATCH(A2:A25,A2:A25,0)))
G2G2=MODE(E2:E12)
 
Upvote 0
you could do a pivot table of the names and count, then sort by name, and that would give you the most frequent
OR
If text
=INDEX(A2:A25,MODE(MATCH(A2:A25,A2:A25,0)))
easier if a number
=Mode(Range)

Book5
ABCDEFG
1
2name 1name 213
3name 22
4name 33
5name 41
6name 53
7name 13
8name 2
9name 3
10name 4
11name 5
12name 6
13name 7
14name 8
15name 9
16name 2
17name 3
18name 2
19name 3
20name 2
21name 2
22name 2
23name 4
24name 5
25name 1
26
Sheet3
Cell Formulas
RangeFormula
C2C2=INDEX(A2:A25,MODE(MATCH(A2:A25,A2:A25,0)))
G2G2=MODE(E2:E12)
Thank you! But the index function just shows the most frequent name on my list!
 
Upvote 0
sorry , i thought thats what you wanted
way to count how many times a name popped up on an excel sheet,

As I have over 120 different names that are on the sheet multiple times I need a formula to show this.

can you explain further , what you mean, as i clearly have not understood - sorry

you could do a pivot table of the names and count, then sort by name, and that would give you the most frequent
This would show ALL the names and count how many times they appear

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
You’re fine! I just need a function that will be able too give me how many times each name is on the excel sheet
 
Upvote 0
OK,
2 functions
UNIQUE()
and COUNTIF()
or as mentioned originally a pivot table

Book5
ABCD
1
2name 1name 13
3name 2name 27
4name 3name 34
5name 4name 43
6name 5name 53
7name 1name 61
8name 2name 71
9name 3name 81
10name 4name 91
11name 5
12name 6
13name 7
14name 8
15name 9
16name 2
17name 3
18name 2
19name 3
20name 2
21name 2
22name 2
23name 4
24name 5
25name 1
Sheet3
Cell Formulas
RangeFormula
C2:C10C2=UNIQUE(FILTER(A:A,A:A<>""))
D2:D10D2=COUNTIF(A:A,C2)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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