+ Reply to Thread
Results 1 to 10 of 10

AVERAGEIFS formula where criteria range can be either of two value

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    AVERAGEIFS formula where criteria range can be either of two value

    I want to average a range if one of my criteria range equals EITHER one of two values.

    In the attached worksheet column G values should equal the column F values, but using the "correct" averageifs formula.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: AVERAGEIFS formula where criteria range can be either of two value

    I have a feeling this is wayyyyy too simplistic, but if you only have Y/N/Blank...
    =AVERAGEIFS(C:C,$A:$A,E1,$B:$B,"<>N")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: AVERAGEIFS formula where criteria range can be either of two value

    It does not seem to be working on my actual project.

    The options I have are actually O/TBD/Blank.

    This is the actual formula: COUNTIFS($C:$C,$C1,$M:$M,"<>O",$X:$X,">="&X2)

    Does the fact that it is countifs and not averageifs change things.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: AVERAGEIFS formula where criteria range can be either of two value

    Your latest post seems very different from your inital question?

    Do you want the average or the count?
    It seems that you have 1 criteria in column M and another 1 in column X

    Perhaps you need to upload another sample workbook that more closely matches what you want?
    Last edited by FDibbins; 11-25-2015 at 09:52 PM. Reason: fixed typos

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: AVERAGEIFS formula where criteria range can be either of two value

    Try this in F1:F2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: AVERAGEIFS formula where criteria range can be either of two value

    You are right FDIBS. I slothly assumed AVERAGEIFS and COUNTIFS are interchangeable. I actually have 3 criteria based on which I want to use the COUNTIF function, and one of those criteria is EITHER "O" or a blank cell.

    Will upload another workbook tomorrow. It's 3:30AM in Bulgaria. EEK!

    Flame - I will try out your answer later as well - thanks.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: AVERAGEIFS formula where criteria range can be either of two value

    You are welcome. Sleep well.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: AVERAGEIFS formula where criteria range can be either of two value

    This would be shorter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: AVERAGEIFS formula where criteria range can be either of two value

    Good news. Everything worked out as expected. Thanks for the help.

    It seems like, for my purposes, COUNTIFS and AVERAGEIFS were interchangeable.

    The gap in my knowledge was not knowing "<>", now that's fixed.

    In the attached spreadsheet column D ranks the data in column C, based on the specified criteria, of which one is that column B NOT be equal to O.
    Attached Files Attached Files

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: AVERAGEIFS formula where criteria range can be either of two value

    You are welcome. Glad to hear it worked out. Thank you for the feedback.

+ 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. AVERAGEIFS with multiple criteria on one range
    By ctsmith84 in forum Excel General
    Replies: 7
    Last Post: 04-23-2020, 11:31 PM
  2. [SOLVED] Averageifs formula same range but two different criteria
    By Alphabex in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-21-2015, 05:48 PM
  3. [SOLVED] AverageIFS multiple criteria in one range
    By AndreaJean18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 10:30 AM
  4. AVERAGEIFS and range for criteria?
    By MaverickBlack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2015, 05:35 AM
  5. [SOLVED] Macro for AverageIFS, with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-24-2014, 01:13 AM
  6. Averageifs formula with criteria as formulas
    By KCD in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-07-2013, 05:34 PM
  7. [SOLVED] Several formulas with specific range criteria (AVERAGEIFS, STDEV(IF), COUNTIFS)
    By thaphthia in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-11-2013, 05:22 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