#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Payroll lookup

This is a classic payroll thing.

I two columns of names.

Coloumn L has a list of all names on the payroll.

Column D has a list of the same names, but mutliple times. Column E lists
the week. Column F lists each employees weekly hours.

Column O, I want to calcualte the total amount of hours upto 40 per week.

Column Q I want to total all hours that are over over 40.

Ex. John Smiths weekly hours
F13= 43
F14= 38
F15= 45
F16= 25

O14 = 143
Q14 = 8
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Payroll lookup

Try this:

OT hrs (formula entered in Q2, put it where you want it but note that the
reg hrs formula will use this as reference):

=SUMPRODUCT(--(D$2:D$16=L2),--(F$2:F$1640),F$2:F$16-40)

Reg hrs (this formula will reference the OT formula):

=SUMIF(D$2:D$16,L2,F$2:F$16)-Q2

Copy both formulas down as needed

--
Biff
Microsoft Excel MVP


"Treasur2" wrote in message
...
This is a classic payroll thing.

I two columns of names.

Coloumn L has a list of all names on the payroll.

Column D has a list of the same names, but mutliple times. Column E lists
the week. Column F lists each employees weekly hours.

Column O, I want to calcualte the total amount of hours upto 40 per week.

Column Q I want to total all hours that are over over 40.

Ex. John Smiths weekly hours
F13= 43
F14= 38
F15= 45
F16= 25

O14 = 143
Q14 = 8



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
Need payroll Rao Ratan Singh Excel Discussion (Misc queries) 1 May 9th 07 01:00 PM
how do i set up payroll junelle Excel Worksheet Functions 2 December 18th 06 07:47 AM
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 06:44 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"