LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Calculating Military Time

Just put =NOW() in the cell, and apply a custom format of:

mm/dd/yyyy hh:mm

to the cell.

Hope this helps.

Pete

On Feb 16, 4:47*pm, Joe Wildman
wrote:
I have the same problem, I was able to use this code but i am unable to edit
it because it is a formula, =MONTH(NOW()) & "/" & DAY(NOW()) & "/" &
YEAR(NOW()) & " " & HOUR(NOW()) &
":" & MINUTE(NOW())

maybe there is some way to create an input cell as to drop it into the coded
cell as to default to the format needed, my problem is i can't get rid of the
seconds, but also need a way to edit the time,



"Chip Pearson" wrote:
2nd answer : try =ABS(B2-A2).


That will give an incorrect result if B2 is less than A2, as in start
at 22:00 and end at 5:00.


Cordially,
Chip Pearson
Microsoft Most Valuable Professional
* * Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Sat, 14 Feb 2009 23:58:00 -0800, xlmate wrote:


1st answer : try using the format hh:mm
2nd answer : try =ABS(B2-A2).


HTH- Hide quoted text -


- Show quoted text -


 
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
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
Converting Standard Time into Military Time mtvschultz Excel Discussion (Misc queries) 3 February 15th 08 07:34 PM
Show timesheet time in and out in regular time versus military tim John Excel Worksheet Functions 1 November 11th 05 05:14 AM
Military Time Sue Excel Worksheet Functions 2 May 2nd 05 05:45 PM


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