Countifs between dates by name

kxellis26

New Member
Joined
Mar 11, 2022
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Greetings -

I built a sheet that shows me how many times each of my employees made entries in a specific tab, based on how many times they entered a date between a specific range. The formula I have now works, but it's very manual and I'd rather be able to choose the date range by simply changing it in 2 cells. I have tried to change my formula using "<="&C1 and ">="&D1, but it doesn't return anything. I can't figure out why it's not working. Any help would be appreciated.

Master Call Listening Tracker 2023.xlsx
BCD
2Date Range5/1/20238/8/2023
3
4Andrew0
5Andrew K0
6Anthony0
7Asa0
8Brandon0
9Chad0
10Christie19
11Cody0
12CJ0
13Evan0
14Glenn0
15James0
16Josiah0
17Justin0
18Karen0
19Kelly0
20Kyle3
21Logan0
22Matt0
23Megan0
24Miranda0
25Morgan0
26Ryan0
27Sandra0
28Stephanie0
29Tom0
30Tyler0
Weekly Tracking
Cell Formulas
RangeFormula
C4:C30C4=COUNTIFS(Date_Tracked,">=8/1/2023",Date_Tracked,"<=8/8/2023",Observer,'Weekly Tracking'!B4)
Named Ranges
NameRefers ToCells
Date_Tracked='Call Study - Tech'!$E$3:$E$1048576C4:C30
Observer='Call Study - Tech'!$D$3:$D$1048576C4:C30
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Well I think you're using C1 & C1 instead of C2 and D2

I recreated your formula, almost, and got a result that I think works
=COUNTIFS(Sheet6!$B$2:$B$5001,Sheet5!$B4,Sheet6!$C$2:$C$5001,">="&Sheet5!C$2,Sheet6!$C$2:$C$5001,"<="&Sheet5!D$2)

FAPB48 20230808.xlsm
BCDE
2Date Range5/1/20238/8/202311/15/2023
3
4Andrew5753
5Andrew K5753
6Anthony5453
Sheet5
Cell Formulas
RangeFormula
C4:D6C4=COUNTIFS(Sheet6!$B$2:$B$5001,Sheet5!$B4,Sheet6!$C$2:$C$5001,">="&Sheet5!C$2,Sheet6!$C$2:$C$5001,"<="&Sheet5!D$2)
 
Upvote 0
I have tried to change my formula using "<="&C1 and ">="&D1
You have it the wrong way round, it should ">="&C$1 "<="&D$1
Also (as has been said ) from the mini-sheet it should maybe be C2 & D2
Finally never refer to the sheet name the formula is on as it can cause problems.
Excel Formula:
=COUNTIFS(Date_Tracked,">="&C2,Date_Tracked,"<="&D$2,Observer,B4)
 
Upvote 0
You have it the wrong way round, it should ">="&C$1 "<="&D$1
Also (as has been said ) from the mini-sheet it should maybe be C2 & D2
Finally never refer to the sheet name the formula is on as it can cause problems.
Excel Formula:
=COUNTIFS(Date_Tracked,">="&C2,Date_Tracked,"<="&D$2,Observer,B4)
Wow. What a fool I am! I updated and locked the cells. Now it works perfectly.

Also, I added the row right before I sent this, so it was actually C1 & D1. My bad!

Either way, thank you so much for the assist!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
You have it the wrong way round, it should ">="&C$1 "<="&D$1
Also (as has been said ) from the mini-sheet it should maybe be C2 & D2
Finally never refer to the sheet name the formula is on as it can cause problems.
Excel Formula:
=COUNTIFS(Date_Tracked,">="&C2,Date_Tracked,"<="&D$2,Observer,B4)
Thank you for the assist!
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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