How to Show Negative Numbers in Excel (5 Ways)

To show negative numbers in Excel:

  1. Select the whole data range containing negative numbers.
  2. Click on the Home tab > Number group > Accounting Number Format icon.

Now you can see the negative numbers are inside the first bracket in the Accounting format.


Any number which is less than 0 (zero) is a negative number. Usually, this type of number refers to decreasing or lowering in quantity. We often use negative numbers to show a loss in business, penalty values, decrease in temperature, etc.

In this Excel tutorial, you will learn how to show negative numbers in Excel.

The following image illustrates the before-after scenario of showing negative numbers in Excel. Applying the Accounting format to the following dataset displays the negative numbers inside parenthesis.

Accounting Format Before After

5 Ways to Show Negative Numbers in Excel

You can use various predefined or custom number formats, Conditional Formatting, and VBA code to show negative numbers in Excel.

Here are 5 different methods to show negative numbers in Excel:

Using Parenthesis

There are some built-in formats in Excel to show negative numbers differently. One of them is showing them with parentheses. This option is available for cells that are Number or Currency formatted.

To show negative numbers with parenthesis, follow the steps below:

  1. Select the data range containing negative numbers.
  2. Click on the Number Format icon in the Number group.
    Selecting Number Formats to Open Format Cells Dialog Box
    As a result, the Format Cells dialog box will appear.
  3. In the Format Cells dialog box:
    • Choose Number from Category.
    • Select the option with parentheses.
    • Click OK.

    Choosing Format with Parentheses for Negative Numbers

Now, look at the dataset. All the negative numbers are in parentheses.

Negative Numbers Showed with Parenthesis

Note: We can also avail of the Format Cells by using the keyboard shortcut Ctrl+1.

Read More: How to Add Negative Numbers in Excel

Using Custom Formatting

Using Custom formatting in Excel for showing negative numbers provides visual distinction by applying user specific styles, such as color variations, etc.

Let’s have a look at the procedure for applying Custom formatting to the negative numbers below:

  1. Select the cells containing negative numbers.
  2. Press Ctrl + 1 to open the Format Cells dialog box.
  3. Select  Number tab > Category > Custom.
  4. Insert the target custom format in the Type box.
    I entered $#,##0_);[Magenta]($#,##0) for showing the negative numbers in brackets and coloring them Magenta.
  5. Click OK.
    Confirming Custom FormattingAll the negative numbers inside the dataset are in parentheses and colored in Magenta.

Negative Numbers Shown in Different Font Color and Currency Format

Note: In $#,##0_);[Magenta]($#,##0) custom format, the part before the semicolon in the code is to format the positive numbers, and the other one after the semicolon is to format the negative numbers. Excel offers 8 different color supports for user-defined number types. The names of these colors are: [Black], [White], [Red], [Green], [Yellow], [Magenta], [Cyan] and [Blue]. Color names need to be enclosed in brackets.

Read More: How to Put a Negative Number in Excel Formula

Using Accounting Formatting

Using the Accounting Number Format to display negative numbers provides a professional and standardized presentation of financial data.

To apply the accounting format, follow the steps below:

  1. Select the whole data range containing negative numbers.
  2. Click on the Home tab > Number group > Accounting Number Format icon.
    Applying Accounting Format on Numbers

Now you can see the negative numbers are inside the first bracket in the Accounting format.

Negative Numbers Showed in Accounting Format

Read More: Excel Formula to Return Zero If Negative Value is Found

Applying Conditional Formatting

Conditional Formatting offers a variety of options to format cells in an Excel sheet based on conditions. When it comes to displaying negative numbers, conditional formatting can be particularly useful for improving the readability and visual impact of your data.

To differentiate the negative numbers by applying Conditional Formatting to them, follow the instructions below:

  1. Select the data range first.
  2. Next, select Home > Conditional Formatting > New Rule.
    Applying Conditional Formatting for Negative Numbers
  3. In the New Formatting Rule dialog box, select the rule type Format only cells that contain.
  4. Edit the rule description as follows:
    • For the 1st empty field, select Cell Value from the drop-down list.
    • For the 2nd empty field, select less than from the drop-down list.
    • For the 3rd empty field, put 0 in it.

    Editing Rule Description

  5. Click on the Format button to open the Format Cells dialog box.
  6. In the Format Cells dialog box:
    • Go to the Font tab.
    • Set a Font Style and Color of your choice.
      Here, I have selected Italic font style and Red color.
    • Click OK inside the Format Cells dialog box.
  7. Click OK inside the New Formatting Rule dialog box.
    The negative numbers in the data range are shown with the Italic Font Style and Red color.

     

Here’s an image showing that if any of the numbers in the range are inserted as negative, it will be automatically formatted.

Automatic Output for Conditional Formatting

