Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula to calculate military time into hrs

ie; 2300-0015 1.5 hrs
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula to calculate military time into hrs


Is this in one cell or two?

Ideally, if you enter times with a colon i.e. in A1 23:00 and in B1
00:15 then the formula for showing the difference in time is

=B1-A1+(A1B1)

format as time

this will give you

01:15

or if you want 1.25

=(B1-A1+(A1B1))*24

format as number


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=508391

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Formula to calculate military time into hrs

Thanks, I really appreciate the help.

Ron
805-529-8300

"daddylonglegs" wrote:


Is this in one cell or two?

Ideally, if you enter times with a colon i.e. in A1 23:00 and in B1
00:15 then the formula for showing the difference in time is

=B1-A1+(A1B1)

format as time

this will give you

01:15

or if you want 1.25

=(B1-A1+(A1B1))*24

format as number


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=508391


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Formula to calculate military time into hrs

Thanks, I really appreciate the help

Ron
805-529-8300

"Toppers" wrote:

Ron,

A1=23:00, B1=00:15 then in C1 (all entered with format hh:mm):-

=(B1-A1)+(B1<A1)*24

HTH

"Ron - Matrix Investigations" wrote:

ie; 2300-0015 1.5 hrs

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula to calculate military time into hrs


Toppers,

this formula doesn't work

=(B1-A1)+(B1<A1)*24


you need the parentheses arranged differently - see my formula above


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=508391



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formula to calculate military time into hrs

A simple alternative

A1: 23:00
B1: 00:15
=MOD(B1-A1,1)

in general
=Mod(endtime-starttime,1)


format the cell as time
--
Regards,
Tom Ogilvy

"Ron - Matrix Investigations"
wrote in message
...
Thanks, I really appreciate the help.

Ron
805-529-8300

"daddylonglegs" wrote:


Is this in one cell or two?

Ideally, if you enter times with a colon i.e. in A1 23:00 and in B1
00:15 then the formula for showing the difference in time is

=B1-A1+(A1B1)

format as time

this will give you

01:15

or if you want 1.25

=(B1-A1+(A1B1))*24

format as number


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:

http://www.excelforum.com/member.php...o&userid=30486
View this thread:

http://www.excelforum.com/showthread...hreadid=508391




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
Converting Standard Time to Military Time in Excel mtvschultz Excel Discussion (Misc queries) 3 May 5th 23 11:42 AM
Is there an XLS function to convert std time to Military time? Carl Excel Worksheet Functions 1 May 20th 09 09:48 PM
Modified IF formula for military time kmariab Excel Worksheet Functions 3 April 13th 08 05:37 PM
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
Show timesheet time in and out in regular time versus military tim John Excel Worksheet Functions 1 November 11th 05 05:14 AM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"