Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Ok, i'm trying to create a formulas to calculate overtime hours for a
timesheet. 8 hours starts overtime so I have L11(total hours)-8/24. Now if my total hours are over 8 this works perfect but if there not I get a result of infinate #### and yes my column is wide enough! I have no idea what to do. I'v tried everything from IF statments to conditional formatting, I can't seem to figure this one out. Please help me or give me some ideas as to what to try. Thank you. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How about this (or a version of this);
=if(l118,(l11-8)/24,l11) "Ashley" wrote: Ok, i'm trying to create a formulas to calculate overtime hours for a timesheet. 8 hours starts overtime so I have L11(total hours)-8/24. Now if my total hours are over 8 this works perfect but if there not I get a result of infinate #### and yes my column is wide enough! I have no idea what to do. I'v tried everything from IF statments to conditional formatting, I can't seem to figure this one out. Please help me or give me some ideas as to what to try. Thank you. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Time values willl not except negative values. Use something like:
=IF(L110.3333,L11-8/24,0) This returns zero when hours worked are less than 8. HTH Peter "Ashley" wrote: Ok, i'm trying to create a formulas to calculate overtime hours for a timesheet. 8 hours starts overtime so I have L11(total hours)-8/24. Now if my total hours are over 8 this works perfect but if there not I get a result of infinate #### and yes my column is wide enough! I have no idea what to do. I'v tried everything from IF statments to conditional formatting, I can't seem to figure this one out. Please help me or give me some ideas as to what to try. Thank you. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Ashley,
If you want to only display the result if the hours are greater than 8, then use: =if(l118,(l11-8)/24,"") Jody "Ashley" wrote: Ok, i'm trying to create a formulas to calculate overtime hours for a timesheet. 8 hours starts overtime so I have L11(total hours)-8/24. Now if my total hours are over 8 this works perfect but if there not I get a result of infinate #### and yes my column is wide enough! I have no idea what to do. I'v tried everything from IF statments to conditional formatting, I can't seem to figure this one out. Please help me or give me some ideas as to what to try. Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula Trouble | Excel Discussion (Misc queries) | |||
trouble with formula | Excel Discussion (Misc queries) | |||
Formula trouble | Excel Discussion (Misc queries) | |||
'IF' formula trouble | Excel Discussion (Misc queries) | |||
Trouble with formula | Excel Worksheet Functions |