# Highlighting Negative Numbers

/text/scalc/guide/cellstyle_minusvalue.xhp
negative numbers
numbers; highlighting negative numbers
highlighting;negative numbers
colors;negative numbers
number formats;colors for negative numbers
MW made "negative numbers;" a one level entry
MW changed "numbers formats;" and "colors;"
Highlighting Negative Numbers
You can format cells with a number format that highlights negative numbers in red. Alternatively, you can define your own number format in which negative numbers are highlighted in other colors.
- Select the cells and choose Format - Cells.
- On the Numbers tab, select a number format and mark Negative numbers red check box. Click OK.
The cell number format is defined in two parts. The format for positive numbers and zero is defined in front of the semicolon; after the semicolon the formula for negative numbers is defined. You can change the code (RED) under Format code. For example, instead of RED, enter YELLOW. If the new code appears in the list after clicking the Add icon, this is a valid entry.