Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default IF Function: Time schedules

Hello, I need help on a IF function or tell me if I can do this using a LookUp.

We have a spreadsheet to record the times patients arrive and the time they
are seen to by the doctor depending on whether they booked an appointment or
not. The Customer Service rules state that patients who have booked an
appointment have a 00:05:00 min waiting time. If this is True we type in "On
Time". IF False, we type in "Over Time".

However, IF they have NOT booked an appointment patients have a 00:15:00 min
waiting time. IF the "Seen At" time is less than 00:15:00 then it's "On
Time". IF False, then the value is "Over Time"

Here is an example of the spreadsheet we use:

Time arrived Appoinment Y/N Seen at Length of wait Ontime/OverT
15:00:00 Y 15:20:00 00:20:00 Overtime
15:15:00 N 15:35:00 00:20:00 Overtime
16:10:00 N 16:15:00 00:05:00 On Time


I would appreciate any clues and answers

Merry Christmas to all !!!
--
Regards

Irish Mike
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF Function: Time schedules

=IF(COUNTA(A2:C2)<3,"",IF(OR(AND(B2="Y",(C2-A2)*1440<=5),AND(B2="N",(C2-A2)*1440<=15)),"Ontime","OverTime"))


"Mike" wrote:

Hello, I need help on a IF function or tell me if I can do this using a LookUp.

We have a spreadsheet to record the times patients arrive and the time they
are seen to by the doctor depending on whether they booked an appointment or
not. The Customer Service rules state that patients who have booked an
appointment have a 00:05:00 min waiting time. If this is True we type in "On
Time". IF False, we type in "Over Time".

However, IF they have NOT booked an appointment patients have a 00:15:00 min
waiting time. IF the "Seen At" time is less than 00:15:00 then it's "On
Time". IF False, then the value is "Over Time"

Here is an example of the spreadsheet we use:

Time arrived Appoinment Y/N Seen at Length of wait Ontime/OverT
15:00:00 Y 15:20:00 00:20:00 Overtime
15:15:00 N 15:35:00 00:20:00 Overtime
16:10:00 N 16:15:00 00:05:00 On Time


I would appreciate any clues and answers

Merry Christmas to all !!!
--
Regards

Irish Mike

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default IF Function: Time schedules

Try this:

Time Arrived is in column B
Appt Y/N is in column C
Seen at is in column D
Length of wait = D3-D3 and is in column E

In the Overtime / On time column use the following formula

=IF(OR(AND(C3="Y",E35/1440),AND(C3="N",E315/1440)),"OVERTIME","ONTIME")




"Mike" wrote:

Hello, I need help on a IF function or tell me if I can do this using a LookUp.

We have a spreadsheet to record the times patients arrive and the time they
are seen to by the doctor depending on whether they booked an appointment or
not. The Customer Service rules state that patients who have booked an
appointment have a 00:05:00 min waiting time. If this is True we type in "On
Time". IF False, we type in "Over Time".

However, IF they have NOT booked an appointment patients have a 00:15:00 min
waiting time. IF the "Seen At" time is less than 00:15:00 then it's "On
Time". IF False, then the value is "Over Time"

Here is an example of the spreadsheet we use:

Time arrived Appoinment Y/N Seen at Length of wait Ontime/OverT
15:00:00 Y 15:20:00 00:20:00 Overtime
15:15:00 N 15:35:00 00:20:00 Overtime
16:10:00 N 16:15:00 00:05:00 On Time


I would appreciate any clues and answers

Merry Christmas to all !!!
--
Regards

Irish Mike

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
Comparign two sets of time schedules to fidn best matches Sean Timmons Excel Worksheet Functions 0 December 19th 06 01:01 AM
Day Off schedules Steve Excel Worksheet Functions 0 August 18th 06 08:51 PM
schedules Brad Excel Worksheet Functions 2 July 29th 06 10:37 PM
CALENDARS/SCHEDULES YanYan Excel Discussion (Misc queries) 0 September 19th 05 11:23 PM
look up tables for tax schedules GFM Excel Worksheet Functions 2 April 13th 05 04:05 PM


All times are GMT +1. The time now is 09:44 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"