How to Remove #div/0 Error in Excel: A Step-by-Step Guide

Are you tired of seeing the #DIV/0! error in your Excel spreadsheets? Don’t worry, I’m here to help! This pesky error pops up when you try to divide a number by zero or by a cell that is empty. But fear not, there’s a quick and easy solution to get rid of it. Just follow these simple steps, and you’ll be back to smooth sailing with your data in no time.

Step by Step Tutorial: How to Remove #DIV/0 in Excel

Before we dive into the steps, let’s quickly go over what we’ll be doing. We’re going to use a function in Excel that tells the spreadsheet to do something different if the scenario we want to avoid (dividing by zero) happens. This function is called IFERROR, and it’s about to become your new best friend.

Step 1: Identify the cell with the #DIV/0! error

Find the cell that is giving you the #DIV/0! error. This is the cell where we’ll start our fix.

Once you’ve located the problematic cell, take note of the formula that’s causing the error. We’ll need this information for the next step.

Step 2: Edit the formula to include the IFERROR function

Click on the cell with the #DIV/0! error, and add the IFERROR function at the beginning of the formula.

The IFERROR function works by checking if the formula results in an error, and if it does, it performs an alternative action that you specify. In this case, we want it to do nothing or display a different message instead of showing #DIV/0!.

Step 3: Specify the alternative action

Inside the IFERROR function, after the original formula, add a comma and then type what you want to appear instead of the error.

You can have Excel display a specific message, like “No data” or “0,” or you can just leave it blank by typing two quotation marks with nothing in between them (“”).

Step 4: Press Enter and check the result

After editing the formula, press Enter and check if the #DIV/0! error has been replaced with the alternative action you specified.

And just like that, the #DIV/0! error should be gone! Your cell will now either be blank or display the message you chose.

Once you’ve completed these steps, you’ll have successfully removed the #DIV/0! error from your Excel spreadsheet. Your data will look cleaner, and you won’t have to deal with that annoying error message anymore.

Tips: Removing #DIV/0 in Excel

  • Always double-check your formulas to prevent errors from occurring in the first place.
  • Use the IFERROR function in formulas where you anticipate the possibility of a #DIV/0! error.
  • If you’re working with a large spreadsheet, use the “Find & Select” feature in Excel to quickly locate all #DIV/0! errors.
  • Consider using the “IF” function to create more complex conditions for when an error should be ignored.
  • Remember that hiding errors with the IFERROR function doesn’t solve the underlying problem, so make sure to address any issues with the data that may be causing the errors.

Frequently Asked Questions

What is the #DIV/0! error in Excel?

The #DIV/0! error occurs when you try to divide a number by zero or by a cell that contains no value, which is not possible in mathematics.

Can I use the IFERROR function to fix other types of errors in Excel?

Yes, the IFERROR function can be used to handle any error that occurs as a result of a formula in Excel, not just the #DIV/0! error.

Is there a way to fix all #DIV/0! errors in my spreadsheet at once?

If you have multiple #DIV/0! errors, you can use the “Find & Select” feature to locate all of them and then edit each formula to include the IFERROR function.

Will the IFERROR function affect the accuracy of my data?

The IFERROR function only changes what is displayed in the cell with the error. It does not affect the actual data or calculations in your spreadsheet.

Can I use a different function instead of IFERROR to handle the #DIV/0! error?

Yes, you can also use the “IF” function to create a condition that checks for a zero or empty cell before performing the division, but IFERROR is the simplest and quickest solution.


  1. Identify the cell with the #DIV/0! error.
  2. Edit the formula to include the IFERROR function.
  3. Specify the alternative action.
  4. Press Enter and check the result.


So there you have it, a straightforward guide on how to remove #div/0 in Excel. With the IFERROR function up your sleeve, you can say goodbye to those pesky error messages that disrupt the flow of your data analysis. Remember, while it’s great to know how to fix these errors, it’s even better to prevent them by double-checking your formulas and data entries. Keeping your Excel sheets clean and error-free not only makes them look more professional but also ensures that your calculations are accurate. So, go ahead and give your spreadsheets the attention they deserve, and if you ever come across that #DIV/0! error again, you’ll know exactly what to do. Happy spreadsheeting!

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time. Read our Privacy Policy