Dividing series of cells, some with zero amounts, without giving error or 0

mick25

New Member
Joined
Feb 19, 2013
Messages
2
Hi,

I have a worksheet with a series of numbers like so:
A1 - $36.10 B1 - $1,835.25
A2 - B2 - $1,321.25
A3 - B3 -

I would like to divide column A by column B, and either get a number (not 0) or have the cell be blank.

I've tried =if(or(iserror(A1/B1),B1=0),"",A1/B1). This gives me 0 on row 2. I've also tried =if(a3/b3=-,"",A3/B3), and this gives me #DIV/0! on row 3.

For example, I would like C1 to be .02, C2 to be blank, and C3 to be blank. Any help you can provide on this I would greatly appreciate!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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