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

#### 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:

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:

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!

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

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.

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:

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

If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.

### 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 Toolsets:  12 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

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!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
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)).
This comment was minimized by the moderator on the site
In BRAZIL is in the EXCEL: =MÁXIMO(0;(B2-C2))
This comment was minimized by the moderator on the site
Dear Dave,
Thanks for sharing it.
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
Brief and to the point. Thank you, very helpful
This comment was minimized by the moderator on the site
I still thing the better solution is MAX(0,A1)
This comment was minimized by the moderator on the site
Thats it man, Thank You!!!
This comment was minimized by the moderator on the site
Excellent post. Very helpful in accounting pupose.
This comment was minimized by the moderator on the site
Excellent post. Was very helpful in accounting purpose.
There are no comments posted here yet