Limiting Frequency formula to dates by month

RtotheK

New Member
Joined
Jun 10, 2015
Messages
2
Hello all,

I've done a lot of searching and can't find a way to achieve what I'm after, so grateful for assistance.

The important info on my spreadsheet:
- Staff names in 'Daily Stats'!A3 onward
- Dates in 'Daily Stats'!B3 onward (in date format)

I am looking for a way to count the number of unique days on which a staff member made an entry on the sheet, and (this is the difficulty) be able to count this just for a specific month.

At the moment I have this formula, which is giving me the count of unique days for staff (in this example the staff name is in 'Team Report'!B2). How would I make this only count entries with dates in a specific month, eg only January?

=SUM(IF(FREQUENCY(IF('Daily Stats'!$A$3:$A$90000='Team Report'!$B2,'Daily Stats'!$B$3:$B$90000),'Daily Stats'!$B$3:$B$90000),1))

Would prefer to avoid enabling macros on this sheet.

Thanks!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

Try this which is for january

=SUM(IF(FREQUENCY(IF('Daily Stats'!$A$3:$A$90000='Team Report'!$B2,IF(MONTH('Daily Stats'!$B$3:$B$90000)=1,'Daily Stats'!$B$3:$B$90000)),'Daily Stats'!$B$3:$B$90000),1))
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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