Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paul Watkins
 
Posts: n/a
Default formula / code help needed

Hi
I have a sheet with column C (start time) & column D (end time). (C1:D50)
e.g

C D
07:45 07:50
07:48 08:05

In Cell A1 i have the time '08:00' and in cell A2 '08:20'.

What i want to do is look at the range C1:D50 and determine if any values
fall between 08:00 and 08:20. If they do, change the corrosponding cell in
column E to equal 10.


C D E
07:45 07:50
07:48 08:05 10

Some sort of formula or vb code along the lines of If any cell in Range
C1:D50 is between 08:00 and 08;20 then in that row the cell in column E
becomes 10

can anyone help?

Thanks in advance
Paul Watkins



  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

paste this formula into cell E1 and copy it down

=IF(OR(AND($A$1<D1,D1<$B$1),AND($A$1<C1,C1<$B$1)), 10,0)


"Paul Watkins" wrote:

Hi
I have a sheet with column C (start time) & column D (end time). (C1:D50)
e.g

C D
07:45 07:50
07:48 08:05

In Cell A1 i have the time '08:00' and in cell A2 '08:20'.

What i want to do is look at the range C1:D50 and determine if any values
fall between 08:00 and 08:20. If they do, change the corrosponding cell in
column E to equal 10.


C D E
07:45 07:50
07:48 08:05 10

Some sort of formula or vb code along the lines of If any cell in Range
C1:D50 is between 08:00 and 08;20 then in that row the cell in column E
becomes 10

can anyone help?

Thanks in advance
Paul Watkins




  #3   Report Post  
Paul Watkins
 
Posts: n/a
Default

Thanks, that works perfectly.

Paul


"Duke Carey" wrote in message
...
paste this formula into cell E1 and copy it down

=IF(OR(AND($A$1<D1,D1<$B$1),AND($A$1<C1,C1<$B$1)), 10,0)


"Paul Watkins" wrote:

Hi
I have a sheet with column C (start time) & column D (end time). (C1:D50)
e.g

C D
07:45 07:50
07:48 08:05

In Cell A1 i have the time '08:00' and in cell A2 '08:20'.

What i want to do is look at the range C1:D50 and determine if any values
fall between 08:00 and 08:20. If they do, change the corrosponding cell
in
column E to equal 10.


C D E
07:45 07:50
07:48 08:05 10

Some sort of formula or vb code along the lines of If any cell in Range
C1:D50 is between 08:00 and 08;20 then in that row the cell in column E
becomes 10

can anyone help?

Thanks in advance
Paul Watkins






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
Multipart formula needed Barb Excel Worksheet Functions 2 February 24th 05 01:03 PM
Help! Formula needed. Samrasr Excel Discussion (Misc queries) 1 January 26th 05 12:01 PM
Help, Excel Formula Needed -- Urgent Urgent Excel Worksheet Functions 2 December 14th 04 10:32 PM
Look Up and Cell Reference - Formula Help Needed Janine Excel Worksheet Functions 1 December 14th 04 04:01 PM
Complex formula help needed Jan Excel Worksheet Functions 0 November 9th 04 03:19 PM


All times are GMT +1. The time now is 01:33 PM.

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

About Us

"It's about Microsoft Excel"