Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF statements help

Ok, I am working in MS Excel 2002 in Windows XP Professional. I am
trying to automate our service report calculations. This is for my
guys that go out on service calls. Here's what I am trying to work
with:

For service work performed Monday through Friday, up to eight(8)
hours per day, between the hours of 6:00 a.m. to 6:00 p.m. the rate
is $XXX

For service work performed over eight (8) hours or between 6:00 p.m.
and 6:00 a.m. Monday through Friday and all hours on Saturday the
rate is $XXXX.

For service work performed on Sundays and legal holidays the rate is
$XXXX

I have each day of the week in a separate column and the rows have
what time they clocked in and out.

So, I have row descriptions in column A, Monday in column B, Tuesday
in column C, until I have the rates in column I. The rates will be
put in individually because this can vary according to the particular
job.

My row headings are Departure Time, Time In, Break Time (decimal),
Time Out, Return Time, Total Time @ Customer, Total Travel Time,
Total Hours, Total Hours @ Regular Rate, and Total Hours @ Overtime
Rate.

I currently have the following formula for figuring out the regular
rate hours: =IF(B9=8,8,(IF(B98,8,(IF(B9<8,B9))))).

I currently have the following formula for figuring out the over time
rate hours: =IF(B9=8,0,(IF(B98,(B9-8),(IF(B9<8,0)))))

I do I adjust the formulas to incorporate the times of day?

Thanks.

Mandy Jo
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default IF statements help

Hi Mandy

To give a definitive answer on your calculations needs some more
information.
Saturdays and Sundays are easy because all hours are at the higher rate.

From Monday to Friday, are you paying based on Total hours including travel
time?
Is break time deducted for the total time?
What if the travel time is outside normal hours and the working time (total
time?) exceeds 8 hours, does the operator get paid overtime for the hours
over 8 and extra because of the antisocial hours?

I will give you my suggestions.
In cell K1 enter 6:00 Am and in L1 enter 6:00 PM
in cell A12 enter "Antisocial Hours" and in cell B12 enter
=($K$1-B2)*24+(B6-$L$1)*24
Your formula in B10 can be simplified to
=MIN(8,B9)
Your formula in B11 can be simplified to
=MAX(0,B9-8)

In cell A13 enter "Hours Overtime to pay" and in B14
=MAX(B11,B12)

--
Regards
Roger Govier

"Mandy J.S." wrote in message
...
Ok, I am working in MS Excel 2002 in Windows XP Professional. I am
trying to automate our service report calculations. This is for my
guys that go out on service calls. Here's what I am trying to work
with:

For service work performed Monday through Friday, up to eight(8)
hours per day, between the hours of 6:00 a.m. to 6:00 p.m. the rate
is $XXX

For service work performed over eight (8) hours or between 6:00 p.m.
and 6:00 a.m. Monday through Friday and all hours on Saturday the
rate is $XXXX.

For service work performed on Sundays and legal holidays the rate is
$XXXX

I have each day of the week in a separate column and the rows have
what time they clocked in and out.

So, I have row descriptions in column A, Monday in column B, Tuesday
in column C, until I have the rates in column I. The rates will be
put in individually because this can vary according to the particular
job.

My row headings are Departure Time, Time In, Break Time (decimal),
Time Out, Return Time, Total Time @ Customer, Total Travel Time,
Total Hours, Total Hours @ Regular Rate, and Total Hours @ Overtime
Rate.

I currently have the following formula for figuring out the regular
rate hours: =IF(B9=8,8,(IF(B98,8,(IF(B9<8,B9))))).

I currently have the following formula for figuring out the over time
rate hours: =IF(B9=8,0,(IF(B98,(B9-8),(IF(B9<8,0)))))

I do I adjust the formulas to incorporate the times of day?

Thanks.

Mandy Jo


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
If, then statements sarahz11 Excel Discussion (Misc queries) 4 March 20th 07 06:46 PM
If then statements Emily Excel Discussion (Misc queries) 3 March 20th 07 04:48 PM
If, Then Statements Dave F Excel Worksheet Functions 0 November 30th 06 05:33 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
if statements tom Excel Discussion (Misc queries) 3 November 18th 05 09:32 AM


All times are GMT +1. The time now is 07:41 AM.

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

About Us

"It's about Microsoft Excel"