Hide #DIV/0! where there are 2 equations dividing by 0

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
Hi,
I need to Hide #DIV/0! where there are 2 equations dividing by 0.
Any assistance will be greatly appreciated.
Cheers,
Dave.
div 0 x 2.xlsx
H
8
Sheet1
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Your example just shows a blank cell.

Can you be specific about what you mean? Generally if a divide by zero is possible, you need to decide what result you want in that case. For example:

Excel Formula:
=IF(B2=0,"",A1/B2)
=IF(B2=0,"B2 must be >0",A1/B2)
=IF(B2=0,0,A1/B2)
 
Upvote 0
Hi,
The equation =IF(D8=0,D3/D4,D3/D6) works fine when there is either an entry in D4 or D6.
How ever the situation arises where there are no entries in either D4 or D6 and the result is #DIV/0! which I would like to hide.
If the equation was only dividing by one zero I would use IF(ISERROR to hide the result, but it does not work when there are TWO divisions by zero.
Trust this provides a better understanding of my situation.
Thanks in advance for any assistance you can provide.
Cheers,
Dave.
 
Upvote 0
the iferror function works if your version of excel has it:
Excel Formula:
=IFERROR(IF(D8=0,D3/D4,D3/D6),0))
 
Upvote 0
Solution
Dave,

It doesn't matter that the same formula has two divisions by zero. The result of the formula will still be an error. What is the actual formula in question?
 
Upvote 0
Dave,

It doesn't matter that the same formula has two divisions by zero. The result of the formula will still be an error. What is the actual formula in question?
Thanks.
I have received an answer that works.
Cheers,
Dave.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top