+ Reply to Thread
Results 1 to 5 of 5

average with mulitple ciriteria

  1. #1
    ellebelle
    Guest

    average with mulitple ciriteria

    I want to get the average with two criteria. if the cells in column Z = B11
    then I want the average value from column CA (BUT I only want the average of
    cells greater than zero.)

  2. #2
    bpeltzer
    Guest

    RE: average with mulitple ciriteria

    You could use sumproduct to add the appropriate cells and to the count the
    appropriate cells, then just divide the two:
    =sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0),(ca1:ca5000)) /
    sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0))
    --Bruce

    "ellebelle" wrote:

    > I want to get the average with two criteria. if the cells in column Z = B11
    > then I want the average value from column CA (BUT I only want the average of
    > cells greater than zero.)


  3. #3
    ellebelle
    Guest

    RE: average with mulitple ciriteria

    that worked a treat - thanks!

    "bpeltzer" wrote:

    > You could use sumproduct to add the appropriate cells and to the count the
    > appropriate cells, then just divide the two:
    > =sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0),(ca1:ca5000)) /
    > sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0))
    > --Bruce
    >
    > "ellebelle" wrote:
    >
    > > I want to get the average with two criteria. if the cells in column Z = B11
    > > then I want the average value from column CA (BUT I only want the average of
    > > cells greater than zero.)


  4. #4
    Hanr3
    Guest

    RE: average with mulitple ciriteria

    What do the -- signs within the formula represent, or do?
    --
    Life is an adventure, are you living it?

    These are just my opinions, please feel free to correct them if they are
    wrong.


    "bpeltzer" wrote:

    > You could use sumproduct to add the appropriate cells and to the count the
    > appropriate cells, then just divide the two:
    > =sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0),(ca1:ca5000)) /
    > sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0))
    > --Bruce
    >
    > "ellebelle" wrote:
    >
    > > I want to get the average with two criteria. if the cells in column Z = B11
    > > then I want the average value from column CA (BUT I only want the average of
    > > cells greater than zero.)


  5. #5
    Bob Phillips
    Guest

    Re: average with mulitple ciriteria

    See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
    explanation.

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Hanr3" <[email protected]> wrote in message
    news:[email protected]...
    > What do the -- signs within the formula represent, or do?
    > --
    > Life is an adventure, are you living it?
    >
    > These are just my opinions, please feel free to correct them if they are
    > wrong.
    >
    >
    > "bpeltzer" wrote:
    >
    > > You could use sumproduct to add the appropriate cells and to the count

    the
    > > appropriate cells, then just divide the two:
    > > =sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0),(ca1:ca5000)) /
    > > sumproduct(--(z1:z5000=b11),--(ca1:ca5000>0))
    > > --Bruce
    > >
    > > "ellebelle" wrote:
    > >
    > > > I want to get the average with two criteria. if the cells in column Z

    = B11
    > > > then I want the average value from column CA (BUT I only want the

    average of
    > > > cells greater than zero.)




+ 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