# Zero divisor problem

#### boblock1

##### New Member
I have a problem that hopefully some of you more technically gifted than myself can help me with.

I have been using the following formula to calculate a percentage figure for some large spreadhseets that I am working on:
=IF(L5=0,"",J5/L5)

For some reason, the formula started giving me #DIV/0 errors. Excel help says use the formula that I am using, which doesn't help much. The divisor in these equations is zero.

Bob

### Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

#### SimonP

##### New Member
Bob,
Are you sure that the divisor is a numeric zero? This can happen if the 'number' is actually text - usually if the data was imported from another source.
Try selecting one of the rows that gives the error and overtyping the zero in the divisor cell with a zero.

Simon

#### boblock1

##### New Member
Simon,

You are right, thanks. The data came from an Access db, and the spreadsheet is listing them as text. How can I run a macro that will convert the text to numbers?

Bob

#### SimonP

##### New Member
The quick (non macro) way is to use Excel's VALUE formula to convert all of the numbers in column L to a value.

i.e. in a blank column enter
=VALUE(L5)
copy this down for every row of data, then copy the whole column & paste it back on top of column L using paste special>values.

Simon

#### Mark W.

##### MrExcel MVP
A quicker, non-macro way would be to use the Data | Text to Columns... menu command.

Replies
10
Views
166
Replies
1
Views
87
Replies
2
Views
96
Replies
1
Views
344
Replies
5
Views
318

1,181,891
Messages
5,932,665
Members
436,850
Latest member
Jasperlee93

### 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