+ Reply to Thread
Results 1 to 9 of 9

AVERAGEIf across multiple sheets

  1. #1
    Registered User
    Join Date
    06-09-2015
    Location
    Statesville, NC
    MS-Off Ver
    365
    Posts
    86

    AVERAGEIf across multiple sheets

    Hey everyone! I use Microsoft Office 365 for this particular file and I can't figure out how to average each metric on the AGENT sheet for each individual agent for the first 13 weeks. The metrics are in row 1. The only agents I want to average are the ones that are on the AGENT sheet. I tried =AVERAGEIF('Week 1'!A:'Week 13'!A,A2,'Week 1'!B2:'Week 13'!B2) in cell B2 of the AGENT sheet, but it gives me a #NAME error.

    Thanks for any help in advance!!
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: AVERAGEIf across multiple sheets

    First you have to make a named range. I utilized Q1:Q13.
    I then put your worksheet names in these cells and named the range weeks

    I then made the following formula which should work in in B2 and drag down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by dosydos; 05-24-2022 at 02:27 PM.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,749

    Re: AVERAGEIf across multiple sheets

    What dosydos did not mention was that your syntax is incorrect, but even worse, AVERAGEIF does not work across multiple worksheets.

    The correct syntax for a multi-worksheet range would be

    'Week 1:Week 13'!$A:$A

    which works only in a few functions such as SUM.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    06-09-2015
    Location
    Statesville, NC
    MS-Off Ver
    365
    Posts
    86

    Re: AVERAGEIf across multiple sheets

    Thank you. both for your input. Is there any other way to achieve the end result without using AverageIF?

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: AVERAGEIf across multiple sheets

    1) Put all data in 1 worksheet and after that a pivot table.

    2) Use Powerpivot.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    06-09-2015
    Location
    Statesville, NC
    MS-Off Ver
    365
    Posts
    86

    Re: AVERAGEIf across multiple sheets

    I tried this, but all I keep returning "0" instead of the correct value.

  7. #7
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: AVERAGEIf across multiple sheets

    see my post #2 with excel sheet attached

  8. #8
    Registered User
    Join Date
    06-09-2015
    Location
    Statesville, NC
    MS-Off Ver
    365
    Posts
    86

    Re: AVERAGEIf across multiple sheets

    Quote Originally Posted by dosydos View Post
    see my post #2 with excel sheet attached
    I got it dosydos. Thank you!

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,298

    Re: AVERAGEIf across multiple sheets

    Power Query

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Czeslaw; 05-25-2022 at 07:51 AM.

+ 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. Obtaining an averageif from multiple sheets
    By lschmidt21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2020, 11:00 AM
  2. [SOLVED] Averageif Across Multiple Cells in Different Sheets
    By HelpMePlease97 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-30-2019, 08:17 AM
  3. AverageIf using Vllokup through multiple sheets
    By smm3rmh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2018, 08:35 AM
  4. AVERAGEIF >0 (cells in different sheets)
    By vill in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-06-2017, 03:26 AM
  5. [SOLVED] Averageif over multiple sheets
    By mamachrissy1028 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-24-2015, 11:38 AM
  6. Averageif across multiple sheets returning #value
    By Bairdsly in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2014, 04:30 PM
  7. AVERAGEIF, defining range across multiple sheets
    By waringb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2013, 02:42 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