### Excel TIMEVALUE Function

##### Associated Files Download Links

In this Article

This Excel Tutorial demonstrates how to use the **Excel TIMEVALUE Function** in Excel to convert a time stored as text into a valid time, with formula examples.

## TIMEVALUE Function Description:

The TIMEVALUE Function Converts a time stored as text into the time’s corresponding serial number.

## Formula Examples:

Example | Formula | Result |
---|---|---|

AM | =TIMEVALUE(C5) | 0.208333333333333 |

PM | =TIMEVALUE(C6) | 0.708333333333333 |

## Syntax and Arguments:

The Syntax for the TIMEVALUE Formula is:

1 |
=TIMEVALUE(time_text) |

### Function Arguments ( Inputs ):

**time_text** – The time stored as text. Example “6:00:00”

## Additional Notes

Enter time stored as text.

The time-serial number stores time as a fraction of the day. Example: 8:00AM would be .3333.

The result of the TIME Function may appear as a decimal number. Change the cell Number Formatting to TIME to display the time:

## TIMEVALUE Examples in VBA

You can also use the TIMEVALUE function in VBA. Type:

`application.worksheetfunction.timevalue(time_text)`

For the function arguments (time_text, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

## How to use the TIMEVALUE Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:

`=AND(`

After entering it in the cell, notice how the AND formula inputs appear below the cell:

You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=TIMEVALUE(” into a cell, without leaving the cell, use the shortcut **CTRL + A** (**A** for **A**rguments) to open the “Insert Function Dialog Box” for detailed instructions:

For more information about the TIMEVALUE Formula visit the

Microsoft Website.