#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sumif for payroll

I want to track overtime pay. I want it to sum Regular time up to 40 hours
and anything over 40 hours as overtime pay.

I tried something like this equation, but it is incorrect:
=SUMIF(((M22-40,)+(O22-40)),"<1")


Week 1 Week 2 Regular Overtime
Shifts Hrs Shifts Hrs
4 48 3 36
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Sumif for payroll

Try this for your regular hours:
=MIN(40,M2)+MIN(40,O2)
and then this for the overtime
=(M2+O2)-P2

This assumes that your 48 is in M, the 36 in O and that Regular goes into P,
with the overtime calculation in column Q.
would show up as

.... L M N O P Q
4 48 3 36 76 8


"galiant" wrote:

I want to track overtime pay. I want it to sum Regular time up to 40 hours
and anything over 40 hours as overtime pay.

I tried something like this equation, but it is incorrect:
=SUMIF(((M22-40,)+(O22-40)),"<1")


Week 1 Week 2 Regular Overtime
Shifts Hrs Shifts Hrs
4 48 3 36

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Sumif for payroll

One way:

Regular: = MIN(40,M22)+MIN(40,O22)

OT: =MAX(0,M22-40) + MAX(0,O22-40)

In article ,
galiant wrote:

I want to track overtime pay. I want it to sum Regular time up to 40 hours
and anything over 40 hours as overtime pay.

I tried something like this equation, but it is incorrect:
=SUMIF(((M22-40,)+(O22-40)),"<1")


Week 1 Week 2 Regular Overtime
Shifts Hrs Shifts Hrs
4 48 3 36

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
how do i set up payroll junelle Excel Worksheet Functions 2 December 18th 06 07:47 AM
Payroll mikeindc Excel Discussion (Misc queries) 1 August 13th 06 09:40 PM
Adding payroll stubs payroll calculator Sable New Users to Excel 2 August 5th 06 05:37 PM
Payroll Ted Dawson New Users to Excel 6 February 28th 06 01:35 AM
Payroll Tracy Excel Discussion (Misc queries) 5 January 26th 06 09:16 PM


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

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"