TIMEVALUE()

SyntaxTIMEVALUE(time_text)

Definition. This function converts a time formatted as text into a time value (serial number). The serial number is a value in the range of 0 through 0.99999999 and corresponds to a time from 00:00:00 through 23:59:59.

Arguments

  • Time_text (required). A text value in any Excel time format. Dates in the time argument are ignored.

Background. If a time is formatted as text (for example, in values that have been imported), use the TIMEVALUE() function to convert the time into a serial number. You can use the result for other calculations.

Most functions convert times formatted as text automatically into serial numbers, but if you use imported data or worksheet functions from a third-party add-in, this might not always be true. To ensure that a date is converted, use the TIMEVALUE() function.

Example. Assume that after some values have been imported, they appear as text in a time column. So that they can be used in other calculations, the values have to be converted into numeric time values. The formula

=TIMEVALUE("06:00:00")

returns the time value 0.25 or 06:00, formatted in the number format hh:mm. This value is a time value in the Excel time system. Here are a few more examples:

  • =TIMEVALUE("06:00 PM") returns 0.75.

  • =TIMEVALUE("06:45:16") returns 0.281435185.

  • =TIMEVALUE("12:00:00") returns 0.5.

See Also

DATEVALUE(), HOUR(), MINUTE(), NOW(), SECOND(), TIME()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.12.232