COUNTIFS with calculation

dkubiak

Board Regular
Joined
May 17, 2004
Messages
137
Office Version
  1. 2013
Platform
  1. Windows
Given the table below, I want to COUNTIFS based on date, sales person, and IF column D - C is less than or equal to -15 minutes. I am trying to count how often the appointment starts at least 15 minutes early on a given date and sales person.

I want to create the entire thing in one function - i.e. not create a helper column in the table. Is this possible?


ABCD
DateSales PersonAppointment TimeActual Start Time
 

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
Can you post some sample data along with expected results. Preferably using the XL2bb add-in to do so.
 
Upvote 0
How about:

Book1
ABCDEFGHI
1DateSales PersonAppointment TimeActual Start TimeSales PersonDate# of 15 minute early appointments
21-JanAnn12:0012:05Ann1-Jan3
31-JanAnn11:0010:30
41-JanBob10:0010:15
51-JanAnn9:008:44
61-JanBob8:008:03
71-JanAnn1:00 PM12:37 PM
81-JanAnn2:00 PM2:02 PM
92-JanAnn12:0012:00
102-JanBob12:0012:00
112-JanBob1:001:01
Sheet13
Cell Formulas
RangeFormula
I2I2=SUMPRODUCT(--(A2:A11=H2),--(B2:B11=G2),--(C2:C11-D2:D11>=1/96))
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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