# TIMEVALUE Function

> Convert a time written as text into a time serial number with TIMEVALUE in TX Sheet Control: accepted formats, dates, #VALUE! and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > TIMEVALUE Function
- **222 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/timevalue/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/timevalue/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/timevalue/llms-full.txt

---

Convert a time in text form to a time serial number. `date_text` is a time such as `"12:30"`, `"12:45:39"` or `"6:45 PM"`; the result is the fraction of a day. Text that isn't a time returns `#VALUE!`. A date alone returns 0. In TX Sheet Control, a date and time in one text, such as `"2026-10-09 06:00"`, also returns 0.

### Syntax

```text
TIMEVALUE(date_text)
```

Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=TIMEVALUE("6:45 PM")
```

The formula returns 0.78125, which displays as 6:45 PM with a time format.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [TIME Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/time/llms-full.txt)
- **Next:** [T.INV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/t-inv/llms-full.txt)
