How to change negative number to zero in Excel?

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.

Change negative number to zero with IF function

Change negative number to zero with custom Format Cell

Change negative number to zero with Select Specific Cells of Kutools for Excel

Change negative number to zero with Change Sign of Values of Kutools for Excel

Kutools for Excel: add 120 new features in Excel. Save one hour every day.
Classic Menu for Office: brings back classic menus to Office 2010 and 2013 (includes Office 365).
Office Tab: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.

An 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.

doc-change-negartive-to-zero1-2doc-change-negartive-to-zero2

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

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

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-2doc-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 bubble Change negative number to zero with Kutools for Excel

Do you want to not only show negative numbers as zero, but change negative numbers as real zeros in selection? You can tryKutools for Excel's Select Specific Cells tool.

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

Step1: Select the range that you will work with.

Step2: Click the Kutools > Select Tools > Select Specific Cells….

doc-change-negartive-to-zero6

Step3: In the Select Specific Cells dialog box, check the Cell option, and choose Less than from Specific type, then enter the number 0. See the following screenshot:

doc-change-negartive-to-zero7

Step 4: Then click OK or Apply, now all negative numbers in the selection are selected. And then input 0, then hold down the Ctrl and press Enter key. It replaces all negative numbers with zeros in the selection immediately.

doc-change-negartive-to-zero8-2doc-change-negartive-to-zero2

Click to know more about this Select Specific Cells tool.


Related articles:


arrow blue right bubble Change negative number to zero with Change Sign of Values of Kutools for Excel

There is another feature of Kutools for Excel, called Change sign of values, with it, you can change the negative numbers to zeros with several clicks.

Step1: click Kutools > Content Converter > Change Sign of Values, see screenshot:

doc-change-negative-to-zero9

Step2: In the Change Sign of Values dialog box, select Change all negative value to zero option, see screenshot:

doc-change-negative-to-zero10

Step3: Then click OK or Apply, all the negative numbers have been changed to zeros.

Click to know more about this Change Sign of Values feature.


Related articles:


Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase

Comments  

0#Krishna Kumar2014-02-14 21:08
Excellent post. Was very helpful in accounting purpose.
Reply | Reply with quote | Quote
0#Krishna Kumar2014-02-14 21:09
Excellent post. Very helpful in accounting pupose.
Reply | Reply with quote | Quote
0#Tiago Simão2014-06-20 10:21
I still thing the better solution is MAX(0,A1)
Reply | Reply with quote | Quote

Add comment


Security code
Refresh