Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Need Formula to Calculate Time/Overtime (2)

I have created a formula that has two problems:

1. It only works it all the cells have a numerical value in them.
2. The formula is very long and needs to be simplified.

Is there anyone that can help me?

Here is the formula:

=(MIN(10,C21)+(IF(10<C21,C21-10,0)-IF(C2112,C21-12,0))*1.5+(MAX(0,C21-12)*2))+(MIN(10,D21)+(IF(10<D21,D21-10,0)-IF(D2112,D21-12,0))*1.5+(MAX(0,D21-12)*2))+(MIN(10,E21)+(IF(10<E21,E21-10,0)-IF(E2112,E21-12,0))*1.5+(MAX(0,E21-12)*2))+(MIN(10,F21)+(IF(10<F21,F21-10,0)-IF(F2112,F21-12,0))*1.5+(MAX(0,F21-12)*2))+((MIN(12,G21)*1.5)+(MAX(0,G21-12)*2))+((MIN(12,H21)*1.5)+(MAX(0,H21-12)*2))+(I21*2)

Given that:
Mon. (C21), Tues. (D21), Wed. (E21), Thur. (F21), Fri. (G21), Sat. (H21),
Sun. (I21)

Mon. - Thur. Fri. & Sat.
Sun.
1st (10) hours 1 1.5
2
..1 - 2 hrs. OT 1.5 1.5
2
over 2 hrs. OT 2 2
2

Here is an example of what it looks like (Col J has the formula):
c d e f g h i j
Mon Tue Wed Thu Fri Sat Sun Total
Emp 2 15 0 0 0 0 0 0 19 (works)
Emp 3 15 85
Emp 4 76
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Need Formula to Calculate Time/Overtime (2)

Look he

http://www.cpearson.com/excel/overtime.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Don Lowe" wrote in message ...
|I have created a formula that has two problems:
|
| 1. It only works it all the cells have a numerical value in them.
| 2. The formula is very long and needs to be simplified.
|
| Is there anyone that can help me?
|
| Here is the formula:
|
|
=(MIN(10,C21)+(IF(10<C21,C21-10,0)-IF(C2112,C21-12,0))*1.5+(MAX(0,C21-12)*2))+(MIN(10,D21)+(IF(10<D21,D21-10,0)-IF(D2112,D21-12,0))*1.5+(MAX(0,D21-12)*2))+(MIN(10,E21)+(IF(10<E21,E21-10,0)-IF(E2112,E21-12,0))*1.5+(MAX(0,E21-12)*2))+(MIN(10,F21)+(IF(10<F21,F21-10,0)-IF(F2112,F21-12,0))*1.5+(MAX(0,F21-12)*2))+((MIN(12,G21)*1.5)+(MAX(0,G21-12)*2))+((MIN(12,H21)*1.5)+(MAX(0,H21-12)*2))+(I21*2)
|
| Given that:
| Mon. (C21), Tues. (D21), Wed. (E21), Thur. (F21), Fri. (G21), Sat. (H21),
| Sun. (I21)
|
| Mon. - Thur. Fri. & Sat.
| Sun.
| 1st (10) hours 1 1.5
| 2
| .1 - 2 hrs. OT 1.5 1.5
| 2
| over 2 hrs. OT 2 2
| 2
|
| Here is an example of what it looks like (Col J has the formula):
| c d e f g h i j
| Mon Tue Wed Thu Fri Sat Sun Total
| Emp 2 15 0 0 0 0 0 0 19 (works)
| Emp 3 15 85
| Emp 4 76


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Need Formula to Calculate Time/Overtime (2)

I have checked out http://www.cpearson.com/excel/overtime.htm. This is where
I got the concept behind the formula I put together. The formula used in the
website only works if every cell has a numerical value. Is there another
sight or a formula I am missing?

Thank you,

Don

"Niek Otten" wrote:

Look he

http://www.cpearson.com/excel/overtime.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Don Lowe" wrote in message ...
|I have created a formula that has two problems:
|
| 1. It only works it all the cells have a numerical value in them.
| 2. The formula is very long and needs to be simplified.
|
| Is there anyone that can help me?
|
| Here is the formula:
|
|
=(MIN(10,C21)+(IF(10<C21,C21-10,0)-IF(C2112,C21-12,0))*1.5+(MAX(0,C21-12)*2))+(MIN(10,D21)+(IF(10<D21,D21-10,0)-IF(D2112,D21-12,0))*1.5+(MAX(0,D21-12)*2))+(MIN(10,E21)+(IF(10<E21,E21-10,0)-IF(E2112,E21-12,0))*1.5+(MAX(0,E21-12)*2))+(MIN(10,F21)+(IF(10<F21,F21-10,0)-IF(F2112,F21-12,0))*1.5+(MAX(0,F21-12)*2))+((MIN(12,G21)*1.5)+(MAX(0,G21-12)*2))+((MIN(12,H21)*1.5)+(MAX(0,H21-12)*2))+(I21*2)
|
| Given that:
| Mon. (C21), Tues. (D21), Wed. (E21), Thur. (F21), Fri. (G21), Sat. (H21),
| Sun. (I21)
|
| Mon. - Thur. Fri. & Sat.
| Sun.
| 1st (10) hours 1 1.5
| 2
| .1 - 2 hrs. OT 1.5 1.5
| 2
| over 2 hrs. OT 2 2
| 2
|
| Here is an example of what it looks like (Col J has the formula):
| c d e f g h i j
| Mon Tue Wed Thu Fri Sat Sun Total
| Emp 2 15 0 0 0 0 0 0 19 (works)
| Emp 3 15 85
| Emp 4 76



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
Calculate Overtime double time shizuka New Users to Excel 1 March 6th 09 01:02 AM
How can i calculate overtime give formula for 24 hrs clock Sanjay Raut Excel Discussion (Misc queries) 2 October 10th 08 05:05 PM
Need Formula to Calculate Time/Overtime Don Lowe Excel Discussion (Misc queries) 2 May 14th 08 03:47 PM
if then formula for total time ;overtime hours versus regular OTVs Regular Excel Worksheet Functions 1 September 13th 07 08:24 AM
Could you help me to calculate overtime Svetlana Excel Worksheet Functions 10 August 25th 05 09:00 AM


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