+ Reply to Thread
Results 1 to 5 of 5

array formulas-sumproduct and average

  1. #1
    Becky
    Guest

    array formulas-sumproduct and average

    Hello, I need hel. I am using this formula
    =SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's wrong
    with it. I need to find the average for column H in relation to 1(under 2
    yrs) in Column E. Hope this makes sense.

    Thanks,
    Becky

  2. #2
    Max
    Guest

    Re: array formulas-sumproduct and average

    Try: =AVERAGE(IF(E2:E289=1,H2:H289))
    Array-enter the formula with CTRL+SHIFT+ENTER
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Becky" <[email protected]> wrote in message
    news:[email protected]...
    > Hello, I need hel. I am using this formula
    > =SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's

    wrong
    > with it. I need to find the average for column H in relation to 1(under 2
    > yrs) in Column E. Hope this makes sense.
    >
    > Thanks,
    > Becky




  3. #3
    Max
    Guest

    Re: array formulas-sumproduct and average

    And if an error trap is needed to return blanks: ""
    instead of #DIV/0! , then try:

    =IF(ISERROR(AVERAGE(IF(E2:E289=1,H2:H289))),"",AVERAGE(IF(E2:E289=1,H2:H289)
    ))

    (Array entered as before)

    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----



  4. #4
    Becky
    Guest

    Re: array formulas-sumproduct and average

    Thanks, that did it.

    "Max" wrote:

    > Try: =AVERAGE(IF(E2:E289=1,H2:H289))
    > Array-enter the formula with CTRL+SHIFT+ENTER
    > --
    > Rgds
    > Max
    > xl 97
    > ---
    > GMT+8, 1° 22' N 103° 45' E
    > xdemechanik <at>yahoo<dot>com
    > ----
    > "Becky" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello, I need hel. I am using this formula
    > > =SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's

    > wrong
    > > with it. I need to find the average for column H in relation to 1(under 2
    > > yrs) in Column E. Hope this makes sense.
    > >
    > > Thanks,
    > > Becky

    >
    >
    >


  5. #5
    Max
    Guest

    Re: array formulas-sumproduct and average

    You're welcome !
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    Becky <[email protected]> wrote in message
    news:[email protected]...
    > Thanks, that did it.





+ 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