1. Home
  2. Functions
  3. Text
  4. DOLLAR

DOLLAR function

Formats a number as currency text, rounded to the given number of decimals.

Syntax

=DOLLAR(number, [decimals])

Arguments

ArgumentRequiredDescription
numberRequiredThe number to format
decimalsOptionalDigits 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 "$1,234.57"
=DOLLAR(1234.567, -2)Result "$1,200"
=DOLLAR(-0.123, 4)Result "($0.1230)"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.