Count common value

Boivin12

New Member
Joined
May 17, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a list of people and a list of team number.
Every person is attached to one singe team but its name appear several times (I made a simple table).
I would like to know how many people there are in a team (3 in team 1 and 1 in team 2 in my example).
I know it's not a big deal but I can't wrap my head around it...
Person IDTeam number
A1
A1
A1
B2
B2
C1
C1
C1
D1
 
Clear all cells in col C & then re-enter the formula in C2 only.
Still, it gives me the same thing, I don't know if it has an impact but, I have some blank cells in my column 2. Here's what I entered, I don't think that there are issues =MAP([Column2];LAMBDA(m;ROWS(UNIQUE(FILTER([Column1];[Column2]=m)))))
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You cannot use spill ranges in a table, so use
Excel Formula:
=ROWS(UNIQUE(FILTER([Column1],[Column2]=[@Column2])))
 
Upvote 1
Solution

Forum statistics

Threads
1,217,410
Messages
6,136,462
Members
450,013
Latest member
k4kamal

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