LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Problem with calculating hours in timesheet? (sysgulv)

Hi, Toppers

Your formula for H13 and J13 works great, but not for I13...
It shows a negative number if the hours are less then 7,5.

So I will use this instead:
=MAX(0;MIN(10,5;((G13-D13-(F13-E13))*24))-7,5)

(I got the formula from Peo Sjoblom in my other tread her)


but thanks for the effort.

Harald
Systemgulv





Toppers skrev:

try:

H13:
=MIN(7.5;($E$13-$D$13+$G$13-$F$13)*24)
I13:
=MIN(3.0;($E$13-$D$13+$G$13-$F$13)*24-7.5)
J13:
=MAX(0;($E$13-$D$13+$G$13-$F$13)*24-10.5)


"vezerid" wrote:

=MAX(0;7.5-24*(E13-D13+G13-F13))

HTH
Kostis Vezerides

On Jun 22, 6:33 pm, Systemgulv
wrote:
wMy timesheet looks like this:

inn out inn out reg,h 50% 100% Total
D13 E13 F13 G13 H13 I13 J13 K13

06:00 12:00 13:00 16:00 7,5 ??? 0,0 ???
(1,5) (9,0)

I need help with I13: The hours between 7,5h and 10,5h.

H13 to be between 0,0 to 7,5 (this one works!)

=HVIS((((E13-D13)+(G13-F13))*24)7,5;7,5;((E13-D13)+(G13-F13))*24)

I13 to be between 0,0 to 3,0 (this is the hours after H13 (7,5), not
working?)

=HVIS????

J13 to be between 0,0 to 13,5 (this is the hours after H13 and I13
(10,5), this is working!)

=HVIS(((E13-D13)+(G13-F13))*2410,5;((E13-D13)+(G13-F13))*24-10,5;0)

NB! I think the HVIS comand is the same as IF, logic test.

Harald
Systemgulv




 
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 - calculating hours per project type Klee Excel Worksheet Functions 2 March 24th 07 12:30 AM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Timesheet maximum hours problem Good Time Excel Worksheet Functions 7 November 12th 05 01:49 PM
Calculating hours for a timesheet Niq Excel Worksheet Functions 3 February 27th 05 10:53 PM


All times are GMT +1. The time now is 04:17 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"