Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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.

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:

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Read More      Download the free trial now

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

Change negative number to zero with IF function


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 negative zero change

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.


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.


Easily 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 300 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:

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

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


Easily change negative number to zero with several clicks

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!


Related articles:


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Dave · 1 years ago
    The above examples are too complicated, when all one wants is, "If I have more than I need, then the sheet should show 0".
    Just "wrap" the quantity you are evaluating within the expression =MAX(0,(formula)).
    For example: =MAX(0,(B2-C2)).
  • To post as a guest, your comment is unpublished.
    K Bhanu Chandra · 3 years ago
    Hi,

    My Query is if I have 0 to -30 number and i want to write a condition to create a slabs like 0 to -5 should be -5 to
  • To post as a guest, your comment is unpublished.
    KAPIL · 3 years ago
    MY QUERY IS ;

    I HAVE SEVERAL CELLS IN EXCEL SHEET. NOW I WANT TO APPLY FORMULA IN SUCH A WAY THAT IF I ENTER A VALUE IN ANY ONE CELL, THE REST BECOMES "0" AND VISE VERSA.
  • To post as a guest, your comment is unpublished.
    Sazman · 3 years ago
    Brief and to the point.
    Thank you, very helpful
  • To post as a guest, your comment is unpublished.
    Tiago Simão · 5 years ago
    I still thing the better solution is MAX(0,A1)
  • To post as a guest, your comment is unpublished.
    Krishna Kumar · 5 years ago
    Excellent post. Very helpful in accounting pupose.
  • To post as a guest, your comment is unpublished.
    Krishna Kumar · 5 years ago
    Excellent post. Was very helpful in accounting purpose.