Eliminating #DIV/0!

Cirby

New Member
Joined
May 9, 2002
Messages
17
I need to hide the content of cells showing this error message, however I do not want to eliminate the formula in the cell. The error is being cause by a formula that looks to divide something by zero. I want the cell to appear blank in this case. Once the cell that is going to be the denominator is populated with a value, I would want the cell to show the results of the formula. For example: Cell A1=1 Cell A2=0 Cell A3=A1/A2 I would want nothing to show in A3. If Cell A2 was changed to = 2, I would want cell A3 to show .5. Any help is greatly appreciated.

Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
On 2002-09-19 10:29, Cirby wrote:
I need to hide the content of cells showing this error message, however I do not want to eliminate the formula in the cell. The error is being cause by a formula that looks to divide something by zero. I want the cell to appear blank in this case. Once the cell that is going to be the denominator is populated with a value, I would want the cell to show the results of the formula. For example: Cell A1=1 Cell A2=0 Cell A3=A1/A2 I would want nothing to show in A3. If Cell A2 was changed to = 2, I would want cell A3 to show .5. Any help is greatly appreciated.

Thanks

In A3 enter:

=IF(A2,A1/A2,"")
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

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