ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time formatting in Excel 2003 (https://www.excelbanter.com/excel-discussion-misc-queries/237007-time-formatting-excel-2003-a.html)

akg

Time formatting in Excel 2003
 
How can I format a cell in Excel 2003 using 12-hour format but without
displaying AM/PM?
For example, for 1:00 in the afternoon (1:00 PM or 13:00), I would like to
display just " 1:00 " (without the quotation marks); not " 1:00 PM "; not "
13:00 ".
Is there a way to format the cell(s) to display time in this way?

Dave Peterson

Time formatting in Excel 2003
 
I don't think it's possible using a numberformat alone.

Can you use a different cell and a formula?

=LEFT(TEXT(A1,"hh:mm AM/PM"),5)
(with leading 0's.)

akg wrote:

How can I format a cell in Excel 2003 using 12-hour format but without
displaying AM/PM?
For example, for 1:00 in the afternoon (1:00 PM or 13:00), I would like to
display just " 1:00 " (without the quotation marks); not " 1:00 PM "; not "
13:00 ".
Is there a way to format the cell(s) to display time in this way?


--

Dave Peterson

akg

Time formatting in Excel 2003
 
Works like a charm! Perfect!

Thank you Dave. --akg

"Dave Peterson" wrote:

I don't think it's possible using a numberformat alone.

Can you use a different cell and a formula?

=LEFT(TEXT(A1,"hh:mm AM/PM"),5)
(with leading 0's.)

akg wrote:

How can I format a cell in Excel 2003 using 12-hour format but without
displaying AM/PM?
For example, for 1:00 in the afternoon (1:00 PM or 13:00), I would like to
display just " 1:00 " (without the quotation marks); not " 1:00 PM "; not "
13:00 ".
Is there a way to format the cell(s) to display time in this way?





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

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