Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Its kind of hard to put into words what i need, but its basically a time
balance sheet for payroll. I have a cell with a static value, say 49 hours. I want it to show the 49 hours for a regular work week if no special leave time is taken in that week. For example, lets say a day off of 8 hours was taken, I want that calculated and subtracted and instead of 49 displayed, 41 is there instead. I have 4 seperate weeks of this, without going into a longer explanation. But here is an example of what my cells look like. Cells C9-H9 (if all are blank, then,) I9=49.00 (if C9-H9 have a value, then subtract it from the static 49.00hrs in I9. Again, there is 4 weeks of this same thing. c9-h9 represents the first week and the next 3 weeks are directly under those, including i9-i12 that have my static work totals. Hope this is enough info to start to see what i need.. Thanks :) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Since Excel treats blanks as zeroes in calculations you can simply use this
in I9 =49 - Sum(C9:H9) and copy down to get it for other weeks... or =49 - SUMIF(C9:H9,"0") "DayzM" wrote: Its kind of hard to put into words what i need, but its basically a time balance sheet for payroll. I have a cell with a static value, say 49 hours. I want it to show the 49 hours for a regular work week if no special leave time is taken in that week. For example, lets say a day off of 8 hours was taken, I want that calculated and subtracted and instead of 49 displayed, 41 is there instead. I have 4 seperate weeks of this, without going into a longer explanation. But here is an example of what my cells look like. Cells C9-H9 (if all are blank, then,) I9=49.00 (if C9-H9 have a value, then subtract it from the static 49.00hrs in I9. Again, there is 4 weeks of this same thing. c9-h9 represents the first week and the next 3 weeks are directly under those, including i9-i12 that have my static work totals. Hope this is enough info to start to see what i need.. Thanks :) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That worked perfectly, thanks :)
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i input numbers so they subtract from a total in a row | New Users to Excel | |||
How do I subtract two columns from the same total? | Excel Discussion (Misc queries) | |||
Subtract several rows from a total | New Users to Excel | |||
I subtract 1:0:26 from 1:34:54 and get 12:34:38 AM - I want total. | Excel Worksheet Functions | |||
How do I write a formula to subtract a # from a total ONLY if the. | Excel Worksheet Functions |