CountIF

grogmi1

New Member
Joined
Sep 17, 2010
Messages
49
Hello,
I have a countIF formula in my spreadsheet which looks at a cell containing a phone number and then looks down a large range to see how many times that telephone number has called in. What I'd now like to do, if possible, is for the CountIF to only look at the range of data in a given time period. In Column A is a whole list of telephone numbers, Column E is a repeat of Column A (=A8 etc) this is the column I use to check the list of phone numbers and coulmn K has the time that the number called in. What I want to do is see how many times a telephone number called in between 01:00 and 02:00.

Is this possible?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Depending on your layout, a Pivot Table should do the job quite easily
 
Upvote 0
You can enter the formula in second row of any blank column and drag down; and consider using Pivot for overview
Excel Formula:
=COUNTIFS($K:$K,">="&"1:00",$K:$K,"<"&"2:00",$E:$E,E2)
 
Upvote 0
Here is a similar idea...
MrExcel20210204.xlsx
AKLMN
1Tel NoTimeTel No123-456-789
2123-456-7891:03Time Lower1:00
3222-333-4441:11Time Upper2:00
4333-444-5551:17Count3
5123-456-7891:28
6222-333-4441:47
7123-456-7891:54
8222-333-4442:01
9123-456-7892:58
10333-444-5553:06
11123-456-7893:13
grogmi1
Cell Formulas
RangeFormula
N4N4=COUNTIFS($A$2:$A$11,$N$1,$K$2:$K$11,">="&$N$2,$K$2:$K$11,"<="&$N$3)
 
Upvote 0
You can enter the formula in second row of any blank column and drag down; and consider using Pivot for overview
Excel Formula:
=COUNTIFS($K:$K,">="&"1:00",$K:$K,"<"&"2:00",$E:$E,E2)
Thankyou Habtest, I've made a couple of tweaks but this works brilliantly- Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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