ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   FORMULA TROUBLE! PLEASE HELP! (https://www.excelbanter.com/excel-discussion-misc-queries/258692-formula-trouble-please-help.html)

Ashley

FORMULA TROUBLE! PLEASE HELP!
 
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.

JodySmithPharmD

FORMULA TROUBLE! PLEASE HELP!
 
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.


Billy Liddel

FORMULA TROUBLE! PLEASE HELP!
 
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.


JodySmithPharmD

FORMULA TROUBLE! PLEASE HELP!
 
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.



All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com