+ Reply to Thread
Results 1 to 5 of 5

average if sumproduct?

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    7

    average if sumproduct?

    hi everyone,
    im trying to average age (D:D) for individuals who are male (C:C) and in a certain group (B:B).
    so far i isolated the males of a certain group by typing in
    =SUMPRODUCT((C:C="male")*(B:B="case")) but now i am interested in averaging this isolated population's age.

    i was thinking =AVERAGE(IF((SUMPRODUCT((C:C="male")*(B:B="case")),D:D) but it doesnt seem to work. what am i doing wrong here?
    Last edited by excelnovice12345; 02-07-2011 at 03:54 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: average if sumproduct?

    If using XL2007 as implied by profile (and use of entire column references) use AVERAGEIFS

    Please Login or Register  to view this content.
    avoid use of entire column references with SUMPRODUCT / Arrays at all costs (inefficient).

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: average if sumproduct?

    Since you have 2007, try:

    =AVERAGEIFS(D:D,C:C,"male",B:B,"case")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-07-2011
    Location
    philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: average if sumproduct?

    so if i wanted to look for things in columns A, B, C for values x, y, and z respectively, how would i formulate it?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: average if sumproduct?

    =AVERAGEIFS(D:D,A:A,"x",B:B,"y",C:C,"z")

    where you are averaging column D based on those criteria.

    Have a look at Averageifs help in Excel

+ 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