How to Make Cells Red if a Number Is Less Than Zero in Google Sheets

To make cells turn red when a number is less than zero in Google Sheets, select the cells, click Format > Conditional formatting, set Format cells if to Less than, type 0, pick a red fill or text color, and click Done. Any negative number in that range now turns red automatically, and it changes back if the value goes above zero.

These steps are for Google Sheets in a web browser on a Windows PC, Mac, or Chromebook. The Android app can create the same rule. On an iPhone or iPad, Google says you can see conditional formatting rules but not edit them, so set the rule up on a computer first. You need edit access to the spreadsheet.

How to Make Cells Red if a Number Is Less Than Zero

These steps use conditional formatting, a way to change a cell’s text or background color when it meets a condition.

  1. Open your spreadsheet in Google Sheets on a computer.
  2. Select the cells you want to check, like a column of totals or a profit column.
  3. Click Format > Conditional formatting. A panel opens on the right side of the screen, and the cells you selected appear in the Apply to range box.
  4. Make sure the Single color tab is selected.
  5. Under Format cells if, click Less than. If a rule already exists, click it, or click Add new rule first.
  6. Click the Value or formula box and type 0. Negative cells change color right away as a preview.
  7. Under Formatting style, click the fill color button and choose red. To make only the number red, set the text color to red instead.
  8. Click Done.
Google Sheets conditional formatting panel with a Less than 0 rule and a red fill
Apply a Less than 0 rule to B2:B5 and choose a red fill. Only the two negative example values turn red.

Every cell in the range with a value below zero is now red. A cell that holds exactly 0 stays unchanged, because 0 is not less than 0. Empty cells stay uncolored too, since an empty cell isn’t below zero.

Red Text Only, Without a Red Cell

If you want red numbers but no colored background, set the Fill color to None and pick a shade of red under Text color. This keeps whatever number format you already use, such as a minus sign or parentheses, and only changes the color. You can also click the bold button in Formatting style if you want losses to stand out even more.

Include Zero, or Use a Different Cutoff

To color zero as well as negatives, choose Less than or equal to instead of Less than and keep 0 as the value. To flag only bigger losses, keep Less than and type a different value, such as -100. The Is between option works for a band of values, for example everything from -100 to -1.

Cover More Than One Column

If the numbers sit in separate columns, you don’t need a second rule. In the conditional formatting panel, click Add another range under Apply to range and select the next column. The same red rule then covers both ranges.

Another Way: Make Negative Numbers Red With a Custom Number Format

A custom number format can also color negative numbers. According to Google’s number format guide, a custom format can have up to four parts separated by semicolons: positive, negative, zero, and non-numeric (text). Adding a color in brackets, like [Red], to the negative part turns those numbers red. A good starting format is #,##0.00;[Red]-#,##0.00, which shows negatives in red with a minus sign and two decimal places.

  1. Select the cells.
  2. Click Format > Number > Custom number format.
  3. Type your format into the box at the top. Check the preview under the box to see how a number will look.
  4. Click Apply.

Negative numbers now show in red text. Positive numbers keep the normal text color.

A few useful variations work the same way. The format #,##0;[Red](#,##0) shows negatives in red inside parentheses, a common accounting style. The format #,##0;[Red]#,##0 shows negatives in red without a minus sign, so use it only if the red color alone is enough to tell values apart. For money, $#,##0.00;[Red]-$#,##0.00 keeps the dollar sign on both parts. If you don’t want to change how numbers look at all, General;[Red]General;General;@ turns negatives red while leaving everything else in the default format; the @ in the last part keeps text as it is.

Format colors must be written in English. The supported names are Black, White, Red, Blue, Green, Magenta, Yellow and Cyan, plus Color# with a number from 1 to 56 for other shades. Typing “red” into the custom number format box shows several preset formats with red negatives that you can preview before applying. For more on dollar signs and currency formats, read about using currency formatting in Google Sheets.

Illustration of how a custom number format colors negative numbers red in Google Sheets
Illustration: how a custom number format turns negative numbers red in Google Sheets.

Conditional Formatting vs. Custom Number Format

