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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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