LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default change regular 24 hour format to military time in excel

On Jun 12, 7:39 pm, kidsmeasy
wrote:
I appreciate all the help but I guess I'm just not getting it. I trying to
create a time sheet and I want to use military time to represent the start
time and end time.


Excel can easily handle military time without any adjustments. But it
does need to be entered with a colon, otherwise it doesn't recognize
"time" at all.

To skip the colon, you would need to be able to use other cells with
more complex formulas to be able to add up the time for a time sheet.
This will turn "1800" or "0600" into the appropriate times so Excel
can understand them:
=TIME(LEFT(A1,LEN(A1)-2),RIGHT(A1,2),)

Then you can use that formula on both start and end times and subtract
to get hours worked. Assuming B1 is end time and A1 is beginning time.
=TIME(LEFT(B1,LEN(B1)-2),RIGHT(B1,2),)-
TIME(LEFT(A1,LEN(A1)-2),RIGHT(A1,2),)

And then you can format the output cell as "hhmm" to get that to show
without the colon.
 
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
How to I convert standard time to Military or 24 hour format? Nacho Excel Discussion (Misc queries) 5 June 28th 06 07:14 PM
convert military time to regular hours Kathy Excel Worksheet Functions 1 April 25th 06 01:20 PM
getting military time format within excel dgarrison Excel Discussion (Misc queries) 3 December 25th 05 10:47 PM
Show timesheet time in and out in regular time versus military tim John Excel Worksheet Functions 1 November 11th 05 05:14 AM
how do you subtract military time? example 12:00 - 07:00 = 5 hour. Bill Excel Worksheet Functions 1 October 27th 04 08:25 PM


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