A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Establishing a Time Window



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 11:00 AM posted to microsoft.public.excel.worksheet.functions
NoodNutt
external usenet poster
 
Posts: 176
Default Establishing a Time Window

Hi Everyone

I am trying to create a formula that will provide one of the following:

Arrival Window: 40 Mins = 20 Mins Early to 20 Mins Late.

So this is what I have tried, but it does not equate to "On TIme"

'=IF($Z2=0,"ATTENTION",IF($Z2$AB2,"EARLY",IF($Z2 $AB2$AD2,"ON
TIME","LATE")))

Row 1 is reserved for column haedings and some fixed references.

Column Y = "21 Mins" Window
Column Z = Actual Arrival Time.
Column AC = Booked Arrival Time
Column AB = 21 Ealry window equation of AC-$Y$1
Column AD = 21 Late window equation of AC+$Y$1

So, with the above equation, it is meant to read like this:

If Z2 = 0 then Attention is required, but if it doesn't, then it needs to
check if Z fits in between the "Greater Than" AB, but "Less Than" AD, which
should display "On Time", else it is either "Early" or "Late".

So far I can get it to display all but "On Time".

A Huge TIA

Regards
Mark.


  #2  
Old April 28th, 2010, 11:15 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Establishing a Time Window

Try

=IF($Z2=0,"ATTENTION",IF($Z2$AB2,"EARLY",IF($Z2$ AD2,"ON TIME","LATE")))

--

HTH

Bob

"NoodNutt" wrote in message
...
Hi Everyone

I am trying to create a formula that will provide one of the following:

Arrival Window: 40 Mins = 20 Mins Early to 20 Mins Late.

So this is what I have tried, but it does not equate to "On TIme"

'=IF($Z2=0,"ATTENTION",IF($Z2$AB2,"EARLY",IF($Z2 $AB2$AD2,"ON
TIME","LATE")))

Row 1 is reserved for column haedings and some fixed references.

Column Y = "21 Mins" Window
Column Z = Actual Arrival Time.
Column AC = Booked Arrival Time
Column AB = 21 Ealry window equation of AC-$Y$1
Column AD = 21 Late window equation of AC+$Y$1

So, with the above equation, it is meant to read like this:

If Z2 = 0 then Attention is required, but if it doesn't, then it needs to
check if Z fits in between the "Greater Than" AB, but "Less Than" AD,
which should display "On Time", else it is either "Early" or "Late".

So far I can get it to display all but "On Time".

A Huge TIA

Regards
Mark.



  #3  
Old April 28th, 2010, 11:23 AM posted to microsoft.public.excel.worksheet.functions
NoodNutt
external usenet poster
 
Posts: 176
Default Establishing a Time Window

Whoa! works a treat.

Thx heaps Bob

Your a champ.

Cheers
Mark.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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