+ Reply to Thread
Results 1 to 7 of 7

Averageif over multiple sheets

  1. #1
    Registered User
    Join Date
    03-08-2015
    Location
    cleveland, ohio
    MS-Off Ver
    2013
    Posts
    48

    Averageif over multiple sheets

    I am trying to average elapsed time for various tasks across several pages. The pages are named after the date (2-27, 3-2,3-3, ect) I understand that Averageif is not able function in this example so i was trying to use a formula i found in another thread but i keep getting a reference error and i am not sure why. My task names are in column A and my elapsed time is in column E. My original formula for a single page is
    Please Login or Register  to view this content.
    . My borrowed formula is
    Please Login or Register  to view this content.
    I tried narrowing the pages down to just 2 of the sheets but still got the error. Please help i don't know where i am going wrong! Thank you!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Averageif over multiple sheets

    I think it is FAR easier to bring all the data to ONE tab then do your averafeifs on ONE data set.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Averageif over multiple sheets

    Here is a short explanation on how to do this.

    1. put all your sheet names in a list somewhere and give that list a named range
    2. =SUMPRODUCT(SUMIF(INDIRECT("'"&range-name&"'!T6:T1000"),A1,INDIRECT("'"&range-name&"'!M6:M1000")))

    A1 = the search criteria

    I agree with Mike that is is always easier to have your data all on 1 sheet, but I also understand that this is not always possible
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-08-2015
    Location
    cleveland, ohio
    MS-Off Ver
    2013
    Posts
    48

    Re: Averageif over multiple sheets

    You are correct and i am not able to list all the data on 1 tab, if i could i certainly would. However, I am still getting a reference error and i don't know what is going wrong. I have checked all my cells in the tabs i am referencing and none of them contain any errors. i have created a named range as you indicated. Could this have anything to do with they way the tabs are named? I have attached a spreadsheet to maybe give you a better idea of what is going wrong. Thank you sooo much for all your help!TEST.TASK.xlsx

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Averageif over multiple sheets

    Hi.

    1) Your Named Range list cannot contain the names of any sheets which do not exist within your workbook. Your current definition for TABS is:

    =Sheet1!$A$2:$A$24

    yet only A2:A7 contain actual values; the rest are blank.

    2) Your entries within that range must match precisely the names on the tabs. Currently you have actual dates in your list yet text representations of dates on the actual tab names. If you want to enter e.g. "2-27" into a cell without Excel converting it to a date, then precede the entry with a single apostrophe, or else pre-format the cell as Text.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    03-08-2015
    Location
    cleveland, ohio
    MS-Off Ver
    2013
    Posts
    48

    Re: Averageif over multiple sheets

    thank you soooooo much! i had wondered if it was a formatting problem.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Averageif over multiple sheets

    You're welcome!

+ 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] AVERAGEIF Multiple Columns Multiple occurrences
    By jeroenft in forum Excel General
    Replies: 4
    Last Post: 02-03-2015, 04:58 PM
  2. Averageif across multiple sheets returning #value
    By Bairdsly in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2014, 04:30 PM
  3. [SOLVED] AverageIF using multiple criteria in different columns in multiple worksheets
    By trubertiam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2014, 09:28 PM
  4. AVERAGEIF, defining range across multiple sheets
    By waringb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2013, 02:42 PM
  5. AverageIf across a range of sheets
    By Ducjes in forum Excel General
    Replies: 4
    Last Post: 07-06-2010, 03:40 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