custom time format - 12 hr without am/pm

istril

Board Regular
Joined
Aug 15, 2008
Messages
109
I'd like my times to display as h:mm, but on a 12 hour format, WITHOUT the AM or PM trailing it. I fooled around with the custom time formats, but I'm having trouble doing this without it getting converted to military time.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
What did you try?

You should just be able to use hhmm or hh:mm.
 
Upvote 0
I tried both of those, and [h]:mm. they all give military time. if you dont put the am or pm, it seems excel wants to force you to use military time.
 
Upvote 0
Sorry, are you using the AM/PM or is it Excel that is formatting the time as AM/PM?

What are the times you are trying to format?
 
Upvote 0
In custom formats, if you just enter h:mm, it will give you military time. You have to put in h:mm AM/PM in order to display 12 hour time, that i've seen. I'm wondering if there is a code, etc., that will specify 12 hour time without the need for the AM/PM.

when I enter the time into the cells, I'll type, for example, "6 pm" and it is spitting out "6:00 PM". It shouldn't matter what I type, though. If excel recognizes it as a time, it should then format it how I specify, and it does. I just don't know how to tell it to format it the way I want it.
 
Upvote 0
Well when I type 6 pm I get 6:00PM and when I format it as hh:mm I get 18:00.:)
 
Upvote 0
Yes, as do I. That is exactly my problem. How do you make the VALUE of 18:00 hours APPEAR as 6:00?
 
Upvote 0
Sorry you've lost me.

Is 18:00 hours an actual time or a count/sum/calculation of hours/minutes?
 
Upvote 0
Eh, I know that.:)

You really need to give some examples, in your last post you said 'How do you make the VALUE of 18:00 hours APPEAR as 6:00?'.

What are you typing? What are you formatting?<!-- / message -->
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top