#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Calculating time

Hi everyone,

I need to figure out how to calculate time, as in 9:00pm - 1:30am =
4.5hours. The issue im running into is crossing the midnight threshold.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Calculating time

=mod(b1-a1,1)*24

Format as general, or a number

Regards,
Fred.

"Lost" wrote in message
...
Hi everyone,

I need to figure out how to calculate time, as in 9:00pm - 1:30am =
4.5hours. The issue im running into is crossing the midnight threshold.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Calculating time

Thanks it worked kinda.... i needed to change it a bit to
=24-(mod(b1-a1,1)*24)
otherwise it gave me the result of 20.0

But thank you very much!!!! your a peach
"Fred Smith" wrote:

=mod(b1-a1,1)*24

Format as general, or a number

Regards,
Fred.

"Lost" wrote in message
...
Hi everyone,

I need to figure out how to calculate time, as in 9:00pm - 1:30am =
4.5hours. The issue im running into is crossing the midnight threshold.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Calculating time

That would be because you are calculating StartTime - EndTime. I had assumed
you would do it the standard way: EndTime - StartTime.

Regards,
Fred.



"Lost" wrote in message
...
Thanks it worked kinda.... i needed to change it a bit to
=24-(mod(b1-a1,1)*24)
otherwise it gave me the result of 20.0

But thank you very much!!!! your a peach
"Fred Smith" wrote:

=mod(b1-a1,1)*24

Format as general, or a number

Regards,
Fred.

"Lost" wrote in message
...
Hi everyone,

I need to figure out how to calculate time, as in 9:00pm - 1:30am =
4.5hours. The issue im running into is crossing the midnight threshold.




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
Calculating Time with Date/Time checking in formula cmatera Excel Worksheet Functions 2 August 11th 08 01:38 PM
Calculating Regular time, overtime and double time Brian Smith Excel Worksheet Functions 5 November 9th 07 10:32 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Calculating effective time from start/end date+time Stefan Stridh Excel Worksheet Functions 8 November 27th 04 03:50 PM


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