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 remove divide by zero errors (#DIV/0!) in Excel?

For example, we need to calculate the average price for each fruit by the formula of =D2/(C2-B2) as below screen shot shown. However, #DIV/0! errors come out when the value in Q2 column is equal to the value in Q1 column. So how to prevent or delete these divided by zero errors? There are several methods to get it done.

 

Prevent divide by zero errors (#DIV/0!) with modifying formulas

Remove divide by zero errors (#DIV/0!) with selecting all errors and deleting

Remove divide by zero errors (#DIV/0!) with replacing errors with blank

One click to count and select all error cells in the specified range in Excel

Boring to look for each error cells in a workbook? Take it easy! Kutools for Excel’s Select Error Cells utility can help you quickly count the total number of error cells in a specified range, and select these error cells at the same time! Full Feature Free Trial 60-day!

ad select error cells 1

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial



The formula of =D2/(C2-B2) will return the #DIV!/0 error if Cell C2 is equal to Cell B2. So we can estimate this formula with the IFERROR function to avoid the #DIV/0! error. You can do as follows:

In the Cell E2 enter the formula =IFERROR(D2/(C2-B2),""), and then drag the Fill Handle to the Range E2:E15.

Then you will see the #DIV/0! errors are prevented and shown as blank. See below screen shot:

Note: In this example we apply the formula of =IFERROR(D2/(C2-B2),"") to prevent the #DIV/0! errors. But different conditions require different formulas, and it may be complicated to prevent the #DIV/0! errors by formulas. Therefore, we introduce the following methods to remove #DIV/0! errors.


IF #DIV/0! errors have appeared in your range, and you can’t change your formulas, you can apply Kutools for Excel’s Select Cells with Error Value utility to select all errors and delete them in Excel.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

Step 1: Select the Range that you will select all errors, and click the Kutools > Select > Select Cells with Error Value.

Step 2: Then all errors in the selected range are selected as below screen shot shown, and delete these errors with pressing the Delete key.

Note: This method will select all errors in the selected range, including #N/A error, #DIV/0! error, and so on.

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


Actually, Kutools for Excel’s Error Condition Wizard utility can also delete all errors in a selected range with changing formulas automatically.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

Step 1: Select the range that you will delete all errors, and click the Kutools > More > Error Condition Wizard.

doc remove div error 01

Step 2: In the Error Condition Wizard dialog box, click the Error types box and select Any error value except #N/A from the drop down list; check Noting (a blank cell) in the Error display section, and click the OK button.

Now you will see all errors except the #N/A errors are replaced with blank as below screen shot shown:

Note: This method will delete all errors except the #N/A errors.

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!



Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.

Be the first to comment.