# DOLLAR Function

> Convert a number to currency text with the DOLLAR formula function of TX Sheet Control: rounding with decimals, negative numbers in parentheses and limits.

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

---

Convert a number to text in currency format. `number` is rounded to `decimals` places, 2 when omitted; a negative `decimals` rounds to the left of the decimal point. The text has a dollar sign and thousands separators, and a negative number is shown in parentheses. DOLLAR takes at most two arguments: the `no_commas` argument in the syntax is not supported and returns `#VALUE!`.

### Syntax

```text
DOLLAR(number, decimals, no_commas)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=DOLLAR(1234.567,2)
```

The formula returns the text $1,234.57.

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:** [DMIN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dmin/llms-full.txt)
- **Next:** [DOLLARDE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dollarde/llms-full.txt)
