Input number, then auto-formatted as HH:MM

smallxyz

Active Member
Joined
Jul 27, 2015
Messages
393
Office Version
  1. 2021
Platform
  1. Windows
Hi,


When I input 8 on a cell, how do I configure it to be auto-display as 08:00?


Also, when I input 16 on a cell, it will display as 16:00?

Similarly, when I input 24 on a cell, it will display as 00:00?


Thanks.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You can do this with a calculation, eg;
Cell A1 = 16 (you want that to read 16:00)
you can put a formula in Cell B1 ' =A1*(1/24)

this will return the value of ' 0.666666666666667 '

but if you format Cell B1 as a 'Time' you can use the preset ones in the ribbon at top of your workbook, or you can right click the cell, go to "Format cells..." and click Custom and choose the 'hh:mm' selection and your cell will display 16:00

drROq4.jpg
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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