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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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