Both methods update automatically when a value changes. The main differences:

  • Cell color: Only conditional formatting can fill the whole cell with red. A number format can change the text color but not the cell color.
  • Flexibility: Conditional formatting can use other conditions, like less than -100, and you can stack more than one rule on the same range.
  • Display: A number format also controls decimals, separators and parentheses, so you set the look and the color in one place.
  • Busy sheets: If a range already has several conditional formatting rules, a number format avoids rule-order conflicts, because it isn’t part of the rule list.

Pick conditional formatting when you want a red cell or a whole red row. Pick a number format when you only want red numbers and also want to control how they’re written.

How to Make the Whole Row Red if a Number Is Negative

Google’s guide shows how to format an entire row based on one cell, using a custom formula. To turn rows red when the value in column D is below zero, the formula is =$D1<0. The dollar sign locks the column, so every cell in the row checks column D, while the row number changes from row to row. If your data starts on row 2, use =$D2<0 and select from row 2 down.

  1. Select the rows you want to format, for example columns A to E.
  2. Click Format > Conditional formatting.
  3. Under Format cells if, choose Custom formula is.
  4. Type the formula in the Value or formula box.
  5. Choose a red fill and click Done.

Any row with a negative number in column D turns red. Google also notes that custom formulas can only refer to the same sheet; to check a cell on another sheet, you need the INDIRECT function.

Once the rows are red, you can create a filter in Google Sheets and use Filter by color to show only those rows.

How to Do It in the Google Sheets App on Android

  1. Open the spreadsheet in the Google Sheets app and select the range.
  2. Tap the Format icon, then tap Conditional formatting.
  3. Under Format cells if, tap Less than. If the range already has a rule, tap Add first.
  4. Tap Value or formula and enter 0.
  5. Tap the red box under the formatting style, then tap Done.

On an iPhone or iPad, the red color from a rule you made on a computer still shows up in the app, but you can’t add or change rules there.

How to Copy the Rule to Other Cells

Copying and pasting a formatted cell also pastes its rules, according to Google. To copy only the rule without the values, copy the formatted cells, select the new cells, and click Edit > Paste special > Conditional formatting only. To cover new rows instead, open the rule and change the Apply to range box, for example from B2:B20 to B2:B500.

How to Edit or Remove the Rule

Select the cells and click Format > Conditional formatting to see the rules. Click a rule to change the value or color. To delete it, point to the rule and click Remove (the trash icon), as described in Google’s conditional formatting guide. Removing a rule only takes the color away; your numbers stay the same.

To remove a custom number format, select the cells and choose Format > Number > Automatic or another standard format.

When Some Negative Cells Aren’t Red

  • Some negative cells aren’t red: Check the range in the Apply to range box. New rows added below the range won’t be covered until you extend it.
  • A different color shows up: Google evaluates rules in the order listed, and the first rule that is true sets the format. Drag the red rule higher in the list. A fill color you applied by hand can also hide the rule’s color.
  • The rule spread to other cells: Copying and pasting cells with formatting rules also pastes the rules. You can use this on purpose to copy the rule to new data.
  • Numbers stored as text: A value that Sheets reads as text, such as one with an apostrophe in front of it or an amount pasted from a website, may not be treated as a number by a Less than rule. Text usually lines up on the left side of the cell, which is a quick way to spot it. Convert it to a number and check again.
  • You can’t find Conditional formatting: You may have view-only or comment access, or you’re in the iPhone or iPad app. Ask the owner for edit access or open the file in a browser on a computer.

Sheets Conditional Color Questions

Will the cells change back if the number becomes positive?

Yes. Both conditional formatting and custom number formats are dynamic, so a cell loses its red color as soon as its value is zero or higher.

Can I make positive numbers green at the same time?

Yes. With conditional formatting, add a second rule using Greater than and 0 with a green color. With a number format, put a color in the positive part too, such as [Green]#,##0;[Red](#,##0).

Does the red color show up when I print or download the sheet?

Yes. Colors from conditional formatting and number formats are part of the sheet’s formatting, so they appear in File > Print and in a PDF download.

Does turning a cell red change the number in it?

No. Both methods only change how the cell looks. Formulas such as SUM still use the real value.

Related Guides