Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Timesheet calculations

Hi folks-I'm a newbie here, so forgive me if my question is not so bright....
I am creating a timesheet for an operation that has staff possibly working
from one calendar date through to another on overtime. I have employed an
absolute function with the dates and times to accurately determine the number
of hours (this all works very well). Now, I am at a loss as how to get the
result to display as "8" in the regular hours column and the remaining hours
(anything over 8) to display in the next column. I have used the greater
than and if functions before, but I'm puzzled how to do this in the absolute
calculation. If I make any sense, thanks much for your help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Timesheet calculations

If hours are in A1 and are 12 hours

regular hours in B1 would be

if(a1 <= 8,A1,8)

in C1 Overrtime would be

if(a1 <= 8, 0, A1 - 8)


Absolute would not make any difference

for B1
if(abs(Endtime - Starttime) < 8, A1,8)

for C1
if(abs(Endtime - Starttime) <= 8, 0, A1 - 8)


"Nansi K." wrote:

Hi folks-I'm a newbie here, so forgive me if my question is not so bright....
I am creating a timesheet for an operation that has staff possibly working
from one calendar date through to another on overtime. I have employed an
absolute function with the dates and times to accurately determine the number
of hours (this all works very well). Now, I am at a loss as how to get the
result to display as "8" in the regular hours column and the remaining hours
(anything over 8) to display in the next column. I have used the greater
than and if functions before, but I'm puzzled how to do this in the absolute
calculation. If I make any sense, thanks much for your help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Timesheet calculations

Thank Joel-I should have known!
Nansi

"Joel" wrote:

If hours are in A1 and are 12 hours

regular hours in B1 would be

if(a1 <= 8,A1,8)

in C1 Overrtime would be

if(a1 <= 8, 0, A1 - 8)


Absolute would not make any difference

for B1
if(abs(Endtime - Starttime) < 8, A1,8)

for C1
if(abs(Endtime - Starttime) <= 8, 0, A1 - 8)


"Nansi K." wrote:

Hi folks-I'm a newbie here, so forgive me if my question is not so bright....
I am creating a timesheet for an operation that has staff possibly working
from one calendar date through to another on overtime. I have employed an
absolute function with the dates and times to accurately determine the number
of hours (this all works very well). Now, I am at a loss as how to get the
result to display as "8" in the regular hours column and the remaining hours
(anything over 8) to display in the next column. I have used the greater
than and if functions before, but I'm puzzled how to do this in the absolute
calculation. If I make any sense, thanks much for your help!

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timesheet ChrisMattock Excel Worksheet Functions 10 July 6th 06 04:04 PM
Timesheet Calculations CS Project Man Excel Worksheet Functions 3 March 13th 06 07:04 PM
Timesheet help kimmyrt Excel Worksheet Functions 3 March 22nd 05 04:34 AM
Timesheet Doug Excel Worksheet Functions 1 March 3rd 05 07:53 PM
timesheet Greg Brow Excel Worksheet Functions 0 February 10th 05 11:25 AM


All times are GMT +1. The time now is 10:39 AM.

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

About Us

"It's about Microsoft Excel"