Contact

DOLLAR Function in LibreOffice Calc — Tested Examples

Text Beginner LibreOffice Calc

Format currency text with LibreOffice DOLLAR. Compare decimal and negative-place rounding, preserve numeric totals and understand locale-dependent symbols and display.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: DOLLAR rounds a number and returns locale-dependent currency text. Negative decimal places round to tens, hundreds and larger positions.

Availability and version history

  • Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Converts a number to text in currency format. With the test locale, 1234.5 formatted to two currency decimals becomes $1,234.50, as a text string.

Syntax and arguments

=DOLLAR(Value [; Decimals])

Square brackets mark optional arguments; do not type the brackets. Separate arguments with semicolons (;).

Argument Explanation
Value Number, numeric cell reference or expression to convert to currency-formatted text.
Decimals Optional decimal-place count. Omission uses two places.

The currency and decimal separator follow the locale settings. The result is text, rather than a new numeric currency amount.

Official DOLLAR syntax and arguments.

Worked examples

Example 1: Format a number as currency text in an English-language locale

=DOLLAR(1234.5;2)

Expected result: $1,234.50. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

With the test locale, 1234.5 formatted to two currency decimals becomes $1,234.50, as a text string.

Mistakes and troubleshooting

  • Check inputs and assumptions: Currency symbols and thousands separators depend on locale. Use number formatting if the value must remain numeric.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

Additional worked application and edge cases

Stepwise example: round at different decimal positions

Use an English (USA) locale with USD currency, matching the symbol convention in the historical example. Put numeric 1234.56 in A2 and place the following formulas in B2:B5.

Formula Independently expected text under that locale/currency
=DOLLAR(A2;2) $1,234.56
=DOLLAR(A2;0) $1,235
=DOLLAR(A2;-1) $1,230
=DOLLAR(A2;-2) $1,200

Negative Decimals rounds to the left of the decimal point: -1 to tens and -2 to hundreds. The pinned Calc source then displays zero decimal places for these negative-place requests. These strings are conditional expectations, not fresh tests of the current local currency configuration.

Second example: distinguish the numeric input from output text

With numeric10.25 in D2 and numeric20.25 in D3, =DOLLAR(SUM(D2:D3);2) is expected as $30.50 under the same locale. Sum the underlying numbers first, then format the reporting text.

If DOLLAR results are stored in a separate text column, ordinary numeric aggregation of that column is not a reliable substitute for aggregating D2:D3. Keep a numeric calculation column for totals, sorting and further arithmetic. Apply a cell currency format instead when the value must remain numeric.

Advanced application: a readable report label

With the total formula above, ="Quoted total: "&DOLLAR(SUM(D2:D3);2) gives the conditional expected label Quoted total: $30.50. This is a useful final reporting string, but it no longer contains a directly usable numeric total as its cell value.

Rounding each line before summing can produce a different amount from rounding a full-precision total. Decide which rule the report requires and keep the numerical rounding step visible. DOLLAR should not silently define an accounting policy for you.

Locale is part of the example input

The official Help gives distinct DOLLAR(255) strings for English/USA with USD, Japanese with JPY, and German/Germany with EUR. The function name does not force a US dollar symbol. Currency choice, separators and symbol placement are controlled by locale/currency settings.

Do not interpret a changed symbol as currency conversion: DOLLAR has no exchange-rate argument. Formatting255 as dollars or euros leaves the numeric magnitude255 unchanged. This guide did not change any system or document locale setting.

Decimal limits and errors

The inspected 26.8.1.1 source floors a supplied decimal-place argument to an integer and rejects results outside -15 through15. To avoid surprising behavior with fractional negative arguments, supply an explicit integer. This is source-reviewed behavior, not a new native boundary test.

The same source rounds the numeric value before formatting. Binary floating-point input can complicate apparent decimal midpoint cases, so the examples deliberately avoid claiming exact behavior for every decimal tie. Missing or invalid numeric inputs and unsupported decimal settings should be diagnosed rather than converted into plausible-looking currency text.

Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.

COUNT · AVERAGE · SUM

Tested version and primary reference

1 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.

Detailed reference checked October 17, 2026