Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: A Little Help, Please...

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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!!!!!


  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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!

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,038
    Post Thanks / Like
    Mentioned
    37 Post(s)
    Tagged
    7 Thread(s)

    Default

    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 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •