Counting partial time match

Leeroy82

New Member
Joined
Jan 4, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I am trying to count the number of breaks that start on each 15 minute increment. I have tried wildcards as suggested on some other sites but it doesn't seem to be capturing the count.

Here is what I currently have but is returning a Zero result....HELP

=SUM(COUNTIFS($G$2:$G$1722,"*"&{":00",":15",":30",":45"}&"*"))

1613608121984.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
There are intervals in the entire document that don't fall on a 15 minute increment also so I want to isolate those on the 15
 
Upvote 0
Try this:

=SUMPRODUCT((MOD(MINUTE($G$2:$G$1722),15)=0)*($G$2:$G$1722>0))
 
Upvote 0
Hi Leeroy82,

Does this do what you ask?

Leeroy82.xlsx
GHIJ
1Start TimeEnd TimeResult
210:3010:452
312:4513:00
414:0014:15
515:2515:30
616:3016:45
717:4518:00
819:0019:15
919:2519:44
1012:4513:00
1114:0014:15
Sheet1
Cell Formulas
RangeFormula
J2J2=SUMPRODUCT(--(MOD(MINUTE($G$2:$G$1722),15)<>0))
 
Upvote 0
Hi Leeroy82,

Does this do what you ask?

=SUMPRODUCT(--(MOD(MINUTE($G$2:$G$1722),15)<>0))
Thanks, whilst it doesn't it kind of does the reverse of what I was after so I can still work with that haha
 
Upvote 0
Thanks, whilst it doesn't it kind of does the reverse of what I was after so I can still work with that haha
Then maybe
=SUMPRODUCT(--((MOD(MINUTE($G$2:$G$1722),15)=0)*($G$2:$G$1722<>"")))
 
Upvote 0
Solution
...and if you want to highlight those not on 15 minute intervals then:

Leeroy82.xlsx
GHIJ
1Start TimeEnd TimeResult
210:0010:458
312:4513:00
414:0014:15
515:2515:30
616:3016:45
717:4518:00
819:0019:15
919:2519:44
1012:4513:00
1114:0014:15
12
13
Highlight
Cell Formulas
RangeFormula
J2J2=SUMPRODUCT(--((MOD(MINUTE($G$2:$G$1722),15)=0)*($G$2:$G$1722<>"")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G1722Expression=MOD(MINUTE($G2),15)<>0textNO
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,428
Members
448,961
Latest member
nzskater

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