Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Trying to calculate hours worked on timecard using "IF" command

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Trying to calculate hours worked on timecard using "IF" command

Maybe this

=MAX(M11-(M14+M15)-40,0)

Mike

"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Trying to calculate hours worked on timecard using "IF" comman

Ok, but if the 42.33 hours WERE regular worked hours (not including PTO or
holiday), how do I make the formula look right with the other part of the
formula {eg =IF(M1140,M11-40,0)}? Where do I put all the parethesis,
commas, etc? How do I put both formulas together so that both calculations
take effect?

"Mike H" wrote:

Maybe this

=MAX(M11-(M14+M15)-40,0)

Mike

"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Trying to calculate hours worked on timecard using "IF" comman

Hi,

You clearly never tried this formula which returns exactly the same answer
as Shane's much longer version.

Mike

"Melissa" wrote:

Ok, but if the 42.33 hours WERE regular worked hours (not including PTO or
holiday), how do I make the formula look right with the other part of the
formula {eg =IF(M1140,M11-40,0)}? Where do I put all the parethesis,
commas, etc? How do I put both formulas together so that both calculations
take effect?

"Mike H" wrote:

Maybe this

=MAX(M11-(M14+M15)-40,0)

Mike

"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Trying to calculate hours worked on timecard using "IF" command

Hi,

Try

=IF(M11-M14-M1540,M11-M14-M15-40,0)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Trying to calculate hours worked on timecard using "IF" comman

Shane,
Thank You, Thank You!! Your formula worked! You've just saved my bacon!

Melissa

"Shane Devenshire" wrote:

Hi,

Try

=IF(M11-M14-M1540,M11-M14-M15-40,0)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Trying to calculate hours worked on timecard using "IF" comman

Glad to help, and thanks for the feedback.

Cheers,
Shane Devenshire


"Melissa" wrote:

Shane,
Thank You, Thank You!! Your formula worked! You've just saved my bacon!

Melissa

"Shane Devenshire" wrote:

Hi,

Try

=IF(M11-M14-M1540,M11-M14-M15-40,0)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Melissa" wrote:

I have total hours in cell M11. In cell M13 I have a formula calculating
overtime hours: =IF(M1140,M11-40,0). What I'm trying to do is cause the
cell with this formula to calculate the hours ONLY if the overtime hours are
over 40 AND outside of PTO and/or Holiday hours.

Here's an example:

total hours (cell M12)= 42.33
overtime hours (cell M13)= 2.33
PTO hours (cell M14) = 8.00
Holiday hours (cell M15) = 8.00

Total work hours INCLUDES pto and holiday hours, so overtime hours should
NOT be showing 2.33, but rather zero.

How do I create/modify my current formula (above) to calculate this properly?

Thanks!

Melissa


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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
How do you subtract time as in a timecard to calculate hours work Dave Davis Excel Worksheet Functions 2 September 18th 06 05:58 PM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM


All times are GMT +1. The time now is 03:47 PM.

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"