+ Reply to Thread
Results 1 to 8 of 8

Is AVERAGEIFS the correct function to use?

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Is AVERAGEIFS the correct function to use?

    Hi,

    I'm sure there is a straight forward way of doing this but I have confused myself with trying to combine vlookup and averageifs etc.

    I need to return a value to A2 by matching the text in A1 to a cell/row in my large table of values elsewhere in the workbook.

    Once the row has been identified I'd like to average the values based on several criteria.

    The problem I seem to be having is the AVERAGEIFS function requires an average range (1 row of cells). When I'm working with a large array of cells.

    Any thoughts would be appreciated.

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Is AVERAGEIFS the correct function to use?

    Please post a workbook.

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Is AVERAGEIFS the correct function to use?

    Please see attached file.

    I am hoping to find the combined average score for the pupils during lessons 2,3,4 & 5 using a formula that can be copied onto a much larger worksheet.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Is AVERAGEIFS the correct function to use?

    Not sure about how could this efficient in a large workbook. Try DAVERAGE

    E1 enter 'DBase Criteria'

    E2, =H7=INDEX(B:B,ROW())

    Then in C3.

    =SUMPRODUCT(IFERROR(DAVERAGE($H$6:$R$1048576,MATCH({2,3,4,5},$H$6:$R$6,0),$E$1:$E$2),0))

    copy down
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Is AVERAGEIFS the correct function to use?

    Thanks for your reply Haseeb.

    I have confused things with my wording (ignore combined). I was trying to just return averages in C3, C4, C5 & C6.

    Ideally I would like to find the average using >1 and <6 within the formula for easy amending this going forward.

    Would this simplify the formula suggested?

  6. #6
    Registered User
    Join Date
    03-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Is AVERAGEIFS the correct function to use?

    I have attached the amended spreadsheet to avoid confusion.

    I am trying to match text and then apply the above criteria on the matched row of cells.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Is AVERAGEIFS the correct function to use?

    This will look for the name in H7:H11 & take the numbers in J7:M11 where name occur & Avg that row,

    =AVERAGE(INDEX(J$7:M$11,MATCH(B3,H$7:H$11,0),0))

    Does this helps?

  8. #8
    Registered User
    Join Date
    03-26-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Is AVERAGEIFS the correct function to use?

    Problem solved! Thanks for both formulas. Much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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