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

mianmazher

Active Member
Joined
Jan 24, 2004
Messages
412
Place your formula in =ISNA()

I think it will solve ur problem


Regards


Mian Mazher
 

bartoni

Active Member
Joined
Jun 10, 2003
Messages
296
Here it is a simple division formula

=E2/N2

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

Thanks
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows

ADVERTISEMENT

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.
 

mianmazher

Active Member
Joined
Jan 24, 2004
Messages
412
=if(isna(yourformula),yourformula,0)

hope u will understand


Regards


Mian Mazher
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,100
Messages
5,768,097
Members
425,453
Latest member
bince

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