# RTD Function

> Retrieve real-time data from a COM server with RTD in TX Sheet Control, which needs application data from a formula provider and returns #N/A without it.

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

---

Retrieve real-time data from a program that supports COM automation, as in Excel for Windows. `progID` is the registered program ID of the real-time data server, `server` the computer that runs it (empty for the local computer) and `topic1`, `topic2` and the further arguments the data to retrieve. RTD requires host-provided data or an Excel-specific object: it calculates only when the application supplies the data through a formula provider and returns `#N/A` otherwise.

### Syntax

```text
RTD(progID, server, topic1, topic2)
```

Category: Lookup. Minimum arguments: 3. Maximum arguments: 255.

> Important
>
> **Application Data or Provider Required.** Configure the documented provider rather than expecting automatic network or Excel-service access.

### Examples

```text
=RTD("provider","","topic")
```

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:** [RSQ Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rsq/llms-full.txt)
- **Next:** [SCAN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/scan/llms-full.txt)
