formaula to count the number of employees in a list containg duplicate names?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

so I need a way I can count the number for employess that worked for each week.

I have two columns of data

Column C is the week start date (i.e 18/09/2017)

Column J has the names of the employee loggen for that lines sale.

I'm trying to count how many different employees sold stuff for a given week

So the formula I'm looking for would be in English something like

Look down column C and see if any cells match date in cell B7, if they do count the sales person in column J but only if his not already made a sale that week! how can I do this I'm getting very confused

it seam such a simple thing to just tell me the number of different people selling on a given date? please save me!!!


thanks

Tony
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
HI,
It will only every be one date as the sales are recorded with the date as week starting,
so for example if in B7 I had the date "18/09/2017" it only has to lok for rows with that date

Thanks

Tony
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-($J$2:$J$400=""),IF($C$2:$C$400=$B7,MATCH($J$2:$J$400,$J$2:$J$400,0))),ROW($J$2:$J$400)-ROW($J$2)+1),1))
 
Upvote 0
Thank you Aladin,
I can honestly say I would not have got that lol!

big help,
Thank you

Tony
 
Upvote 0

Forum statistics

Threads
1,223,968
Messages
6,175,677
Members
452,666
Latest member
AllexDee

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