Custom Format for 24 hour time

Livin404

Well-known Member
Joined
Jan 7, 2019
Messages
743
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Greetings,

I am trying to use a custom format to show 24 hr time in excel. For example 0325 or 0011. I can use 'text format', but that allows a green triangle to appear in the cell, or even a zip code, but I'm trying to do this right. I did use a Custom format like hhmm but ended up with zeros. I know there is a code in the cell format I can use. I just can't remember it.

Any assistance will be great.
Thank you
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
a guess
T201810a.xlsm
BCDE
1StartEndTime
2730120004:30:00Format as Time
3
1b
Cell Formulas
RangeFormula
D2D2=TEXT(C2,"00\:00")+0-TEXT(B2,"00\:00")+0
 
Upvote 0
Hi I just used 0000 at that seemed to work great. It was from Custom Format.
 
Upvote 0
Hi I just used 0000 at that seemed to work great. It was from Custom Format.
If that is the case then they are numbers, not times. This means that they will be 100 minute hours if you do any calculations using those times.
 
Upvote 0
If that is the case then they are numbers, not times. This means that they will be 100 minute hours if you do any calculations using those times.
That does make since. Fortunately, in my case it is fine. I did not want to use Text format otherwise it would have game be those green triangles in the corner. Thank you for your help.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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