+ Reply to Thread
Results 1 to 7 of 7

AVERAGEIFS and excluding a term.

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    New York
    MS-Off Ver
    Mac 2016
    Posts
    3

    AVERAGEIFS and excluding a term.

    Hi All!

    I have an formula issue that I can't seem to figure. Using the data below as an example how can I figure out the average of 'Range 2', if the world 'sun' is included in 'Range 3' and is not 'W' in 'Range 1'


    Also to note, I have to exclude 'W' in Range 3 as the real data set has a lot more than 4 choices in 'Range 3'

    I've been stuck on this forever and messing around with AVERAGEIFS but cannot get it to exclude all 'W' results in Range 1. so if anyone knows you would make my week!

    Screen Shot 2015-11-17 at 9.31.05 PM.png

    Thanks!
    Last edited by JoeyEdwards91; 11-17-2015 at 11:01 PM.

  2. #2
    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 and excluding a term.

    See if this syntax works.

    =AVERAGEIFS(range2,range1,"<>"&"W",range3,"*"&"sun"&"*",range3,"<>"&"W")

    the range3 <> W part is probably unnecessary. Range3 is already limited to finding anything with "sun" in it.

    If this doesn't work try uploading a workbook file.
    Last edited by FlameRetired; 11-17-2015 at 11:24 PM.
    Dave

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    New York
    MS-Off Ver
    Mac 2016
    Posts
    3

    Re: AVERAGEIFS and excluding a term.

    WONDERFUL thank you! That works for the data set provided. When I apply it to my actually data it doesn't quite work unless I type out "sun" and "W". Is there anything you can spot in my formula that would be directing it incorrectly?

    =AVERAGEIFS('Main Report'!D:D,'Main Report'!A:A,"<>"&"'CRIT'!B2'",'Main Report'!H:H,"*"&"'Properties'!F4"&"*")

    *as a note the formula is on the properties page

    Thank you again!

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: AVERAGEIFS and excluding a term.

    'CRIT'!B2 and 'Properties'!F4 look like cell reference so

    =AVERAGEIFS('Main Report'!D:D,'Main Report'!A:A,"<>"&'CRIT'!B2,'Main Report'!H:H,"*"&'Properties'!F4&"*")

    might works.
    Quang PT

  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 and excluding a term.

    beebo021999 spotted it. It was the quotes around the sheet names and reference cells. Those quotes are necessary for literals. Your new formula is now passing those strings by reference.

  6. #6
    Registered User
    Join Date
    11-17-2015
    Location
    New York
    MS-Off Ver
    Mac 2016
    Posts
    3

    Re: AVERAGEIFS and excluding a term.

    Thank you both so much! :D

  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 and excluding a term.

    You are welcome. 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. [SOLVED] averageifs excluding 0
    By keith740 in forum Excel General
    Replies: 3
    Last Post: 09-21-2015, 08:02 PM
  2. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  3. [SOLVED] Averageifs excluding span of time
    By atom29 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 11:36 PM
  4. Calculating short term and long term moving average in VBA
    By ixthus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2013, 02:40 AM
  5. Using Macro to separate credit term and non credit term
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2012, 02:22 AM
  6. Searching for more than 1 term
    By RightPlace in forum Excel General
    Replies: 12
    Last Post: 07-07-2011, 10:58 AM
  7. Template--for want of a better term
    By twilsonmi in forum Excel General
    Replies: 3
    Last Post: 02-08-2007, 03:09 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