remove div/0 error values from excel cells

gar_ka

New Member
Joined
Nov 15, 2006
Messages
1
Hi guys,

i am stuck with a problem , how to remove div/0 value from excel cells.
i got this when i used formula where denominator is zero . is there any function to do or we should write any macro for that.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi

One way to do this is to use the if statement in your formula . . .

example: in cell C1 . . . . =if(iserror(a1/b1),"",a1/b1)
 
Upvote 0
Thanks Sal Paradise . . . .

I definitely can use that . . . .
 
Upvote 0
Your way works just as well if you don't care for errors at all (which I rarely do). So I'd probably use your way ;)
 
Upvote 0
If you want to retain other errors, then you can change above code to =IF(ERROR_TYPE(2),"","a1/b1")

Hi Sal

When I try this stuff on my worksheet it does give me a #NAME? error...am I missing something here?
 
Upvote 0
Sorry, my apologies.

=IF(A1/B1=ERROR_TYPE(2),"",A1/B1)

I really have to proof read...

no problem mate...great that u r sharing your knowledge !

Neverthless - it still does not seem to work...is it that it will not work with the DIV/0 error? or do we need to enable to some kind of add-in or something? it does not change a bit :cry:
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,637
Members
449,461
Latest member
kokoanutt

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