- Can TO_DOLLARS format negative numbers and display them differently?
- Yes. Negative values display as -$XX.XX by default in most locales. Some regional settings or custom formatting may display negative currency as ($XX.XX) in red or with other visual distinctions. The exact format depends on your spreadsheet locale settings and whether custom number formatting is applied.
- What happens when I use TO_DOLLARS with very large numbers or numbers with many decimal places?
- TO_DOLLARS formats the number as currency, adding commas as thousands separators and rounding to exactly two decimal places. Very large numbers like 1000000 display as $1,000,000.00. Extremely large numbers beyond 10^15 may lose precision, and numbers with more than two decimal places are rounded to the nearest cent.
- Can I use TO_DOLLARS in conditional formatting rules or data validation lists?
- TO_DOLLARS returns a text string, which works for displaying formatted values in cells but not for conditional formatting rules that expect numeric comparisons. Use the original numeric value for rules (IF(value > 100)), then format only the display with TO_DOLLARS. Data validation can reference TO_DOLLARS results but won't validate based on currency formatting.
- How do I combine TO_DOLLARS with aggregation functions like SUM, AVERAGE, or other calculations?
- Nest TO_DOLLARS outside the aggregation function: =TO_DOLLARS(SUM(A1:A10)), =TO_DOLLARS(AVERAGE(B2:B5)), or =TO_DOLLARS(IF(condition,value1,value2)). The inner function computes first, then TO_DOLLARS formats the result as currency. Never put TO_DOLLARS inside the aggregation, as the function expects numeric input.