LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Error in subtracting time - Help

I have a formula that is subtracting time and when the person works more than
4.99 hours it is automatically taking .5 out for the lunch break. Well the
formula is working for the most part however it appears not to work when the
start time is on the hour it bring back an incorrect value.

Formula:

=MOD(K20-K19,1)-IF(MOD(K20-K19,1)4.99/24,0.5/24,0)

The incorrect value:

9:00
14:50

Answer: 5:20

I anyone can help let me know. Thanks!



 
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
subtracting time Sam Excel Worksheet Functions 1 May 27th 06 09:55 AM
Rounding Error when adding or subtracting two cells mtheo Excel Worksheet Functions 2 February 28th 06 06:51 PM
subtracting time JR Excel Worksheet Functions 4 February 23rd 06 06:44 PM
Subtracting Time bunnyc Excel Discussion (Misc queries) 2 February 23rd 06 04:31 PM
Subtracting Time Jason Excel Worksheet Functions 2 April 15th 05 09:07 PM


All times are GMT +1. The time now is 05:04 AM.

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"