#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default payroll calculation

First let me thank all of you that have helped me get this far.

I am calculating payroll for a 2 week period and once 40 hours per week are
hit the column for regular time stops at 40 and the remainder goes into the
overtime column. I made this work but if week one has less than 40 hours it
will not calculate overtime for week 2 and vise versa.

what is wrong with my formula? =((SUM(E8:K8)-40))+((SUM(L8:R8)-40)


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default payroll calculation

Im not sure if I understand correctly but what Im thinking is that you have
to tell the formula to use 0 if the first weeks value is under 40... so it
would look something like this

=IF(SUM(E8:K8)<40,SUM(E8:K8),Sum(E8:K8)-40)+IF(SUM(L8:R8)<40,SUM(L8:R8),Sum(L8:R8)-40)

"Bernie" wrote:

First let me thank all of you that have helped me get this far.

I am calculating payroll for a 2 week period and once 40 hours per week are
hit the column for regular time stops at 40 and the remainder goes into the
overtime column. I made this work but if week one has less than 40 hours it
will not calculate overtime for week 2 and vise versa.

what is wrong with my formula? =((SUM(E8:K8)-40))+((SUM(L8:R8)-40)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default payroll calculation

Try it like this to calulate *both weeks* together:

=MAX(SUM(E8:R8)-80,0)

Or, like this to calculate *each week* separately:

=MAX(SUM(E8:K8)-40,0)+MAX(SUM(L8:R8)-40,0)

--
Biff
Microsoft Excel MVP


"Bernie" wrote in message
...
First let me thank all of you that have helped me get this far.

I am calculating payroll for a 2 week period and once 40 hours per week
are
hit the column for regular time stops at 40 and the remainder goes into
the
overtime column. I made this work but if week one has less than 40 hours
it
will not calculate overtime for week 2 and vise versa.

what is wrong with my formula? =((SUM(E8:K8)-40))+((SUM(L8:R8)-40)




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,510
Default payroll calculation

Hi Bernie,

The following should work.

=IF(SUM(E8:K8)-40=0,SUM(E8:K8)-40,0)+IF(SUM(L8:R8)-40=0,SUM(L8:R8)-40,0)

If either week calculates to less than 40 then you need to make them zero.

--
Regards,

OssieMac


"Bernie" wrote:

First let me thank all of you that have helped me get this far.

I am calculating payroll for a 2 week period and once 40 hours per week are
hit the column for regular time stops at 40 and the remainder goes into the
overtime column. I made this work but if week one has less than 40 hours it
will not calculate overtime for week 2 and vise versa.

what is wrong with my formula? =((SUM(E8:K8)-40))+((SUM(L8:R8)-40)


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 303
Default payroll calculation

A bit longer but it works


=IF((SUM(E8:K8)-40)0,(SUM(E8:K8)-40),0)+IF((SUM(L8:R8)-40)0,(SUM(L8:R8)-40),0)

Greetings from New Zealand


"Bernie" wrote in message
...
First let me thank all of you that have helped me get this far.

I am calculating payroll for a 2 week period and once 40 hours per week
are
hit the column for regular time stops at 40 and the remainder goes into
the
overtime column. I made this work but if week one has less than 40 hours
it
will not calculate overtime for week 2 and vise versa.

what is wrong with my formula? =((SUM(E8:K8)-40))+((SUM(L8:R8)-40)




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
PAYROLL CALCULATION Bernie Excel Discussion (Misc queries) 4 February 22nd 08 08:28 PM
Payroll calculation sgl Excel Worksheet Functions 2 May 14th 07 04:59 PM
Need payroll Rao Ratan Singh Excel Discussion (Misc queries) 1 May 9th 07 01:00 PM
Adding payroll stubs payroll calculator Sable New Users to Excel 2 August 5th 06 05:37 PM
need spreadsheet for the calculation of FUTA & SUTA payroll taxes [email protected] Excel Discussion (Misc queries) 0 December 22nd 05 08:53 PM


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