How to change negative number to zero in Excel?

doc negative to zero1




Says you import some data to Microsoft Excel with many negative numbers, you have to remove all negative numbers and replace them with zero. Of course, you can manually deal with it one by one if you are patient enough. Most of us may think of tricky ways. Actually there are some easy tips to change negative number to zero conveniently in Excel.

The left example may be easier to understand: there are some negative numbers in a range of cells, and I will guide you to change all negative numbers to zeros at once in the selection.

Change negative number to zero with IF function

Change negative number to zero with custom Format Cell

Easily change negative number to zero with several clicks




Several clicks to change all negative numbers to zeros (or change sign of values) in selection in Excel
Kutools for Excel's Change Sign of Values utility helps you easily change all negative numbers to zeros in selection in Excel. And you can quickly change the sign of values as you need with this utility. See screenshot:
doc negative to zero1

Recommended Productivity Software

Office Tab: Use tabbed interface in Office as the use of web browser Chrome, Firefox and Internet Explorer.
Kutools for Excel: Adds 120 powerful new features to Excel. Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Brings back your familiar menus to Office 2007, 2010 and 2013 (includes Office 365).

arrow blue right bubble Change negative number to zero with IF function

Hint


The Microsoft Excel's IF function can recognize negative numbers and change them to zero without affect positive numbers.

Step1: In a blank cell, says the Cell E1, input the formula =IF(A1<0,0,a1), see screenshot:

doc-change-negartive-to-zero3

Step2:Then press Enter key, and drag the fill handle across to the range that you want to contain this formula. And all negative numbers have been changed to zeros. See screenshots:

doc-change-negartive-to-zero1 -2 doc-change-negartive-to-zero4

Step3: As they are formulas, when you copy them to other cells, please paste as values.

Note: This way will fill the blank cells with zero, too.


arrow blue right bubble Change negative number to zero with custom Format Cell

Actually, we can format a selection and show all negative numbers as zeros. You can do it with following steps:

Step1: Select the range that you will work with.

Step2: Right click the selection, and select the Format Cells item from the context menu.

Step3: In the Format Cells dialog box:

  • Click Number tab;
  • Select the Custom in the category box;
  • In theType: box, enter the #,##0;"0" , see the following screenshot:

doc-change-negartive-to-zero5

Step4: Click OK button. Then all negative numbers in the selection display as zeros.

Note: This way only shows the negative numbers as zero, but not change the value of negative numbers.


arrow blue right bubbleEasily change negative number to zero with several clicks

The Change sign of values utility of Kutools for Excel helps you easily change the negative numbers to zeros with several clicks.

Kutools for Excel: with more than 120 handy Excel add-ins, free to try with no limitation in 60 days.

1. Select the range with the negative numbers you need to change to zeros, and then click Kutools > Content > Change Sign of Values, see screenshot:

doc negative to zero1

2. In the popping up Change Sign of Values dialog box, select the Change all negative value to zero option, and then click the OK button. See screenshot:

doc negative to zero1

Then all negative values in selected range are changed to zeros immediately as below screenshot shown.

doc negative to zero1

If this utility is helpful, you can download and try the free trial now!

Related articles:


Is your problem solved?

Recommended Productivity Tools

The following tools will greatly save your time and effort, which one do you prefer?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: 120 powerful new functions for Excel, Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013 and 365, as if it were Office 2000 and 2003.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 More than 120 powerful advanced functions which designed for Excel:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more     btn download     btn purchase

Add comment


Security code
Refresh