Zero divisor problem

boblock1

New Member
Joined
Oct 24, 2002
Messages
15
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.

Thanks for any help you can give me.

Bob
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

SimonP

New Member
Joined
Sep 25, 2002
Messages
48
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
Joined
Oct 24, 2002
Messages
15
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
Joined
Sep 25, 2002
Messages
48
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
Joined
Feb 10, 2002
Messages
11,654
A quicker, non-macro way would be to use the Data | Text to Columns... menu command.
 

Forum statistics

Threads
1,143,613
Messages
5,719,710
Members
422,242
Latest member
hishamkhatri

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