Count how many times a name appears in a month

dlafko1

New Member
Joined
Oct 22, 2017
Messages
33
I am using an 2 excel spread sheets. One called monthly Yearly Calls and the other called Man Hour - Response Area Data 2023 this table is the main set of data.

In Man Hour - Response Area Data 2023
Column D has the area that i want to count.. Column B as the date.

In Monthly Yearly Calls
Column A has the name Column c is a month column.

I want to get from In Man Hour - Response Area Data 2023 how many times the name Auburn (lets say) appeared in January. I have an equation that does this for the year and references column A vs the actual name in case that changes over time.. Now i would like to know how to get it to count just a month.

IDK if we need a query or what. I'm no expert in a excel so please when providing an answer walk me thru it.
 

Attachments

  • Man Hour - Response Area Data 2023 spread sheet .jpg
    Man Hour - Response Area Data 2023 spread sheet .jpg
    164.4 KB · Views: 10
  • Monthly Calls Spreadsheet.jpg
    Monthly Calls Spreadsheet.jpg
    38.6 KB · Views: 9
no sorry i missed that
SUMIFS()
so the countifs
=COUNTIFS(Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)

then SUMIFS() , similar , but need to add the sum range first
so
=SUMIFS( Sheet1!$I$2:$I$100 , Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)

Book7
ABCD
11/1/24YearMonth
2Total
3Auburn328.86
4Deer Lake00
5East Brunswick21.6
6East Norwegian00
7Friedensburg00
8Hamburg00
9New Ringgold00
10North Manheim654.77
11Norwegian 00
12Orwigsburg323.03
13Port Clinton00
14Pottsville12.4
15Shoemakersville00
16South Manheim00
17Walker Township00
18West Brunswick00
19Windsor00
Sheet2
Cell Formulas
RangeFormula
C3:C19C3=COUNTIFS(Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)
D3:D19D3=SUMIFS( Sheet1!$I$2:$I$100, Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)
 
Upvote 0
Solution

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
no sorry i missed that
SUMIFS()
so the countifs
=COUNTIFS(Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)

then SUMIFS() , similar , but need to add the sum range first
so
=SUMIFS( Sheet1!$I$2:$I$100 , Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)

Book7
ABCD
11/1/24YearMonth
2Total
3Auburn328.86
4Deer Lake00
5East Brunswick21.6
6East Norwegian00
7Friedensburg00
8Hamburg00
9New Ringgold00
10North Manheim654.77
11Norwegian 00
12Orwigsburg323.03
13Port Clinton00
14Pottsville12.4
15Shoemakersville00
16South Manheim00
17Walker Township00
18West Brunswick00
19Windsor00
Sheet2
Cell Formulas
RangeFormula
C3:C19C3=COUNTIFS(Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)
D3:D19D3=SUMIFS( Sheet1!$I$2:$I$100, Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0),Sheet1!$D$2:$D$100,A3)
Ok that yeilds a 0 result for me.. Here is the acutal sheet
Man Hour - Response Area Data 2024.xlsx
ABC
11/1/2024YearMonth
2Training Hours149.880
3Admin Hours141.0850.5
4Response Hours 136.08145.08
Hours
Cell Formulas
RangeFormula
C2C2=SUMIFS( main!$I$2:$I$100, main!$B$2:$B$100,">="&$A$1,main!$B$2:$B$100,"<="&EOMONTH($A$1,0),main!$C$2:$C$100,A3)
B2:B4B2=SUM(main!I2:I250)
 
Upvote 0
ok,
wheres training hours in the sheet
i assumed same criteria
OR do you just want MONTH and not the Area , and Column I happens to be training hours
if so just use

=SUMIFS( Sheet1!$I$2:$I$100 , Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0))
and it will sum column I for just January
 
Upvote 0
ok,
wheres training hours in the sheet
i assumed same criteria
OR do you just want MONTH and not the Area , and Column I happens to be training hours
if so just use

=SUMIFS( Sheet1!$I$2:$I$100 , Sheet1!$B$2:$B$100,">="&$A$1,Sheet1!$B$2:$B$100,"<="&EOMONTH($A$1,0))
and it will sum column I for just January
Perfect that is what i needed so far training and admin hours are just manual inputs I am going to see if he wants to add them to his sheet. I really appreciate all this help.

In an an attempt to understand the
Count if, the location of the date range, twice and then the final one is the counting part you need What is the A at the very end for?

Sumif its the sum area first then the date ranges.. Right?
 
Upvote 0
the count is just counting all the criteria that matches - so if they are all TRUE in a row - then that row is considered 1 and next is 2 etc
so not doing anything but counting the matches for a row

what A at the end ???
A3 in the count
that is matching the cell A3 , if it exists in the column D - so to match the area
 
Upvote 0
the count is just counting all the criteria that matches - so if they are all TRUE in a row - then that row is considered 1 and next is 2 etc
so not doing anything but counting the matches for a row

what A at the end ???
A3 in the count
that is matching the cell A3 , if it exists in the column D - so to match the area
great thanks again
 
Upvote 0
you would use sumifs instead of countifs
=sumifs(Sum Range, Criteria Range, Criteria, Criteria Range1, Criteria1...ect)
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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