Entering hours and minutes into cell without using ":&q

PureCrazed

New Member
Joined
Oct 7, 2005
Messages
30
Is there a way to format the cell where you can enter time without typing a colon?? My current format is [h]:mm but I have to enter the time exactly as 8:00 in order for the cell to read it as a time.

I want to be able to just enter a number and have it translate to time...

Example: enter "800" and excel will format it to look like "8:00" or enter "1700" and excel format it to "5:00" (I have to use military time to represent pm so it differs from am)...
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Hey erik, I was going to post the same link :rolleyes:

With formatting alone you can make 800 look like 08:00 with a custom format of

00\:00

but the underlying value will still be 800 if you use it in a calculation...
 

Forum statistics

Threads
1,141,153
Messages
5,704,607
Members
421,359
Latest member
Edwardvanschothorst

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
Top