+ Reply to Thread
Results 1 to 5 of 5

Average IFS with Multiple Criteria AND Multiple Dynamic Columns

  1. #1
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Average IFS with Multiple Criteria AND Multiple Dynamic Columns

    Hi all,

    I am having a problem solving this so I hope you can help and attached the sheet with the result FYI.

    I would like an average of a number that is in multiple columns and using multiple criteria, the attached spreadsheet explains better.

    Thank you in advance

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Average IFS with Multiple Criteria AND Multiple Dynamic Columns

    perhaps in t5
    =SUMPRODUCT(($C$5:$Q$15)*($C$4:$Q$4=$T$4)*($B$5:$B$15=S6))/SUMPRODUCT(($C$5:$Q$15>0)*($C$4:$Q$4=$T$4)*($B$5:$B$15=S5))

  3. #3
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Re: Average IFS with Multiple Criteria AND Multiple Dynamic Columns

    Hi Davsth,

    Thank you for relying quickly but that returns a value of '145' and the answer should be 12 in T5, any other suggestions?

    Thank you
    Mark

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Average IFS with Multiple Criteria AND Multiple Dynamic Columns

    Please try at T5
    =AVERAGEIFS(C5:Q5,$C$4:$Q$4,T$4)

    or
    =AVERAGEIFS(INDEX($C$5:$Q$15,MATCH(S5,$B$5:$B$15,),),$C$4:$Q$4,T$4)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Re: Average IFS with Multiple Criteria AND Multiple Dynamic Columns

    Thanks both (Davsth, figured yours out in the end with a slight adjustment) all three worked very well in the end. Thank you

+ 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. Average, Median, multiple criteria, unique values, dynamic worksheet
    By branchoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2016, 12:04 PM
  2. [SOLVED] Need to establish an average across multiple columns where multiple criteria met
    By steeler11111 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2016, 06:01 AM
  3. Replies: 1
    Last Post: 02-15-2016, 04:35 PM
  4. Trying to find median & average for multiple columns with multiple criteria
    By help-meplease in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2016, 06:59 PM
  5. Average with Multiple Criteria and on Different Columns
    By noskcire24 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-12-2015, 09:01 PM
  6. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  7. Average of Data with Dynamic Multiple Criteria
    By Hudas in forum Excel General
    Replies: 2
    Last Post: 04-08-2012, 07:27 AM

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