Lookup date/ time in range of dates and return binary value

Woofy_McWoof_Woof

Board Regular
Joined
Oct 7, 2016
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm attempting to return a binary 1 or 0 value where a look up of a date/time matches a date in string of dates. In the attached picture where the date and time (30 minute slots) matches the time that falls within that 30 minutes then it returns a value of 1, otherwise zero.

The date and time could contain seconds as well butstill falls within the 30 minutes and should be counted.

I've tried few things but it doesn't seem to work, any ideas? Thanks.
 

Attachments

  • lookup.JPG
    lookup.JPG
    75.5 KB · Views: 4
I'd suggest starting a new thread with your solution so far and this additional requirement. It might also help if you:
a) download the XL2BB Excel add in so you can post usable example and formulas etc in this forum (the link to download the add in appears when you are posting)
b) explain a bit more about your data and what you are trying to do as this may help a responder better understand the problem and possibly approach with a different solution.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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