Convert timevalue to text

Numbers 3.6.2

Mac OS X 10.11.6


I need to either display a decimal number created by the timevalue function in the format "hh:mm:ss" or using some formula to create the text equivalent of that time value. The Automatic data format just displays it as a decimal number. I've tried to change the data format to Date & Time but it stays a decimal. I've even tried Date & Time with None for date and "hh:mm:ss" for time but it still displays as a decimal number. Any explanation for why the number is not displayed in time format?


The TIMEVALUE function converts a time entered as text in "hh:mm:ss". There should be an easy way of converting a decimal time value to text in "hh:mm:ss" format. If there is what is it?


I'm usingThanks in advance!

Mac OS X (10.6.8)

Posted on Aug 23, 2016 10:36 PM

Reply
6 replies

Aug 24, 2016 8:00 AM in response to SGIII

The TODAY()+ worked. I guess to format it it needed to be a Date-Time value. I would think that just plain time values would be a data type that Numbers would support. Looks like MS Excel does support just time values. I exported to Excel and was able to format the decimal number as hh:mm:ss without having to add TODAY()+ to the formula.

Aug 24, 2016 8:30 AM in response to drmelzie

drmelzie wrote:


I exported to Excel and was able to format the decimal number as hh:mm:ss without having to add TODAY()+ to the formula.


Yes, handling of date and time is one area where Excel and Numbers differ. Numbers always treats a time or date in a cell as a date-time string. If you format it as "just a date" the time part is still there. And vice versa.


In Numbers using TODAY() results in a date-time string that is today's date with a time of 00:00:00. When you add the decimal time value to that date-time string you get a new date-time string, which you can then format to show either the date or the time, or both.


Numbers has the concept of "duration" values in cells, which can be very handy. Check out the DURATION() function in Numbers, which a completely different animal from the Excel DURATION() that relates to bonds, plus DUR2DAYS(), DUR2HOURS() and other related functions. Using durations in Numbers can simplify date-time math. For examples examples of how durations can be used in formulas see the Calendar and Employee Schedule templates at File > New in your menu.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Convert timevalue to text

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