Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am fine tuning our payroll spreadsheet, and we have several employees who
work from 4pm to 1 or 2 am. The current formula's treat each day as 24 hours, ending at 12pm. Is there a formula that I can use to show the hours worked when the ending time is after12 pm? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
in custom format type
[h]:mm "payroll spreadsheet help" skrev: I am fine tuning our payroll spreadsheet, and we have several employees who work from 4pm to 1 or 2 am. The current formula's treat each day as 24 hours, ending at 12pm. Is there a formula that I can use to show the hours worked when the ending time is after12 pm? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
A1 = 4:00 PM B1 = 2:00 AM =B1-A1+(B1<A1) Formatted as [h]:mm retruns 10:00 If you want the result as a decimal value: =(B1-A1+(B1<A1))*24 Formatted as GENERAL returns 10 Biff "payroll spreadsheet help" <payroll spreadsheet wrote in message ... I am fine tuning our payroll spreadsheet, and we have several employees who work from 4pm to 1 or 2 am. The current formula's treat each day as 24 hours, ending at 12pm. Is there a formula that I can use to show the hours worked when the ending time is after12 pm? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
A1 = 4:00 PM
B1 = 2:00 AM C1 =B1-A1+1 "payroll spreadsheet help" wrote: I am fine tuning our payroll spreadsheet, and we have several employees who work from 4pm to 1 or 2 am. The current formula's treat each day as 24 hours, ending at 12pm. Is there a formula that I can use to show the hours worked when the ending time is after12 pm? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That could cause all kinds of problems!
Biff "Teethless mama" wrote in message ... A1 = 4:00 PM B1 = 2:00 AM C1 =B1-A1+1 "payroll spreadsheet help" wrote: I am fine tuning our payroll spreadsheet, and we have several employees who work from 4pm to 1 or 2 am. The current formula's treat each day as 24 hours, ending at 12pm. Is there a formula that I can use to show the hours worked when the ending time is after12 pm? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
IS THERE A FORMULA TO MAKE E=6:00PM ETC SHIFT TIMES AND HOURS | Excel Worksheet Functions | |||
How do I write a formula in excel that calculates payroll? | Excel Worksheet Functions | |||
Formula to determine shift | Excel Worksheet Functions | |||
How do I setup a formula for payroll deductions in excel | Excel Worksheet Functions |