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

#### WillM

##### New Member
I'd seach around the board as someone is BOUND to have asked before but....

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

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
HI,

either

1) dont divide by zero

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

HTH

Alan

#### just_jon

##### Legend
Got a formula in particular that you're talking about, or in general?

#### WillM

##### New Member
Thanks very much.Worked a treat.

Will M

#### Ekim

##### Well-known Member
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

#### Brian from Maui

##### MrExcel MVP
=IF(B1,A1/B1,"")

Replies
3
Views
292
Replies
7
Views
166
Replies
0
Views
219
Replies
12
Views
785
Replies
6
Views
171

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

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.

### Which adblocker are you using?

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

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