+ Reply to Thread
Results 1 to 4 of 4

12 Month Average

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    South East, USA
    MS-Off Ver
    2010
    Posts
    2

    12 Month Average

    I am working on a spreadsheet with multiple sheets (excel 2010)

    The first sheet the user puts all the data. In the tables(MainData) first column it lists the months, then a few metrics:

    example

    Month Accuracy Resolution Rate

    Jan 2018 98% 99%
    Feb 2018 99% 98%
    Mar 2018 100% 99%
    etc...


    The second sheet is kind of a summary sheet for the user. They select a month from a drop down and they are shown that months metrics as well as the 12 month average for that month with the previous 11 months.

    I have the formula to get the average, however it only works if I enter it on the same page as the data and in an adjacent column:
    =AVERAGE([@Accuracy]:INDEX([Accuracy],MAX((ROW()-ROW(MainData[[#Headers],[Accuracy]]))-11,1),1))

    My question is what is a formula to calculate and pull over the average to the second page based on the month the user selects?

    Thanks!

  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
    79,404

    Re: 12 Month Average

    You can use a combination of AVERAGE and IF.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    02-05-2018
    Location
    South East, USA
    MS-Off Ver
    2010
    Posts
    2

    Re: 12 Month Average

    Attached. I have entered the info for 'Jane Doe' only for reference

    Thanks!
    Attached Files Attached Files

  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
    79,404

    Re: 12 Month Average

    This will get you started. First, change the formula in J11 to this:

    =EDATE(C11,-11)

    Then in J15:

    =AVERAGE(IF(MainData[Month]>='Jane Doe'!J11,IF(MainData[Month]<='Jane Doe'!L11,IF(MainData[Coaching]=Table4[Coaching],MainData[Accuracy]))))

    ... 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.

+ 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. Need a 3 month average that changes each month
    By Janet_824 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2016, 02:53 PM
  2. moving 12 month month growth average
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 04-11-2015, 12:26 AM
  3. How to get average in a month
    By geliedee in forum Excel General
    Replies: 4
    Last Post: 12-23-2014, 10:25 AM
  4. Formula for average duration for each month based on the ending month
    By bobby769 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2013, 11:18 AM
  5. Replies: 4
    Last Post: 05-24-2013, 01:24 PM
  6. Replies: 8
    Last Post: 11-17-2007, 12:09 PM
  7. =AVERAGE(IF(INT(MONTH(C:C)+2/3)=4
    By kathi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-28-2006, 07:00 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