Formula for Counting Calls between a date range - Countif with multiple columns

Joined
Jan 27, 2022
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hi all, I'm sure I'm doing something really silly with my formula however, I've basically got a table of total number of calls made per day. In column A I have the date, and in Column B I have the call number. I'm trying to calculate the total of the calls, made within a date range specified on another sheet in a different cell. The start and end dates are in seperate cells.

Excel Formula:
=COUNTIFS('Detailed List'!B3:B367, ">=" &'Dashboard By Week'!C3,'Detailed List'!B3:B367,"<=" &'Dashboard By Week'!D3,'Detailed List'!C3:C367,)

That is my forumla, however it's not calculating the sum correctly, only giving a value of 3 or 7 so I think it's not calculating it correctly but I can't see where. Any ideas would be appreciated.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
2022 Metrics Tracker.xlsx
ABCDEFGHIJKLMPQ
1January 2022
2
31/1/221/7/22
4
5Week 1Andrew MacKinderJacob EellsSarah EllisSarah WalshGayle RobsonTotal
6Total Inbound Calls300003
7Total Outbound Calls931469810257
8Total New Cases252237530137
9Total Resolved Cases232527490124
10Total Intercom241054800168
11Average Resolution Time11.5264.0410.4124.10027.52 Days
12Total Missed Calls88
13
14
15
16Month LeaderboardSupport KPIs
17New vs Resolved Cases13Most Inbound CallsAndrew MacKinderAnswered Calls90%
18Total Inbound Calls91Most Outbound CallsAndrew MacKinderMissed Calls10%
19Total Calls on Weekend34Most New CasesSarah WalshFirst Response4 Hours
20Total Calls on Weekdays236Most Resolved CasesSarah WalshAverage Resolution7 Days
21Percentage of Answered Calls3%Most Intercom ChatsSarah Walsh
22Percentage of Missed Calls97%
23Percetange of Outbound vs Inbound Calls282%
24
25
26
Dashboard By Week
Cell Formulas
RangeFormula
C3C3=VLOOKUP($A$5,$AD$1:$AF$53,2,FALSE)
D3D3=VLOOKUP($A$5,$AD$1:$AF$53,3,FALSE)
B6B6=COUNTIFS('Detailed List'!B3:B367, ">=" &'Dashboard By Week'!C3,'Detailed List'!B3:B367,"<=" &'Dashboard By Week'!D3,'Detailed List'!C3:C367,)
C6C6=COUNTIFS('Detailed List'!I3:I367, ">=" &'Dashboard By Week'!D3,'Detailed List'!I3:I367,"<=" &'Dashboard By Week'!E3)
D6:F6D6=COUNTIFS('Detailed List'!D3:E367, ">=" &'Dashboard By Week'!E3,'Detailed List'!D3:E367,"<=" &'Dashboard By Week'!F3)
G6:G10G6=SUM(B6:F6)
B7B7=SUMIFS('Detailed List'!D3:D367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
C7C7=SUMIFS('Detailed List'!J3:J367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
D7D7=SUMIFS('Detailed List'!P3:P367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
E7E7=SUMIFS('Detailed List'!V3:V367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
F7F7=SUMIFS('Detailed List'!AB$3:AB$367,'Detailed List'!$B$3:$B$367, ">=" & 'Dashboard By Week'!$A$1,'Detailed List'!$B$3:$B$367, "<=" & EOMONTH($A$1,1))
B8B8=SUMIFS('Detailed List'!G3:G367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
C8C8=SUMIFS('Detailed List'!M3:M367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
D8D8=SUMIFS('Detailed List'!S3:S367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
E8E8=SUMIFS('Detailed List'!Y3:Y367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
F8F8=SUMIFS('Detailed List'!AE$3:AE$367,'Detailed List'!$B$3:$B$367, ">=" & 'Dashboard By Week'!$A$1,'Detailed List'!$B$3:$B$367, "<=" & EOMONTH($A$1,1))
B9B9=SUMIFS('Detailed List'!H3:H367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
C9C9=SUMIFS('Detailed List'!N3:N367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
D9D9=SUMIFS('Detailed List'!T3:T367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
E9E9=SUMIFS('Detailed List'!Z3:Z367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
F9F9=SUMIFS('Detailed List'!AF$3:AF$367,'Detailed List'!$B$3:$B$367, ">=" & 'Dashboard By Week'!$A$1,'Detailed List'!$B$3:$B$367, "<=" & EOMONTH($A$1,1))
B10B10=SUMIFS('Detailed List'!F3:F367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
C10C10=SUMIFS('Detailed List'!L3:L367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
D10D10=SUMIFS('Detailed List'!R3:R367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
E10E10=SUMIFS('Detailed List'!X3:X367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
F10F10=SUMIFS('Detailed List'!AD$3:AD$367,'Detailed List'!$B$3:$B$367, ">=" & 'Dashboard By Week'!$A$1,'Detailed List'!$B$3:$B$367, "<=" & EOMONTH($A$1,1))
B11B11=IFERROR(AVERAGEIFS('Resolved Cases'!P2:P1048576,'Resolved Cases'!A2:A1048576,B5,'Resolved Cases'!L2:L1048576,">="&A1,'Resolved Cases'!L2:L1048576,"<="&EOMONTH(A1,1)),"0")
C11:F11C11=IFERROR(AVERAGEIFS('Resolved Cases'!$P$2:$P$1048576,'Resolved Cases'!$A$2:$A$1048576,C5,'Resolved Cases'!$L$2:$L$1048576,">="&$A$1,'Resolved Cases'!$L$2:$L$1048576,"<="&EOMONTH($A$1,1)),"0")
G11G11=AVERAGE(B11:F11)
B12B12=SUMIFS('Detailed List'!E3:E367,'Detailed List'!B3:B367, ">=" & 'Dashboard By Week'!A1,'Detailed List'!B3:B367, "<=" & EOMONTH(A1,1))
L17L17=INDEX(B5:F5,MATCH(MAX(B6:F6),B6:E6,0))
L18L18=INDEX(B5:F5,MATCH(MAX(B7:F7),B7:E7,0))
L19L19=INDEX(B5:F5,MATCH(MAX(B8:F8),B8:E8,0))
L20L20=INDEX(B5:F5,MATCH(MAX(B9:F9),B9:E9,0))
L21L21=INDEX(B5:F5,MATCH(MAX(B10:F10),B10:E10,0))
B17B17=$G$8-$G$9
B18B18=$G$6+$B$12
B19B19=SUM($N$3:$N$6)
B20B20=SUM($O$3:$O$6)
B21B21=$G$6/$B$18
B22B22=$B$12/$B$18
B23B23=G7/B18
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G11Cell Value<6textNO
G11Cell Value>7textNO
B21Cell Value<0.89textNO
B21Cell Value>0.9textNO
B22Cell Value>0.11textNO
B22Cell Value<0.1textNO
B17Cell Value>0textNO
B17Cell Value<0textNO
Cells with Data Validation
CellAllowCriteria
K25:Q26Any value
L1:Q14Any value
K1:K15Any value
A1:G2List=months
H:JAny value
A3:A4Any value
B3:G1048576Any value
A5List=$AD$2:$AD$53
A6:A1048576Any value
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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