Time without "AM" or "PM"

moebfd

New Member
Joined
Nov 3, 2024
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
Hi All,
Hope you are fine and well.
I would like to display the time in 12 hour format without the "AM" or "PM" (after the time).
Is there anyway to do this.
Kind regards
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Right click cell
Format cells
Custom
h:mm
 
Upvote 0
you will have to change to text , there is not a format to do this as far as i know - as excel would need to know if 10:00 or 22:00 for time calculations

did you ask this as part of another question on excelforum.com ???

This will still use TIME - but only 0:0 to 12:59 - format as H:mm

=IF(A2>=13/24,A2-0.5,A2)
=MOD(A2-1/24,0.5)+1/24

Book4
ABC
1
21:001:001:00
31:301:301:30
42:002:002:00
52:302:302:30
63:003:003:00
73:303:303:30
84:004:004:00
94:304:304:30
105:005:005:00
115:305:305:30
126:006:006:00
136:306:306:30
147:007:007:00
157:307:307:30
168:008:008:00
178:308:308:30
189:009:009:00
199:309:309:30
2010:0010:0010:00
2110:3010:3010:30
2211:0011:0011:00
2311:3011:3011:30
2412:0012:0012:00
2512:3012:3012:30
2613:001:001:00
2713:301:301:30
2814:002:002:00
2914:302:302:30
3015:003:003:00
3115:303:303:30
3216:004:004:00
3316:304:304:30
3417:005:005:00
3517:305:305:30
3618:006:006:00
3718:306:306:30
3819:007:007:00
3919:307:307:30
4020:008:008:00
4120:308:308:30
4221:009:009:00
4321:309:309:30
4422:0010:0010:00
4522:3010:3010:30
Sheet1
Cell Formulas
RangeFormula
B2:B45B2=IF(A2>=13/24,A2-0.5,A2)
C2:C45C2=MOD(A2-1/24,0.5)+1/24
 
Upvote 1
etaf,

Your complicated approach is quite unnecessary. As Logit and I posted, all you need is the custom h:mm time format.
 
Upvote 0
Hi Macropod
Unfortunately that did not work. When inputting a time of say 13:04 and changing the formatting to h:mm it would leave it as 13:04, where as I wanted it to display 1.04 with the AM and PM.
Kind regards
 
Upvote 0

@Macropod

Your complicated approach is quite unnecessary. As Logit and I posted, all you need is the custom h:mm time format.
Well, that was to answer the OP question - OP does not want to show 13:00 to 24:00 and just see 1-12 again for PM times
hence the Complicated Approach

I did see this question in excedforums after a solution for a different question on time had been applied - but cant find it now
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,105
Members
453,021
Latest member
Justyna P

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