+ Reply to Thread
Results 1 to 5 of 5

Average If array with mutliple criteria for one column and criteria from another column

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Tulsa, OK
    MS-Off Ver
    2010
    Posts
    10

    Average If array with mutliple criteria for one column and criteria from another column

    Hello,

    I am having a hard time getting a formula that will compute something that seems rather simple to me.

    Basically I would like an formula that will average a set of numbers for multiple criteria(for this example, days) from one range in addition to criteria from another range(position). Here is the formula I have been using that I thought would work well. This example refers to J18 in the attached workbook.

    =AVERAGE(IF((G2:G374=J3)+(H2:H374=J4)+(H2:H374=J5),F2:F374))

    J3 is one of the criteria(Skill, Mid, or big)
    J4 and j5 are criteria from the same range(Tue and Thu)
    F2:f374 is the range of data I want to average corresponding to J3, J4, and J5

    It is my understanding an averageifs will not work because it will not do multiple criteria in the same column.

    I have manually averaged some of the formulas to double check them and they are not computing accurately. I feel like I am missing something simple or easy that is not locking in the specific data I would like to compute. I would really appreciate it if someone could help me get this problem resolved. Thanks for your time.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: Average If array with mutliple criteria for one column and criteria from another colum

    Try this ...

    =AVERAGE(IF((G2:G374=J3)*((H2:H374=J4)+(H2:H374=J5)),F2:F374))

    Array formula.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Average If array with mutliple criteria for one column and criteria from another colum

    Reply withdrawn by GK. Wrong answer...
    Last edited by Glenn Kennedy; 03-28-2017 at 11:21 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    03-23-2016
    Location
    Tulsa, OK
    MS-Off Ver
    2010
    Posts
    10

    Re: Average If array with mutliple criteria for one column and criteria from another colum

    Thanks the help. It still doesn't seem to be calculating right. Can't understand what the issue could be

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,543

    Re: Average If array with mutliple criteria for one column and criteria from another colum

    Quote Originally Posted by jacksonrh4 View Post
    I have manually averaged some of the formulas to double check them and they are not computing accurately.
    If the formulas proposed are not yielding the expected results it would be helpful to tell us what the expected results are.
    Quote Originally Posted by jacksonrh4 View Post
    It still doesn't seem to be calculating right.
    Checking Phuocam's formula from post #2 it appears to yield the correct result.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 3
    Last Post: 03-07-2016, 09:54 PM
  2. Replies: 2
    Last Post: 09-30-2015, 06:10 PM
  3. [SOLVED] Get average of some cells of a column If criteria in a different column with vba not worki
    By capson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2015, 09:47 AM
  4. Replies: 1
    Last Post: 06-02-2015, 01:25 PM
  5. [SOLVED] Count of rows in an array that meet criteria in column 2 and different criteria in column3
    By reynoldslarry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2013, 01:51 AM
  6. To automate a list based of mutliple column criteria
    By money n da sank in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2008, 11:16 AM
  7. Replies: 2
    Last Post: 05-12-2006, 01:10 PM

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