Converting Numbers into Currency Strings (DOLLAR)

Syntax: DOLLAR(Value; Decimal_Places)

The DOLLAR function converts the given value into text in currency format. For example:

=DOLLAR(1,000,000; 2)

returns $1,000,000.00.

images

Figure 10-2. Sample result of the DOLLAR function

The second argument indicates the number of places past the decimal point. Why is that important? Well, it is good for making headlines such as A Cool $1,000,000.00 in Sales!, which you could code as

="A cool "&DOLLAR(1,000,000; 2)&" in Sales!"

Get Beginning OpenOffice Calc: From Setting Up Simple Spreadsheets to Business Forecasting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.