Counting no people working at a company

mrsteele

New Member
Joined
Oct 28, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all.

I have a list of contractors and companies they have worked for.
I need to calculate how many contractors have worked with this company within a data set.
Some of the contractors are charged weekly, so likely the names will be duplicated within this data set, so ideally need to exclude duplicates.
For example, have invoiced 1 contractor to the same client twice, so ideally, the answer to this would be 1 when the formula works.
The client and contractor names are within their own columns in a worksheet, with the information being displayed on a separate worksheet.

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
1645705250114.png
 
Upvote 0
First picture is the data set, and the second is where i want the results being displayed.
So in this example, the answer to No of contractors for 'client 1', will be 2, for 'client 3' the answer is 1, and 'client 5' answer is also 1
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFG
1
2Client 1Contractor 1Sector 1Sector 1
3Client 2Contractor 2Sector 2No Contractors
4Client 3Contractor 3Sector 1Client 12
5Client 1Contractor 4Sector 1Client 31
6Client 4Contractor 5Sector 2Client 51
7Client 1Contractor 1Sector 1
8Client 5Contractor 6Sector 1
9Client 3Contractor 3Sector 1
10Client 6Contractor 7Sector 2
11Client 3Contractor 3Sector 1
12
Main
Cell Formulas
RangeFormula
F4:F6F4=UNIQUE(FILTER(A2:A11,C2:C11=F2))
G4:G6G4=ROWS(UNIQUE(FILTER($B$2:$B$11,($A$2:$A$11=F4)*($C$2:$C$11=$F$2))))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,009
Messages
6,122,674
Members
449,091
Latest member
peppernaut

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