A Little Help, Please...

amyacc

New Member
Joined
May 7, 2002
Messages
6
Is there any Easy way to keep #DIV/0! from appearing in cells when there is no matching data to calculate in a formula?

Here's an example of the formula that I'm using...
=SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$I$7:$I$176)/SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$H$7:HH$176)

Again... if there's an easy solution that I can apply to all cells.

THANK YOU!!!!!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Normally, one would use a formula such as...

=IF(B1,A1/B1,0)

...but, you didn't indicate what your wanted to return instead of #DIV/0!
 
Upvote 0
On 2002-05-09 11:07, amyacc wrote:
Is there any Easy way to keep #DIV/0! from appearing in cells when there is no matching data to calculate in a formula?

Here's an example of the formula that I'm using...
=SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$I$7:$I$176)/SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$H$7:HH$176)

Again... if there's an easy solution that I can apply to all cells.

THANK YOU!!!!!

Would what follows be OK with you?

=SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$I$7:$I$176)/MAX(1,SUMIF('Main Sheet'!$Q$7:$Q$176,"In-HouseWonderBall",'Main Sheet'!$H$7:HH$176))

That's, if the second SUMIF result is never > 0 and< 1.

Aladin
This message was edited by Aladin Akyurek on 2002-05-09 12:14
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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