How to Add Brackets to Negative Numbers in Excel (3 Easy Ways)

We will use the following dataset which displays the buying price and selling price of some products.

Easy Ways to Add Brackets to Negative Numbers in Excel

Method 1 – Changing Cell Format to Add Brackets to Negative Numbers

Steps:

  • We will calculate the expected profit or loss from our data set.
  • Enter the following formula into cell D5:
=B5-C5

Easy Ways to Add Brackets to Negative Numbers in Excel

  • Press Enter to see the result.
  • Use the AutoFill feature to drag the formula for the lower cells of the same column.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • You will notice negative numbers in the data set after calculation.
  • We will add brackets to these numbers.
  • Select all the numbers from cell range D5:D10.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • Right-click on the mouse after selecting the cell range.
  • Select the Format Cells… command.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • You will see the Format Cells dialogue box.
  • Go to the Number tab of the box.
  • Choose the Number option.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • Choose the command (1234.10), which is in black.
  • Press OK.

Easy Ways to Add Brackets to Negative Numbers in Excel

 

  • You will see all the negative numbers in column D are in brackets and black.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • If you want to change the color of the negative numbers with brackets, go to the Number options from the Format Cells dialogue box.
  • Choose the command (1234.10) in red.
  • Press OK.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • You will see all the negative numbers in brackets, and they are red.

Easy Ways to Add Brackets to Negative Numbers in Excel

Read More: How to Put Negative Percentage Inside Brackets in Excel


Method 2 – Customizing Format Cells Box to Add Brackets to Negative Numbers

Steps:

  • Select the cell range where you want to add brackets. Here, the cell range is D5:D10.
  • Go to the Home tab.
  • In the Number group, choose the little arrow on the lower-right side of the group.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • You will see the Format Cells dialogue box.
  • Go to the Custom tab from the box.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • From the tab, choose the command #,##0.00_);(#,##0.00).
  • Press OK.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • This command will add brackets to the negative numbers in the dataset. They will be black.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • If you want your bracketed negative numbers in red color, choose the #,##0.00_);[Red](#,##0.00) command from the Format Cells dialogue box.
  • Press OK.

Easy Ways to Add Brackets to Negative Numbers in Excel

  • This command will show all the negative numbers in red with brackets.

Sample Data Set

Read More: Excel Negative Numbers in Brackets and Red 


Method 3 – Applying VBA to Add Brackets to Negative Numbers

Steps:

  • Go to the Developer tab of the ribbon.
  • Choose the Visual Basic command from the Code group of the tab.

Sample Data Set

  • You will see the VBA window after selecting the command.
  • From the Insert tab, choose Module.

Sample Data Set

  • Enter the following VBA code in the module:
'Set the Function Name
Sub Add_Brackets_to_Negative_Numbers()
'Select the Cell range where the negative numbers are
Range("D5:D10").Select
'Set the format of the cells after adding brackets
Selection.NumberFormat = "0.00_);[Red](0.00)"
End Sub

Sample Data Set

                                                             VBA Breakdown

  • The function name is Add_Brackets_to_Negative_Numbers.
  • Range(“D5:D10”). Select: Select the cell range where the negative numbers are located.
  • Selection.NumberFormat = “0.00_);[Red](0.00)”: Add brackets to negative numbers and set their font color as red.
  • Save the code and press the play button or F5 to run the code.

Sample Data Set

  • You will see all the negative numbers in brackets after running the code.

Sample Data Set

Read More: Excel Formula for Working with Positive and Negative Numbers


Download the Practice Workbook

You can download the free Excel workbook here.


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Md. Araf Bin Jayed
Md. Araf Bin Jayed

I am Araf. I have completed my B.Sc in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Currently I am working as an Excel & VBA Content Developer in Softeko. With proper guideline and aid of Softeko I want to be a flexible data analyst. With my acquired knowledge and hard work, I want to contribute to the overall growth of this organization.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo