Syntax
=DOLLAR(number, [decimals])Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | The number to format |
decimals | Optional | Digits after the decimal point (2 when left out; negative rounds to the left) |
How to use DOLLAR
DOLLAR takes 1 required argument and 1 optional argument. Type =DOLLAR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DOLLAR(1234.567, 2)Result =DOLLAR(1234.567, -2)Result =DOLLAR(-0.123, 4)Result Related text functions
- CODEReturns the code number of the first character of a text.
- CONCATJoins texts and the values of whole ranges into one text.
- CONCATENATEJoins several texts into one.
- DBCSChanges half width (single byte) letters, digits and katakana to full width (double byte) characters.
- EXACTChecks whether two texts are exactly the same, including upper and lower case.
- FINDReturns the position of one text inside another, matching upper and lower case exactly.
- FINDBSame as FIND, counting bytes; without a double byte language set as default each character counts as one byte.
- FIXEDRounds a number to a number of decimals and returns it as text, with or without thousands separators.
- JISChanges half width (single byte) characters to full width (double byte) characters.