 |
|
|
 |
New Member
|
|
May 22, 2007, 06:42 PM
|
|
MS Excel
I am modifying a payroll spreadsheet that was developed in MS Excel. The hours worked by each employee have their own row; each cell represents the hours worked on that particular day. I need to isolate ONLY the amount greater than eight hours (for overtime) and sum those quantities at the end of each row for each employee. For example, if an employee works three days overtime in a pay period, each day is two hours overtime, that summary for overtime should be 6 hours at the end of that row (which is a pay period). I am able to isolate any cells that are greater than 8, but that gives me the entire number (i.e. if they worked 10 hours, the formula I used recognizes the whole 10 hours, not just the 2 hours overtime)
Any help would be greatly appreciated,
Regards,
Anthony
|
|
 |
New Member
|
|
May 23, 2007, 03:30 AM
|
|
 Originally Posted by shoppingeutopia
I am modifying a payroll spreadsheet that was developed in MS Excel. The hours worked by each employee have their own row; each cell represents the hours worked on that particular day. I need to isolate ONLY the amount greater than eight hours (for overtime) and sum those quantities at the end of each row for each employee. For example, if an employee works three days overtime in a pay period, each day is two hours overtime, that summary for overtime should be 6 hours at the end of that row (which is a pay period). I am able to isolate any cells that are greater than 8, but that gives me the entire number (i.e. if they worked 10 hours, the formula I used recognizes the whole 10 hours, not just the 2 hours overtime)
Any help would be greatly appreciated,
Regards,
Anthony
you can combine the SUMIF and COUNTIF functions
=SUMIF(B2:F2,">8")-(COUNTIF(B2:F2,">8")*8) where B2:F2 is your range of hours worked
Hope this helped
|
|
 |
New Member
|
|
May 23, 2007, 05:54 PM
|
|
 Originally Posted by WvR
you can combine the SUMIF and COUNTIF functions
=SUMIF(B2:F2,">8")-(COUNTIF(B2:F2,">8")*8) where B2:F2 is your range of hours worked
Hope this helped
Thanks - that was perfect - THIS IS A GREAT SITE!!
Regards
Anthony
|
|
Question Tools |
Search this Question |
|
|
Add your answer here.
Check out some similar questions!
Round up in Excel
[ 12 Answers ]
Hi!
I am wondering how to solve this:
Numbers in one column need to be rounded to the nearest half decimal, for example: 0,4 - 0,5 0,7 - 1,0 1,4 - 1,5 1,1 - 1,5
Is there an easy way around this? Could You please help!
Many thanks, You're all the best!
Srecak:)...
How to get better with Excel
[ 2 Answers ]
My Vietnamese staff and I use Excel all the time, but we're limited to very basic stuff. Can anyone recommend an easy and comprehensive how-to reference, either book form (which we would have to order by mail) or on-line info? Thanks. -- Chuck Searcy, Hanoi
Excel
[ 2 Answers ]
:rolleyes: I try to use excel to print an invoice, how can I put an invoice number that will auto upadate the next time I use the file?
Excel help
[ 1 Answers ]
I am using excel to record some data and I have it setup to do some math based on the info that I put into certain cells. Now what I am wondering is am I able to setup the sheet so that it will prompt me for the 4 pieces of data that I want to enter and then place those in the proper cells and then...
Excel gridlines
[ 1 Answers ]
How do I get gridlines to print when I am creating a prototype, so some cells have no data in them. I wish to fill them in later by pen. I know how to get the gridlines to print with data in the cells, but they will not print without any data in the cells. Thanks, dg
View more questions
Search
|