Probably a stupid question and If I had time....

WillM

New Member
Joined
Jun 12, 2002
Messages
27
I'd seach around the board as someone is BOUND to have asked before but....

How do you get rid of a "#DIV/0!" ??

Thanks in advance !

Will M
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

al_b_cnu

Well-known Member
Joined
Jul 18, 2003
Messages
4,518
HI,

either

1) dont divide by zero :)

or
2) if iserror(formula),0,formula


HTH

Alan
 

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
Got a formula in particular that you're talking about, or in general?
 

Ekim

Well-known Member
Joined
Jun 30, 2002
Messages
1,416
A2: 5
B2: 0 (zero) or blank

Normally, 5 divided by 0 or 5 divided by a blank cell will return the "#DIV/0!" error.

One solution:
=IF(OR(B2 = 0,B2 = ""),"",A2/B2)

HTH

Mike
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,565
Messages
5,765,140
Members
425,263
Latest member
alcat

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
Top