dividing calculation

bartoni

Active Member
Joined
Jun 10, 2003
Messages
296
HI, is there anyway anyone can help me?

Ive currently calculating 10 quarters of return on investment using quarterly sales divided by quartely promotion.

If a product has 0 sales and 0 promo, the value returned is DIV!0 not 0.

If a product does not have 10 quarters of data, both sales and promo will be blank and consequently the calculation returns a DIV!0 error.

How do i make it so that zero divided by zero will return a 0
and blank divided by blank returns a DIV!0 error.

Is the return error custonisable?

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Here it is a simple division formula

=E2/N2

Ive tried the =ISNA(E2/N2) but it just says false.

Thanks
 
Upvote 0
Hello,

I don't think ISNA will work for no values, I believe you need iserror

e.g.

=IF(ISERROR(E9/F9),0,E9/F9)

Change cell refs and formula to suit.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

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