#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Formula

I am trying to create a timecard and I need to calculate overtime. I am
trying an if function. =if(i28,i2-8,i2+0) where i2 is total hours and I am
using j2for ot. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PKK PKK is offline
external usenet poster
 
Posts: 8
Default Formula

Hi Mike,

Assuming you're putting that formula in the j2 cell for the OT you're trying
to calculate, then the formula should be:

=IF(I28,I2-8,0)

This will give you the OT hours if more than 8 hours are worked and 0 hours
if 8 or less hours will work.

"Mike" wrote:

I am trying to create a timecard and I need to calculate overtime. I am
trying an if function. =if(i28,i2-8,i2+0) where i2 is total hours and I am
using j2for ot. Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula

On Nov 15, 8:10 am, Mike wrote:
I am trying to create a timecard and I need to calculate overtime.
I am trying an if function. =if(i28,i2-8,i2+0) where i2 is total hours
and I am using j2 for ot.


If you are trying to compute I2-8 or zero for OT in J2, try:

=max(0, I2-8)

PS: OT is often not simpy the hours in excess of 8 hours in a day.
You might want to check the OT laws in your state.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"