+ Reply to Thread
Results 1 to 6 of 6

Average using Sumif

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Average using Sumif

    Hi All,

    Need an help urgently, need to find the average amount for people based on level & rating. Like the way we get it from Pivot, i need to use it using formula.

    Have given the data below:

    Level Rating Amount
    2 1 100
    2 1 300
    4 4 400
    5 3 200
    2 1 300
    3 2 100
    4 2 500
    5 3 400
    3 4 200

    Rating
    1 2 3 4 5
    Level 2
    3
    4
    5

    I understand that using {=SUM((F8:F16=E20)*(G8:G16=F19)*H8:H16)}, i can take the total sum, but need the average amount.

    in the example given, for Level 2 with Rating 1, the answer is "233.33"

    Is there a formula which would result this?

    Thanks in advance

    PS: unable to attach the excel.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Average using Sumif

    Try

    =AVERAGE(IF((F8:F16=E20)*(G8:G16=F19),H8:H16))

    also an array formula

  3. #3
    Registered User
    Join Date
    12-16-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Average using Sumif

    Hi Bob,

    Thanks so much..it did worked..but for few cells, it returned DIV/0!. any suggestions. thanks

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

    Re: Average using Sumif

    Try:

    =IF(SUM((F8:F16=E20)*(G8:G16=F19)),AVERAGE(IF((F8:F16=E20)*(G8:G16=F19),H8:H16)),0)

    confirmed with CTRL+SHIFT+ENTER
    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.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Average using Sumif

    Try this:
    Please Login or Register  to view this content.
    Enter for non array formula.
    Quang PT

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Average using Sumif

    If you have Excel 2007 or 2010, you could use

    =IFERROR(AVERAGE(IF((F8:F16=E20)*(G8:G16=F19),H8:H16)),0)

+ 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