Identify timestamps that occur within 5 minutes of an event.

cohom

New Member
Joined
Nov 3, 2016
Messages
2
I searched the forum for similar questions but didn't see anything. Here's the question: We're running TV commercials and want to see leads that came into our website within 5 minutes after a commercial airs.

We have a list of times when the commercials ran and a list of times we received leads. How do I compare them to identify and count all leads timestamps that occurred within 5 minutes of a commercial timestamp?

I'd like something that I can analyze and search all the airings at once. For example, if a commercial aired at 8:25pm, 8:45pm, 9:15pm and 9:28pm (and dozens of others) how do I search all of those times automatically rather than having to manually search for matching times on each one individually. We may end up with 100+ commercials per day.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Here you go:


Excel 2010
ABCD
2Lead Time (minutes)5
3
4
5Ad TimesLeadsMatch
603/11/2016 20:2503/11/2016 20:251
703/11/2016 20:2603/11/2016 20:262
803/11/2016 20:4503/11/2016 20:272
903/11/2016 21:1503/11/2016 20:282
1005/11/2016 19:2803/11/2016 20:292
1103/11/2016 20:302
1203/11/2016 20:311
1303/11/2016 20:320
1403/11/2016 20:330
1503/11/2016 20:340
1603/11/2016 20:350
1703/11/2016 20:360
1803/11/2016 20:370
1903/11/2016 20:380
2003/11/2016 20:390
2103/11/2016 20:400
2203/11/2016 20:410
2303/11/2016 20:420
2403/11/2016 20:430
2503/11/2016 20:440
2603/11/2016 20:451
2703/11/2016 20:461
2803/11/2016 20:471
2903/11/2016 20:481
3003/11/2016 20:491
3103/11/2016 20:501
Sheet1
Cell Formulas
RangeFormula
D6=SUMPRODUCT((Sheet1!$C6>=Sheet1!$A$6:$A$10)*(Sheet1!$C6<=Sheet1!$A$6:$A$10+$B$2/24/60))
 
Last edited:
Upvote 0
I've left in the counts greater than one as a demo. As I don't know what should happen if you run multiple adds within the specified lead time.
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,765
Members
449,049
Latest member
greyangel23

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