Count of Title By Date Range

Schnagglebeef

New Member
Joined
May 3, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello,

First time poster looking for assistance please :)

I need to make a simple dashboard page based on the data entered.

I'd like to be able count the Location / Client (Column B) by each month represented by a date range (Column C). This is a scheduling team - effectively when the team fill a shift they enter the location and date confirmed. The dashboard needs to be able to display the number of entries for each location for each location by month.

Example: Count of "Brownell House Shift" for May = ?

1683172254640.png


Many thanks!

Paul
 

Attachments

  • 1683172216196.png
    1683172216196.png
    21.2 KB · Views: 7

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Would suggest COUNTIFS or SUMPRODUCT
=COUNTIFS(B4:B10,"Brownell House Shift",C4:C10,">=" & DATE(2023,5,1),C4:C10,"<=" & DATE(2023,5,31))
or
=SUMPRODUCT((B4:B10="Brownell House Shift")*(TEXT(C4:C10,"mmm")="May")*(YEAR(C4:C10)=2023))
or
=SUMPRODUCT((B4:B10="Brownell House Shift")*(EOMONTH(C4:C10,0)=DATE(2023,5,31)))
 
Upvote 0
Would suggest COUNTIFS or SUMPRODUCT
=COUNTIFS(B4:B10,"Brownell House Shift",C4:C10,">=" & DATE(2023,5,1),C4:C10,"<=" & DATE(2023,5,31))
or
=SUMPRODUCT((B4:B10="Brownell House Shift")*(TEXT(C4:C10,"mmm")="May")*(YEAR(C4:C10)=2023))
or
=SUMPRODUCT((B4:B10="Brownell House Shift")*(EOMONTH(C4:C10,0)=DATE(2023,5,31)))
Thank you so much! :)
 
Upvote 0
Welcome to the MrExcel board!

Assuming that all dates are in the current year, what about

=COUNT(FILTER(C4:C10,(B4:B10="Brownell House Shift")*(MONTH(C4:C10)=5),""))
 
Last edited:
Upvote 0
Assuming that all dates are in the current year
if they may not be all in the same year and you want the May 2023 count then
=COUNT(FILTER(C4:C10,(B4:B10="Brownell House Shift")*(TEXT(C4:C10,"mmyy")="0523"),""))
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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