+ Reply to Thread
Results 1 to 4 of 4

How do I combine AVERAGEIFS with INDEX & MATCH?

  1. #1
    Registered User
    Join Date
    08-31-2017
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    15

    How do I combine AVERAGEIFS with INDEX & MATCH?

    Hello,

    I have attached my example file with what I'm describing below.

    In my "DATA" sheet:

    1. There is the "Sample" column (Column A), the "Result" column (Column B) & the "Validity" column (Column C).

    2. Using AVERAGEIFS, I'm able to get the average result from Column B if the sample number matches in column A & there are blanks in Column C, eg. < AVERAGEIFS(DATA!$B:$B,Data!$A:$A,"Sample",Data!$C:$C,"" >

    Unfortunately, I often need to swap sheets between workbooks & sometimes these new sheets have the "Sample", "Result" & "Validity" on different columns.

    I'm looking for a way for the formula to automatically know which columns to use in the AVERAGEIFS criteria array, based on the header, much like what INDEX+MATCH can do with individual results.

    Is it possible?
    Attached Files Attached Files
    Last edited by byteroom; 08-27-2019 at 04:19 PM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How do I combine AVERAGEIFS with INDEX & MATCH?

    In D3
    Please Login or Register  to view this content.
    Columns covered A:Z, Any Column can be any where in that range.
    If required You can change the range by changing A:Z
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    08-31-2017
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    15

    Re: How do I combine AVERAGEIFS with INDEX & MATCH?

    Thank you, it works exactly as I hoped.
    By changing the code slightly as below, it still works as yours but with a higher column range & no alphabets for the rows.

    Please Login or Register  to view this content.
    Last edited by byteroom; 08-27-2019 at 02:38 PM. Reason: typo

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How do I combine AVERAGEIFS with INDEX & MATCH?

    Quote Originally Posted by byteroom View Post
    Thank you, it works exactly as I hoped.
    By changing the code slightly as below, it still works as yours but with a higher column range & no alphabets for the rows.

    Please Login or Register  to view this content.
    I did not understand " with a higher column range & no alphabets for the rows"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Combine If with Index Match
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2019, 12:54 PM
  2. Combine SUM, INDEX and MATCH
    By abrj in forum Excel General
    Replies: 7
    Last Post: 12-14-2018, 02:56 PM
  3. [SOLVED] Combine INDEX(MATCH with INDIRECT (maybe?)
    By sma365 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2017, 04:41 PM
  4. Using INDEX, MATCH, AVERAGEIFS, AND FVSCHEDULE together
    By derpygoat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2017, 03:01 PM
  5. [SOLVED] Index/Match and AverageIfs (I think)
    By opsanalysis07 in forum Excel General
    Replies: 3
    Last Post: 10-08-2014, 05:17 AM
  6. [SOLVED] Combine MATCH and INDEX
    By SubwAy in forum Excel General
    Replies: 13
    Last Post: 05-31-2012, 11:53 AM
  7. How to combine the INDEX and MATCH functions?
    By Anna A in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2010, 03:47 PM

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