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: 4
Default Time Differential Error???

I am working on a timesheet in Excel and seem to have come upon a strange
quirk/error. The timesheet is supposed to take two times, find the difference
and then display it in decimal format.

For example:
A1 = 09:00
A2 = 09:30
A3 = 0.5

The formula I have in cell A3 for making this computation is:

ROUNDUP((A2-A1)*1440/60,1)

The idea of the roundup is so that as soon as you work more than a specific
tenth of an hour you get credit for the next tenth. The breakdown of an hour
would be as follows:

..1 = 1-6 minutes
..2 = 7-12
..3 = 13-18
..4 = 19-24
..5 = 25-30
..6 = 31-36
..7 = 37-42
..8 = 43-48
..9 = 49-54
1.0 = 55-60

The issue I am having occurs for time differences of 30 minutes but only at
specific times. One of these ranges for example is 14:30 to 15:00. When the
formula calculates the time difference it comes out incorrectly to just over
..5 so it is rounded up to .6.

Does anyone have any ideas on how to workaround this or why Excel does this?

Thanks,
The Merg
--
Today's problems don't worry me,
I haven't solved yesterday's yet.
 
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
Run Time error 1004 Steph Excel Discussion (Misc queries) 1 May 4th 06 10:29 PM
Run time error '91' object variable-explain in plain english?? KristyBT Excel Discussion (Misc queries) 2 April 27th 06 07:53 PM
run time error 1004 for other user [email protected] Excel Discussion (Misc queries) 1 January 26th 06 09:42 AM
Help needed with Run Time Error 1004 Manesh Excel Discussion (Misc queries) 0 April 4th 05 05:07 AM
How do you sum a range of more than 30 cells. I get error each time I try. Joseph Conaghan via OfficeKB.com Excel Worksheet Functions 5 March 21st 05 10:15 PM


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