+ Reply to Thread
Results 1 to 8 of 8

Average ifs with multiple columns as the average range

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Average ifs with multiple columns as the average range

    I am sure the answer to this is already out there somwhere...

    if I use average formula:
    =AVERAGEIF('Customer Experience 16-17'!$B$2:$KB$22,"CAT",'Customer Experience 16-17'!$C$2:$K$22)

    I get a result

    however if i try and add another criteria using AVERAGEIFS
    =AVERAGEIFS('Customer Experience 16-17'!$C$2:$KB$22,'Customer Experience 16-17'!$B$2:$B$22,"CAT",'Customer Experience 16-17'!$O$2:$O$22,"DOG")I get a VALUE error,

    there has to be a way around this????

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Average ifs with multiple columns as the average range

    You seem to be using ranges of very different sizes. AVERAGEIFS likes the criteria and average ranges to be the same size. From the Excel help file:

    "Unlike the range and criteria arguments in the AVERAGEIF function, in AVERAGEIFS each criteria_range must be the same size and shape as sum_range. "

  3. #3
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Average ifs with multiple columns as the average range

    HI sorry I did make a slight typo in the second formula it should read

    =AVERAGEIFS('Customer Experience 16-17'!$C$2:$K$22,'Customer Experience 16-17'!$B$2:$B$22,"CAT",'Customer Experience 16-17'!$O$2:$O$22,"DOG")I get a VALUE error,

    however the issue is till the same I am asking for a workaround for the problem you described - the average range (C2:K22) is not the same size as the criteria range as I want to average multiple columns based on two different criteria in different columns B2:22 & O2:22) this is what I am asking for a workaround for.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Average ifs with multiple columns as the average range

    What is being averaged, though? If the row has CAT in column B and DOG in column O, where are the numbers that should be included in the average? It would help immensely if you could post a small sample file (Use: Go Advanced --> Manage Attachments) so I could see how your data is arrayed.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Average ifs with multiple columns as the average range

    Try this array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Last edited by AlKey; 02-14-2017 at 06:18 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Average ifs with multiple columns as the average range

    Hi, AlKey, I have tried this and it doesn't bring back the right answer? I have attached a test spreadsheet with the formula you have suggested in cell D 25 to demonstrate as far as I can see the average for this selection should be 4.5 but the formula returns 4.67?

    CAntosh - please see the attachment the figures to be averaged are in columns C-K and the criteria are in columns B and O
    Attached Files Attached Files

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Average ifs with multiple columns as the average range

    You have given us a calculated range selection as C2:K22 however, the range on your attached file is C2:N22. When I adjusted my formula to C2:N22 I get the result of 4.5
    Here is the same formula with an adjusted range to C2:N22

    Still an array formula. Must be entered with Ctrl+Shift+Enter key combination
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    TEST SPREADSHEET.xlsx

  8. #8
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Average ifs with multiple columns as the average range

    Hi I should have said I only needed the average of the columns C-K L-M are irrelevant - left them in in case it made a difference. however I have tried the formula again with the C2:K22 range in and it works. one question just in case I need it. if I had to add a third criteria to the equation how would I do it?

+ 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. trying to find the average in multiple columns
    By superchew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-10-2016, 06:03 PM
  2. average ifs with average range in different lines / columns
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 12-23-2015, 07:49 AM
  3. 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
  4. Average for multiple columns of data
    By adamnoakes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2014, 11:07 AM
  5. Average GP from multiple columns with criteria
    By t+ccyco in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-30-2013, 07:06 PM
  6. How Do I Average A Range On A Different Worksheet Then Paste The Average To A Cell
    By Cfallscat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2011, 04:14 AM
  7. Average columns across multiple sheets
    By Stayfair in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2011, 09:10 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