PC Review


Reply
Thread Tools Rate Thread

Conditional Testing Glitch

 
 
=?Utf-8?B?QXJ0dXJv?=
Guest
Posts: n/a
 
      9th Aug 2007
I have two start / stop day ranges associated with variables.
1’st day range:
bVa = 83 (start)
bVb = 116 (stop)
2’nd day range:
tVa = 151 (start)
tVb = 181 (stop)

I’m 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 I’m 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 With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      9th Aug 2007
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.
> 1’st day range:
> bVa = 83 (start)
> bVb = 116 (stop)
> 2’nd day range:
> tVa = 151 (start)
> tVb = 181 (stop)
>
> I’m 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 I’m 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 With Quote
 
=?Utf-8?B?QXJ0dXJv?=
Guest
Posts: n/a
 
      9th Aug 2007
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.
> > 1’st day range:
> > bVa = 83 (start)
> > bVb = 116 (stop)
> > 2’nd day range:
> > tVa = 151 (start)
> > tVb = 181 (stop)
> >
> > I’m 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 I’m 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Testing of 3 cells tpeter Microsoft Excel Programming 4 3rd Sep 2009 03:11 PM
Conditional Formatting & Alternate Line Colouring Glitch - 2007 divvyboy Microsoft Access Reports 0 25th Jun 2009 10:39 AM
Conditional Testing of an array Lord Robocop Microsoft Excel Worksheet Functions 1 7th May 2009 03:22 AM
Conditional testing John Microsoft Excel Programming 1 5th Feb 2009 09:20 PM
testing possible web interface glitch -- do not respond =?Utf-8?B?RGlyayBHb2xkZ2Fy?= Microsoft Excel Setup 3 27th Jan 2006 08:43 PM


Features
 

Advertising
 

Newsgroups
 


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