Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MP MP is offline
external usenet poster
 
Posts: 39
Default Filtering Time ranges

I have data that includes 2 columns for a Start Time and a Finish Time of a
task.
I want to be able to find all data that falls between a set time:
e.g. want to find data that falls between 18:00 and 20:00. this may include
data that has a Start Time of 17:45 and a Finish time of 20:30.
Can anybody help with this please.
MP
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Filtering Time ranges

MP,

Assuming that your first times are in A3 and B3 - in A2 enter 18:00 and in B2 enter 20:00.

Then use this formula

=OR(AND($A$2<=B3,$B$2=B3),AND($A$2<=A3,$B$2=A3), AND($A$2<=A3,$B$2=B3),AND($A$2=A3,$B$2<=B3))

and copy down to match your data. The formula will return TRUE if there is any overlap at all. You
may want to change the <= and = to just < and ....

HTH,
Bernie
MS Excel MVP


"MP" wrote in message
...
I have data that includes 2 columns for a Start Time and a Finish Time of a
task.
I want to be able to find all data that falls between a set time:
e.g. want to find data that falls between 18:00 and 20:00. this may include
data that has a Start Time of 17:45 and a Finish time of 20:30.
Can anybody help with this please.
MP



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering out weekday dead time Tony Clarke Excel Worksheet Functions 7 March 6th 09 10:44 PM
calculating cells hangs when filtering ranges in a sheet WiFiMike2006 Excel Worksheet Functions 1 January 15th 07 11:47 PM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM
How do I delete all named ranges in a sheet at one time? L.Wall Excel Worksheet Functions 2 July 13th 05 03:29 PM
calculating date time ranges Patrick Excel Worksheet Functions 2 November 11th 04 05:07 AM


All times are GMT +1. The time now is 07:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"