Format Negative Numbers in Red with Brackets in Calc

This guide explains how to format negative values in LibreOffice Calc so they appear in red text and are enclosed within custom brackets. By utilizing custom number format codes, you can enhance the readability of your financial sheets, budgets, and data reports without altering the underlying numerical values.

Step-by-Step Instructions

  1. Select the Target Cells
    Highlight the cells, rows, or columns containing the numbers you want to format.

  2. Open the Format Cells Menu
    Right-click the selected area and choose Format Cells… from the context menu (or press Ctrl + 1 / Cmd + 1 on macOS).

  3. Navigate to Numbers Settings
    In the Format Cells dialog box, select the Numbers tab.

  4. Select the User-defined Category
    In the Category list on the left, click User-defined.

  5. Enter the Custom Format Code
    In the Format code input field at the bottom of the dialog, enter your desired structure. Calc uses the syntax Positive;Negative;Zero.

    • For standard accounting parentheses:
      #,##0.00;[RED](#,##0.00)

    • For square brackets:
      #,##0.00;[RED]"["#,##0.00"]"

    • For curly braces:
      #,##0.00;[RED]"{"#,##0.00"}"

    • For integer-only display (no decimals):
      #,##0;[RED](#,##0)

  6. Save and Apply
    Click the OK button.

Format Code Breakdown