Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to format the cell value red if negative and green if positive in Excel?

If there are a long list of numbers in your worksheet, now, you want to format the negative values as red font and positive numbers ad green font for viewing them easier. In Excel, there are some methods for dealing with this job quickly and easily.

Format the cell value red if negative and green if positive with Format Cells function

Format the cell value red if negative and green if positive with Conditional Formatting function


Format the cell value red if negative and green if positive with Format Cells function

The Format Cells function in Excel can help you to format the values as specific color based on the positive or negative numbers, please do as this:

1. Select the list of cells that you want to use, and then right click to choose Format Cells from the context menu, see screenshot:

2. In the Format Cells dialog box, click Custom from the Category list pane, and then enter [Green]General;[Red]-General;0 into the Type text box, see screenshot:

Note: General means positive numbers, -General indicates negative numbers, [Green], [Red] are the font colors you want, you can change the font color to your need. For example, you can use [Blue], [Yellow] etc.

3. Then click OK button, the negative numbers format as red font, and positive numbers are changed to green font, see screenshot:


Format the cell value red if negative and green if positive with Conditional Formatting function

In Excel, to solve this task, the Conditional Formatting also can do you a favor, please do as this:

1. Select the numbers that you want to use, and then click Home > Conditional Formatting > Greater Than, see screenshot:

2. In the Greater Than box, enter 0 into the text box, and then choose Custom Format from the drop down list, see screenshot:

3. Then, in the popped out Format Cells dialog box, click Font tab, and then choose one color that you want to use, see screenshot:

4. And then, click OK button, and close the Greater Than box, the positive numbers have been formatted a specific font color you like.

5. Then, please go on clicking Home > Conditional Formatting > Less Than, in the Less Than box, enter 0 into the text box, and then choose Red Text from the drop down list, see screenshot:

6. And all the negative numbers have been formatted as red font at once.


More relative number format articles:

  • Format Numbers In Thousands, Million Or Billions In Excel
  • Supposing, you have a list of large numbers, now, you want to format them in thousands, millions or billions to make them look neat and concise as following screenshot shown. This article, I will talk about how to format numbers in thousands, millions or billions quickly in Excel.
  • Format Number As Ordinal (1st 2nd 3rd ) In Excel
  • In some cases, we need to format number as 1st, 2nd, 3rd, etc. when we rank as below screenshot shown. However, do you know how to format these cardinal numbers as ordinal numbers in Excel? In general, there is no built-in function to convert number as 1st in Excel, but, here I can introduce some tricks on this problem.
  • Apply Data Validation To Force Phone Number Format In Excel
  • May be, there are various phone number formats can be used when typing into the Excel workbook. But, how could you only allow one phone number format to be entered in a column of worksheet? For example, I just want the phone number as this format 123-456-7890 to be allowed entering in a worksheet.


  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns and Keeping Data; Split Cells Content; Combine Duplicate Rows and Sum/Average... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Favorite and Quickly Insert Formulas, Ranges, Charts and Pictures; Encrypt Cells with password; Create Mailing List and send emails...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • Pivot Table Grouping by week number, day of week and more... Show Unlocked, Locked Cells by different colors; Highlight Cells That Have Formula/Name...
kte tab 201905
  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.