Using VBA

Excel VBA allows users to automate repetitive tasks, saving time and reducing errors by creating custom macros and scripts. VBA can facilitate the process of showing negative numbers in Excel by implementing user-defined rules for visual representation.

There could be 2 ways that you can use VBA to show negative numbers in Excel. They are:

Using VBA Subroutine

To distinguish the negative numbers using a VBA subroutine, follow the steps below:

  1. Open the VBA window by pressing Alt + F11 on your keyboard.
  2. Inside the VBA window, select Insert > Module.
    Opening VBA Module
  3. Write the code below inside the Module.
    Sub ShowNegativeNumbers()
    Dim mn_rng As Range
    For Each mn_rng In Selection
        If mn_rng.Value < 0 Then
            mn_rng.Font.Color = vbRed
        Else
            mn_rng.Font.Color = vbBlack
        End If
    Next mn_rng
    End Sub
  4. Click on the Run Sub button.
    Pressing Run Sub Icon to Run the VBA Code

After running the Macro, you will see the negative numbers in the Red color font.

Negative Numbers Formatted by VBA
Assigning VBA Macro to a Button

You can also assign the VBA code to a button to operate this code conveniently.
Please follow the steps below to assign a code to a button:

  1. Select Developer tab > Insert.
  2. Choose Form Controls > Button.
  3. Drag a rectangle somewhere in the Excel sheet.
    The Assign Macro window will pop up.
  4. Select the Macro you want to run with this button and click OK.
  5. Give a name to this button.
    In this case, the assigned name is Display Negative Numbers.
  6. Select the data range with numbers (C5:E10).
  7. Click on the Button.
    You will see the negative numbers in the Red color font.

What to Do When Negative Numbers Aren’t Showing with Parentheses in Excel

Although Excel can show negative numbers with brackets, it may occur to some users that the negative numbers cannot be shown with parentheses in Excel. The reason for that is the ($1,234.10) option isn’t available.

To solve this problem, follow the steps below:

  1. Open the Control Panel.
  2. Choose the Change date, time, or number formats.
    Opening Change date, time or number formats window from Control PanelThe Region window will pop up.
  3. Inside the Region window, select Additional settings.
    Opening Addtional SettingsA new window named Customized Format will pop out.
  4. Inside the Customized Format window:
    • Select the format (1.1) for the Negative number format.
    • Click OK.

    Changing Format for Negative Numbers

  5. Close the Excel file and reopen it.

Hopefully, this will solve your problem of negative numbers not showing in the Excel file.

Read More: How to Make a Group of Cells Negative in Excel

Download Practice Workbook

You can download the practice book from the button below.

Conclusion

To conclude, we used different number format features such as Accounting and Custom number format, Conditional Formatting, and VBA to display negative numbers in Excel. In terms of flexibility, using VBA codes could be your first choice. But if you are looking for simplicity, the Accounting format is there for you. If you have any questions or feedback regarding this article, please share them in the comment section.

Frequently Asked Questions

How do I auto-fill negative numbers in Excel?

To automatically fill negative numbers in Excel, follow these steps:

  1. Highlight the cells where you want to fill negative numbers.
  2. Start by typing a negative number in the active cell or entering it directly.
  3. Hover over the bottom right corner of the selected cell until a small square (the fill handle) appears.
  4. Click and drag the fill handle in the direction you want to fill the negative numbers. Excel will automatically fill the adjacent cells with increasing negative values.

How do I make Excel show negative times?

To display negative times in Excel, use the following steps:

  1. Input your time values in the desired cells, using the HH:MM:SS format.
  2. Select the cells containing time values, right-click, and choose “Format Cells.” Navigate to the “Custom” category.
  3. In the “Type” box, enter the custom time format as “[h]:mm:ss;[Red]-[h]:mm:ss” (without quotes). This format ensures negative times are displayed in red.
  4. Confirm the format by clicking OK.

How to make all negative numbers in a column positive in Excel?

You can use the ABS function to transform all negative numbers to positive ones in an Excel column. Inside the 1st cell of the column, put the formula =ABS(current cell address) and drag the fill handle up to the last cell of the column.

Related Articles


<< Go Back to Negative Numbers in Excel | Number Format | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rafiul Hasan
Rafiul Hasan

Rafiul Hasan, holding a BSc in Naval Architecture and Marine Engineering from Bangladesh University of Engineering & Technology, contributes significantly to the ExcelDemy project with almost 1.6 years of dedicated work. Currently an Excel and VBA Content Developer, he has a passion for problem-solving. Authoring over 100 articles for ExcelDemy showcases expertise in Microsoft Office Suites and Data Analysis. In addition to content development, Rafiul actively engages with the ExcelDemy forum, offering valuable solutions to user queries and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo