+ Reply to Thread
Results 1 to 3 of 3

Array Formula Help

  1. #1
    Registered User
    Join Date
    01-05-2006
    Posts
    9

    Array Formula Help

    I am using an array formula that looks like this:

    =AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128))

    The formula is working great. The problem is that if there is an error then I get the #DIV/0!.

    Is there a way I can embed something in this formula that would return 0 if error.

  2. #2
    Jim Rech
    Guest

    Re: Array Formula Help

    >>if there is an error

    You might have to address the errors. Can't you trap them?

    --
    Jim
    "rmeister" <rmeister.25jm8y_1143823501.6779@excelforum-nospam.com> wrote in
    message news:rmeister.25jm8y_1143823501.6779@excelforum-nospam.com...
    |
    | I am using an array formula that looks like this:
    |
    | =AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128))
    |
    | The formula is working great. The problem is that if there is an error
    | then I get the #DIV/0!.
    |
    | Is there a way I can embed something in this formula that would return
    | 0 if error.
    |
    |
    | --
    | rmeister
    | ------------------------------------------------------------------------
    | rmeister's Profile:
    http://www.excelforum.com/member.php...o&userid=30163
    | View this thread: http://www.excelforum.com/showthread...hreadid=528607
    |



  3. #3
    David McRitchie
    Guest

    Re: Array Formula Help

    See Tom Ogilvy's reply to a similar question
    http://groups.google.com/group/micro...ba9e0295b0b1e9

    Google Groups search:
    array average DIV/0 group:*excel*

    =AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128))

    would be recoded as
    =IF(ISRRROR(AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128))
    ),"",AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128)) )




    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "rmeister" <rmeister.25jm8y_1143823501.6779@excelforum-nospam.com> wrote in message
    news:rmeister.25jm8y_1143823501.6779@excelforum-nospam.com...
    >
    > I am using an array formula that looks like this:
    >
    > =AVERAGE(IF(Sheet1!$F$2:$F$65536=Sheet2!$A2,Sheet1!$AE$2:$AE$5128))
    >
    > The formula is working great. The problem is that if there is an error
    > then I get the #DIV/0!.
    >
    > Is there a way I can embed something in this formula that would return
    > 0 if error.




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1