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.
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:
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.
- Format Part Text As Superscript Or Subscript Within A Cell
- Have you ever tried to format part text as superscript or subscript in a single cell as below screenshot shown? Here I will introduce the tricks to quickly format part text within a cell.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 months agohow can you get a darker color GREEN...the default is fluorescent and hard to see for older eyes!