ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Military Time (https://www.excelbanter.com/excel-discussion-misc-queries/65872-military-time.html)

exsam21

Military Time
 

Is it possible for me to enter "1353" in cell A1 and it will
automatically display 1:53PM in cell A1? This would help a bunch.
Thanks.


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502566


Dave Peterson

Military Time
 
Chip Pearson has some code that may help you:
http://cpearson.com/excel/DateTimeEntry.htm

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

exsam21 wrote:

Is it possible for me to enter "1353" in cell A1 and it will
automatically display 1:53PM in cell A1? This would help a bunch.
Thanks.

--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502566


--

Dave Peterson

exsam21

Military Time
 

Thank you very much!


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502566


Gary L Brown

Military Time
 
I can't think of a way except via macro but you could use a formula in B1
formated the way you want...
=TIMEVALUE(LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2))

HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"exsam21" wrote:


Is it possible for me to enter "1353" in cell A1 and it will
automatically display 1:53PM in cell A1? This would help a bunch.
Thanks.


--
exsam21
------------------------------------------------------------------------
exsam21's Profile:
http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=502566




All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com