+ Reply to Thread
Results 1 to 10 of 10

Dynamic Average Formula across multiple worksheets

  1. #1
    Registered User
    Join Date
    12-05-2016
    Location
    Los Angeles
    MS-Off Ver
    2016
    Posts
    8

    Dynamic Average Formula across multiple worksheets

    Hello Everyone

    I have searched the forum for the better half of the day, with no resolve. So if there is an answer out there, I apologize for wasting everyone's time.

    If you take a look at the workbook "Running Average" on the "Dec 16" Worksheet "Cell C56". I have this formula:
    =AVERAGE('Apr 16:Dec 16'!M34), which works great. I know that Cell M34 looks empty, but there is a formula with a hiddne format

    What I need is:

    as I add a new month "Jan 17" I would like the formula to automatically change from =AVERAGE('Apr 16:Dec 16'!M34) to =AVERAGE('Apr 16:Jan 17'!M34)

    I have tried to have a formula on a different worksheet and have Cell C56 reference the formula. But I end up getting the same number across all months, instead of getting the average leading up to that month.

    Please let me know if anyone out there know, thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Dynamic Average Formula across multiple worksheets

    Would you want to try the following

    Create 2 worksheets
    Rename the 1st as First
    Rename the 2nd as Last
    The "First" shall be placed at far left
    The "Last" shall be placed at far right

    Change the formula to C56=AVERAGE(First:Last!M34)

    Whenever you want to insert a new sheet, just place it before "Last" tab

    Please take note if you want to maintain the previous month average (before creating a new one), you shall copy and paste value for that particular month,
    if not the formula will also calculate the average for a new sheet.
    Last edited by wanmuhd; 12-06-2016 at 10:49 PM.

  3. #3
    Registered User
    Join Date
    12-05-2016
    Location
    Los Angeles
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Average Formula across multiple worksheets

    Hello Wanmuhd,

    Thank You for taking the time to look into this.
    I have thought about that, and I think it would impact the average by lowering it. I might end up using this method, but would like to avoid it.
    I need accurate numbers, people's jobs depend on it.

  4. #4
    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
    30,671

    Re: Dynamic Average Formula across multiple worksheets

    I don't think there is anyway of doing this without you having to change a formula.

    Why not simply add in all your sheets for the year and put the AVERAGE formula in each sheet. 10 minutes (slow) typing!

    I have looked at options and attach one for your interest if nothing else.

    Sheet "Parameter" has a list of named ranges which define months to be averaged.

    in "OCT", "NOV" and "Dec" sheets in H56

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Oct &"'!M34"),"<>0"))/COUNTA(Oct)

    with Oct replace by Nov and Dec
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-05-2016
    Location
    Los Angeles
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Average Formula across multiple worksheets

    JohnTopley thank you for the input,

    I am just not sure what is the point of one formula over the other.If I have to change the month by hand in either situation.
    Unless I am missing something. Please let me know.

  6. #6
    Registered User
    Join Date
    12-05-2016
    Location
    Los Angeles
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Average Formula across multiple worksheets

    Anyone else have any ideas?

  7. #7
    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
    30,671

    Re: Dynamic Average Formula across multiple worksheets

    See later posts from Davsth and myself.
    Last edited by JohnTopley; 12-08-2016 at 01:24 PM.

  8. #8
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Dynamic Average Formula across multiple worksheets

    I think the methods work even the simple one by wanmuhd. Test it yourself. If a sheet contains a blank cell, it is not included in the average calculation, even if the blank is the result of a formula.

    What were your concerns?

    Dav

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Dynamic Average Formula across multiple worksheets

    or change the formula in cell m34

    perhaps

    if(SUM(N8:N32)>0,SUM(N8:N32),"")

    So if nothing has happening in a month, it is not included in the calculations. I am assuming something takes place in the months, or you can use another trigger, based on a cell or date

  10. #10
    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
    30,671

    Re: Dynamic Average Formula across multiple worksheets

    Using First:Last is perhaps the only way to go .
    Last edited by JohnTopley; 12-09-2016 at 01:39 PM.

+ 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] Copy rows from multiple worksheets with multiple criteria - greater than dynamic values
    By stackout in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 04:36 PM
  2. [SOLVED] Dynamic Average of Difference Formula
    By skywriter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2015, 04:35 PM
  3. [SOLVED] sum() and average() formula with dynamic columns
    By umbata in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2015, 12:29 PM
  4. Getting an average across multiple worksheets
    By kd5649 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2014, 06:34 AM
  5. [SOLVED] average formula for dynamic range
    By rossg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2014, 07:41 AM
  6. Formula for Rolling Average from Multiple Worksheets
    By rstotty in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2012, 01:16 PM
  7. Average of Data with Dynamic Multiple Criteria
    By Hudas in forum Excel General
    Replies: 2
    Last Post: 04-08-2012, 07:27 AM

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