+ Reply to Thread
Results 1 to 9 of 9

Help with Average across multiple columns

  1. #1
    Registered User
    Join Date
    04-07-2021
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    4

    Help with Average across multiple columns

    Hey Everyone,

    First time poster long time browser.

    I'm trying to compile the average with multiple criteria using averageifs. one cell has supervisor's name and then there is 12 columns with different dates. I'm trying to get it to add all numbers that match supervisors name to said column that matches the specified date.

    I'm getting a #Value error and can't figure out why and all my googling has ended up with nothing.

    =AVERAGEIFS('Combined Data Base'!BK:BV,'Combined Data Base'!B:B,'Supervisor Data'!A3,'Combined Data Base'!BK:BV,'Supervisor Data'!B2)

    Any help would be great thank you!
    Attached Files Attached Files
    Last edited by dgsage; 04-07-2021 at 10:15 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with Average across multiple columns

    Welcome to the forum.

    You can't use a mix of range sizes, but there will be another way.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-07-2021
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    4

    Re: Help with Average across multiple columns

    That would explain why it's not working, I know I've solved this problem in the past but for the life of me can't remember how. I seem to remember doing an array. I've attached the WB.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with Average across multiple columns

    Try this:

    =IFERROR(SUMPRODUCT(('sample db'!$B$2:$B$39='sample supervisor'!$A2)*('sample db'!$C$1:$N$1='sample supervisor'!B$1),'sample db'!$C$2:$N$39)/SUMPRODUCT(('sample db'!$B$2:$B$39='sample supervisor'!$A2)*('sample db'!$C$1:$N$1='sample supervisor'!B$1)*('sample db'!$C$2:$N$39<>"")),"")

  5. #5
    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
    28,202

    Re: Help with Average across multiple columns

    =IFERROR(AVERAGEIFS(INDEX('sample db'!$C$2:$N$39,0,MATCH(B$1,'sample db'!$C$1:$N$1,0)),'sample db'!$B$2:$B$39,$A2),"")
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Help with Average across multiple columns

    sample supervisor

    B2=IFERROR(AVERAGEIF('sample db'!$B$2:$B$39,'sample supervisor'!$A2,INDEX('sample db'!$C$2:$N$39,,MATCH('sample supervisor'!B$1,'sample db'!$C$1:$N$1,0))),"")


    Copy across and down

  7. #7
    Registered User
    Join Date
    04-07-2021
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    4

    Re: Help with Average across multiple columns

    This was exactly what I was looking for thank you!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with Average across multiple columns

    Which of the three of us are you addressing? John's is the neatest.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of ALL those who helped.

  9. #9
    Registered User
    Join Date
    04-07-2021
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    4

    Re: Help with Average across multiple columns

    I was speaking about John's, I did mark as solved as well as gave out the reputation for the great help.
    Last edited by AliGW; 04-07-2021 at 12:10 PM. Reason: PLEASE don't quote unnecessarily!

+ 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] Average IFS with Multiple Criteria AND Multiple Dynamic Columns
    By MarkoGreenio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2020, 12:49 PM
  2. [SOLVED] Average ifs with multiple columns as the average range
    By moneypennie21 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2017, 08:14 AM
  3. [SOLVED] Average of Top Eight (and five) Records in Multiple Columns and multiple Days (in rows)
    By GeoffH1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2016, 01:51 PM
  4. Replies: 1
    Last Post: 02-15-2016, 04:35 PM
  5. Trying to find median & average for multiple columns with multiple criteria
    By help-meplease in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2016, 06:59 PM
  6. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  7. Average of Multiple Columns from multiple Pivot Tables
    By element32d in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-01-2013, 11:08 AM

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