+ Reply to Thread
Results 1 to 8 of 8

Add another criteria

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Add another criteria

    =AVERAGE(IF(B:B=I6,IF(IF(B:B=I6,ROW(B:B),"")>=LARGE(IF(B:B=I6,ROW(B:B),""),H5),C:C,""),""))

    Say I have this formula already lined up, how would I add another criteria (If I want C:C=H6 to be added) in here?

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Add another criteria

    bumpbumpbump

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,671

    Re: Add another criteria

    Not sure what the formula is doing as there appears to be (to me!) extraneous IFs.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Add another criteria

    I agree with John, it's hard to decipher what the formula is doing...
    But if I had to guess, try

    =AVERAGE(IF(C:C=H6,IF(B:B=I6,IF(IF(B:B=I6,ROW(B:B),"")>=LARGE(IF(B:B=I6,ROW(B:B),""),H5),C:C,""),"")))

    I also recommend NOT using entire column references like C:C, limit it to the actual used area like C$2:C$100


    And if that's not it, you'll have better luck if you just explain in words what the formula is supposed to do.
    Maybe attach a sample book

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Add another criteria

    Quote Originally Posted by Jonmo1 View Post
    I agree with John, it's hard to decipher what the formula is doing...
    But if I had to guess, try

    =AVERAGE(IF(C:C=H6,IF(B:B=I6,IF(IF(B:B=I6,ROW(B:B),"")>=LARGE(IF(B:B=I6,ROW(B:B),""),H5),C:C,""),"")))

    I also recommend NOT using entire column references like C:C, limit it to the actual used area like C$2:C$100


    And if that's not it, you'll have better luck if you just explain in words what the formula is supposed to do.
    Maybe attach a sample book
    Quote Originally Posted by JohnTopley View Post
    Not sure what the formula is doing as there appears to be (to me!) extraneous IFs.
    Sample.xlsx

    Does this work?

    Basically for Team A, I want to see the last 5 and 10 averages for them on the road and home.
    That was why I needed the average if function. Thanks in advance.

  6. #6
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Add another criteria

    bump
    bumpbump

  7. #7
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Add another criteria

    still need help.

  8. #8
    Registered User
    Join Date
    04-25-2013
    Location
    West Coast
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Add another criteria

    Need help with an average formula.

+ 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: 7
    Last Post: 07-07-2014, 09:48 AM
  2. [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
  3. Replies: 1
    Last Post: 09-03-2013, 07:41 PM
  4. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 PM
  5. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  6. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  7. [SOLVED] create drop down box to select multiple criteria and link macro to each criteria
    By anand_erin in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-03-2012, 06:35 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