Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Conditional Testing Glitch

I have two start / stop day ranges associated with variables.
1st day range:
bVa = 83 (start)
bVb = 116 (stop)
2nd day range:
tVa = 151 (start)
tVb = 181 (stop)

Im trying to test for overlap between the first and second day range and if
that overlap is greater than say 7 then I have in place what should happen.
Currently Im just trying to just meet the simpler condition; is there
overlap between the two day ranges but am stuck in thought and diagram€¦

Appreciatively,
Arturo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Conditional Testing Glitch

Not positive I understand the problem, but it looks like you just want to
find out if the second days range falls into the first days range. If that is
true then overlap can be checked by subtracting tVa-bVb. this will tell you
what is between the end of the first day and the start of another. In your
case the answer is 35, if it is ever <0 then you have overlap, if you want to
check for say 7 digits of overlap its just if it is <=-7. Hope that is what
you needed.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Arturo" wrote:

I have two start / stop day ranges associated with variables.
1st day range:
bVa = 83 (start)
bVb = 116 (stop)
2nd day range:
tVa = 151 (start)
tVb = 181 (stop)

Im trying to test for overlap between the first and second day range and if
that overlap is greater than say 7 then I have in place what should happen.
Currently Im just trying to just meet the simpler condition; is there
overlap between the two day ranges but am stuck in thought and diagram€¦

Appreciatively,
Arturo

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Conditional Testing Glitch

This didn't hit it it exactly - my bad for not articulating the glitch
clearly...

"John Bundy" wrote:

Not positive I understand the problem, but it looks like you just want to
find out if the second days range falls into the first days range. If that is
true then overlap can be checked by subtracting tVa-bVb. this will tell you
what is between the end of the first day and the start of another. In your
case the answer is 35, if it is ever <0 then you have overlap, if you want to
check for say 7 digits of overlap its just if it is <=-7. Hope that is what
you needed.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Arturo" wrote:

I have two start / stop day ranges associated with variables.
1st day range:
bVa = 83 (start)
bVb = 116 (stop)
2nd day range:
tVa = 151 (start)
tVb = 181 (stop)

Im trying to test for overlap between the first and second day range and if
that overlap is greater than say 7 then I have in place what should happen.
Currently Im just trying to just meet the simpler condition; is there
overlap between the two day ranges but am stuck in thought and diagram€¦

Appreciatively,
Arturo

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
Conditional Testing of an array Lord Robocop Excel Worksheet Functions 1 May 7th 09 03:22 AM
Help needed for Sumproduct or Other Conditional testing claude jerry Excel Discussion (Misc queries) 3 October 23rd 08 12:12 PM
Strange glitch davegb Excel Programming 3 October 25th 06 08:59 PM
conditional formatting -- testing for multiple words The Moose Excel Discussion (Misc queries) 8 August 20th 06 01:11 PM
testing possible web interface glitch -- do not respond Dirk Goldgar Setting up and Configuration of Excel 3 January 27th 06 08:43 PM


All times are GMT +1. The time now is 01:27 AM.

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"