How to correct a #DIV/0! error

How to correct a #DIV/0! error Microsoft Excel shows the #DIV/0! error when a number is divided by zero (0). It...

How to correct a #DIV/0! error

Microsoft Excel shows the #DIV/0! error when a number is divided by zero (0). It happens when you enter a simple formula like =5/0, or when a formula refers to a cell that has 0 or is blank, as shown in this picture.

 error when a number is divided by zero  How to correct a #DIV/0! error

To correct the error, do any of the following:

  • Make sure the divisor in the function or formula isn't zero or a blank cell.

  • Change the cell reference in the formula to another cell that doesn't have a zero (0) or blank value.

  • Enter #N/A in the cell that's referenced as the divisor in the formula, which will change the formula result to #N/A to indicate the divisor value isn't available.

Many times the #DIV/0! error can't be avoided because your formulas are waiting for input from you or someone else. In that case, you don't want the error message to display at all, so there are a few error handling methods that you can use to suppress the error while you wait for input.

Evaluate the denominator for 0 or no value

The simplest way to suppress the #DIV/0! error is to use the IF function to evaluate the existence of the denominator. If it's a 0 or no value, then show a 0 or no value as the formula result instead of the #DIV/0! error value, otherwise calculate the formula.

For example, if the formula that returns the error is =A2/A3, use =IF(A3,0,A2/A3) to return 0 or =IF(A3,A2/A3,"") to return an empty string. You could also display a custom message like this: =IF(A3,A2/A3,"Input Needed"). With the QUOTIENT function from the first example you would use =IF(A3,QUOTIENT(A2,A3),0). This tells Excel IF(A3 exists, then return the result of the formula, otherwise ignore it).

 error when a number is divided by zero  How to correct a #DIV/0! error

Use IFERROR to suppress the #DIV/0! error

You can also suppress this error by nesting your division operation inside the IFERROR function. Again, using A2/A3, you can use =IFERROR(A2/A3,0). This tells Excel if your formula evaluates to an error, then return 0, otherwise return the result of the formula.

For versions of Excel prior to Excel 2007, you can use the IF(ISERROR()) method: =IF(ISERROR(A2/A3),0,A2/A3) (See IS functions).

Note: both the IFERROR and IF(ISERROR()) methods are blanket error handlers, in that they will suppress all errors, not just #DIV/0!. You need to make sure your formula works properly before applying any error handling, otherwise you might not realize that your formula isn't working as you expect.

Tip:  If error checking is turned on in Excel, you can click  error when a number is divided by zero  How to correct a #DIV/0! error                    next to cell that shows the error. Click Show Calculation Steps if it's available, and pick the resolution that works for your data.

Do you have a specific function question?

Post a question in the Excel community forum

Help us improve Excel

Do you have suggestions about how we can improve the next version of Excel? If so, please check out the topics at Excel User Voice.

See Also

IF function

IFERROR function

IS functions

Overview of formulas in Excel

How to avoid broken formulas

Use error checking to detect errors in formulas

Excel functions (alphabetical)

Excel functions (by category)

Disclaimer : All images and content that you find here are believed to be in the "public domain". We do not intend to violate legitimate intellectual property, artistic rights or copyright. If you are the legitimate owner of one of the images and content posted on this site, and do not want to be displayed or if you need an appropriate credit, please contact us and we will immediately do whatever is needed by deleting or giving credit to the content displayed.

COMMENTS

Name

Google Aррѕ,1,lainnya,7522,Microsoft Access,1,Microsoft Excel,59,Microsoft Office,13,Microsoft Office 2003,4,Microsoft Office 2007,1,Microsoft Outlook,1,Microsoft Word,71,Mісrоѕоft Office Training,1,Mісrоѕоft Offісе 365,2,Office 2007,3,Power Map,1,PowerPoint,14,Windows Accessibility Options,1,
ltr
item
Microsoft Office Online: How to correct a #DIV/0! error
How to correct a #DIV/0! error
https://support.content.office.net/en-us/media/e3efd84b-134e-4f7d-9028-90440919df6d.png
Microsoft Office Online
https://promisestoread.blogspot.com/2018/06/how-to-correct-div0-error.html
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/2018/06/how-to-correct-div0-error.html
true
593202333244584315
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy