Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default time calculation, 24:00 - 16:00 = 8

Greetings,

Ok, I have two cells formated as time (13.00). I am attempting to subtract
the end time from the start time and put the product in a cell formated as a
number with two decimal places (16:00 - 8:00 = 8.00). No problem here.

But when I use 24:00 is displays 00:00. Hence 24:00 reads as 00:00 - 16:00 =
-16.00. How can I get Excel to display 24:00 as 24 hundred hours so the
formula can use 24:00 in the calculation.

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default time calculation, 24:00 - 16:00 = 8

On Sat, 7 Feb 2009 10:56:02 -0800, DaveB
wrote:

Greetings,

Ok, I have two cells formated as time (13.00). I am attempting to subtract
the end time from the start time and put the product in a cell formated as a
number with two decimal places (16:00 - 8:00 = 8.00). No problem here.

But when I use 24:00 is displays 00:00. Hence 24:00 reads as 00:00 - 16:00 =
-16.00. How can I get Excel to display 24:00 as 24 hundred hours so the
formula can use 24:00 in the calculation.

thanks in advance



When I enter those values in A1 and B1, even though B1 displays as 00:00, the
formula still calculates the proper value.

Did you really enter 24:00 directly into the cell?
What does the formula bar show when you click on the cell?

One general way around similar problems is this formula:

=B1-A1+(A1B1)

--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default time calculation, 24:00 - 16:00 = 8

Hi Ron
You're right, I directly entered and it's really 12.AM not PM
Please disregards my post
John
"Ron Rosenfeld" wrote in message
...
On Sat, 7 Feb 2009 10:56:02 -0800, DaveB
wrote:

Greetings,

Ok, I have two cells formated as time (13.00). I am attempting to
subtract
the end time from the start time and put the product in a cell formated as
a
number with two decimal places (16:00 - 8:00 = 8.00). No problem here.

But when I use 24:00 is displays 00:00. Hence 24:00 reads as 00:00 - 16:00
=
-16.00. How can I get Excel to display 24:00 as 24 hundred hours so the
formula can use 24:00 in the calculation.

thanks in advance



When I enter those values in A1 and B1, even though B1 displays as 00:00,
the
formula still calculates the proper value.

Did you really enter 24:00 directly into the cell?
What does the formula bar show when you click on the cell?

One general way around similar problems is this formula:

=B1-A1+(A1B1)

--ron


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default time calculation, 24:00 - 16:00 = 8

.... or =MOD(B1-A1,1)
--
David Biddulph

Ron Rosenfeld wrote:

When I enter those values in A1 and B1, even though B1 displays as
00:00, the formula still calculates the proper value.

Did you really enter 24:00 directly into the cell?
What does the formula bar show when you click on the cell?

One general way around similar problems is this formula:

=B1-A1+(A1B1)

--ron


On Sat, 7 Feb 2009 10:56:02 -0800, DaveB
wrote:

Greetings,

Ok, I have two cells formated as time (13.00). I am attempting to
subtract the end time from the start time and put the product in a
cell formated as a number with two decimal places (16:00 - 8:00 =
8.00). No problem here.

But when I use 24:00 is displays 00:00. Hence 24:00 reads as 00:00 -
16:00 = -16.00. How can I get Excel to display 24:00 as 24 hundred
hours so the formula can use 24:00 in the calculation.

thanks in advance




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default time calculation, 24:00 - 16:00 = 8

the product needs to be in a number format so that each day It can be added
for total hours worked for multiple days. If I format the product cell as
time it works, BUT, the idea is to format the product call as a number for
other use in other calculations.

if i use the following formula,
=(HOUR(b1)+(MINUTE(b12)/60))-(HOUR(a1)+(MINUTE(a1)/60)) to calculate time -
time it works for all other time calculations (i.e. 16:00 - 08:00 = 8.00)
were the time cells are formated as time so that it displays as such, and the
product cell is formated as a number.

If you enter 23:59 for 24:00 it works (as long as the start time is enter as
15.59).

To sum it up.

cell a1 formates as time 13.30 is... 8.00
cell b1 fromated as time 13.00 is... 16.00
cell c1 formated as a number (2 dec places is
....=(HOUR(B1)+(MINUTE(B12)/60))-(HOUR(A1)+(MINUTE(A1)/60))













"Ron Rosenfeld" wrote:

On Sat, 7 Feb 2009 10:56:02 -0800, DaveB
wrote:

Greetings,

Ok, I have two cells formated as time (13.00). I am attempting to subtract
the end time from the start time and put the product in a cell formated as a
number with two decimal places (16:00 - 8:00 = 8.00). No problem here.

But when I use 24:00 is displays 00:00. Hence 24:00 reads as 00:00 - 16:00 =
-16.00. How can I get Excel to display 24:00 as 24 hundred hours so the
formula can use 24:00 in the calculation.

thanks in advance



When I enter those values in A1 and B1, even though B1 displays as 00:00, the
formula still calculates the proper value.

Did you really enter 24:00 directly into the cell?
What does the formula bar show when you click on the cell?

One general way around similar problems is this formula:

=B1-A1+(A1B1)

--ron

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
Time Calculation Paul Black Excel Discussion (Misc queries) 4 October 2nd 08 04:46 PM
Stop time - start time calculation squack21 Excel Worksheet Functions 5 December 10th 07 03:20 PM
Time calculation (Subraction of Idle Time) Ajay Excel Discussion (Misc queries) 6 March 4th 07 11:54 AM
Ignoring Time in a Date Time Calculation nmp Excel Worksheet Functions 3 November 23rd 05 08:32 PM
time calculation with military time Ron Thetford Excel Worksheet Functions 8 July 29th 05 07:24 PM


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