Formula to count the number of unique names in a column that have a matching date in the column next to them?

tonywatsonhelp

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

OK so I have sale recods in sheet1

Column J is the salespersons Name and Column R is the Date the sale was made

I need a formula in S2 that can tell me how many sales persons there are for the date in cell T2?

So cell "T2" has a date example "21/08/2017"

Now Down Column J are the salespersons names and down R are the dates.

So how can I count the number of salespersons who made a sale on date in "T2" (21/08/2017) when there are multiple entries for each sales person???

thanks

Tony
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-($J$2:$J$400=""),IF($R$2:$R$400=$T2,MATCH($J$2:$J$400,$J$2:$J$400,0))),ROW($J$2:$J$400)-ROW($J$2)+1),1))
 
Upvote 0

Forum statistics

Threads
1,217,061
Messages
6,134,356
Members
449,869
Latest member
andrewtbi

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