Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to change negative number to zero in Excel?

Author Kelly Last modified

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

Negative numbers changed to zeros

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


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:

Formula entered in the first cell

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:

Negative numbers changed to zeros

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.


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 as the below demo shown.
Download the full feature 30-day free trail of Kutools for Excel now!

Kutools for Excel's Change Sign of Values changes all negative numbers to zeros with a click


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:

1. Select the range that you will work with.

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

3. In the Format Cells dialog box, you need to:

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

Format Cells dialog box

Then all negative numbers in the selection are converted to 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.

Before applying Kutools for Excel, please download and install it firstly.

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:

Change Sign of Values option on the Kutools tab on the ribbon

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:

Change Sign of Values dialog box

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

Negative numbers changed to zeros

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!


Easily change negative number to zero with several clicks

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in