Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How does time formatting work? How can I get it to change numbers into times automatically?

I'm keeping track of my work hours with numbers and I want to be able to quickly type in my start and end times and have numbers convert it to a time automatically.

For example, I want to type "9" and have it show up at "9:00AM" or "16" and have it show as "4:00" to save time.

Is this possible?

Thanks!

MacBook, OS X Mavericks (10.9)

Posted on Jul 7, 2015 1:34 PM

Reply
Question marked as Best reply

Posted on Jul 7, 2015 4:47 PM

Format the cell(s) using the cell date & time format option. Select date to be "None". Set the time to be the format you want to display. When you type in your time you will need to use a colon after the number as in 9: the entry will then convert to 9:00 AM. a 16: will be displayed as 4:00 PM


I hope this helps

2 replies

Jul 7, 2015 6:45 PM in response to lioness77

Hi lioness,


Here are two possible solutions.


Assuming that your main goal is to determine the number of hours you worked, do you really need to have the entered numbers display as "Time", or would a four digit number with no punctuation, as shown in this example below, serve the purpose?


User uploaded file

This would require entering the three or four digits, but would eliminate the need to include the colon. The result, shown in column C, is calculated using a formula proposed just yesterday by Hiroto in answer to a similar question, Calculate hours worked, with a slight revision by me.


=INT(B2/100)+MOD(B2,100)/60-(INT(A2/100)+MOD(A2,100)/60)



Adding an assumption that your example, with the work period starting and ending exactly on the hour, you could enter only the one or two digits specifying the hour, calculate the hours worked directly from those entries, and use a separate calculation to display a text string representing the time of day in 'standard' notation.


User uploaded file

C2: =A2&":00"

D2: =B2&":00"


E2: =B-A

E3: =D-C

I was surprised to see that although the formulas in C2 and D2 (and in C3 and D3) produce text values, NOT Date and Time values, Numbers does return the correct Duration value when asked to subtract C3 from D3 in row 3.


Regards,

Barry

How does time formatting work? How can I get it to change numbers into times automatically?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.