+ Reply to Thread
Results 1 to 6 of 6

Extract average based on month and reference

  1. #1
    Registered User
    Join Date
    08-30-2005
    Posts
    23

    Extract average based on month and reference

    Hi,

    I need to extract in sheet "Raport", based on reference and month, the average sales from the previous three months.

    Sheet "Sales"
    reference January 2013 February 2013 March 2013 April 2013 May 2013
    123456 10 20 30 40 50
    789101 60 70 80 90 100


    Sheet "Raport"
    Reference April 2013 May 2013
    123456 20 30
    789101 70 80

    I need in sheet "Raport" to display for reference 123456 and April 2013, the average sales from the previous three months. (Sheet "Sales" : 10,20,30 = average "30")
    For May to display 30, which is the average from February, March and April from sheet "Sales"....and so on.


    Can this be done?

    Thank you kindly.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Extract average based on month and reference

    In Raport B2, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across / down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Extract average based on month and reference

    Attache sheet and want to know, is month will be in sequence order then possible, use AVERAGEIFS function.

    Regards,
    Suhas

  4. #4
    Registered User
    Join Date
    08-30-2005
    Posts
    23

    Re: Extract average based on month and reference

    Hi Olly,

    Thank you for the formula, it's working, except for the fact that is not extracting the average of the previous three months.
    in sheet Raport, column April 2013 I need the average from Sheet Sales, January 2013-February 2013-March 2013.

    Now, it's extracting the average from February 2013-March 2013- April 2013.

    I need this formula to extract the previous three months. to move the average calculation to the left with one cell.

    can this be done?
    Thanks.

  5. #5
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Extract average based on month and reference

    try this maybe?

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-30-2005
    Posts
    23

    Re: Extract average based on month and reference

    Now it's perfect!

    Thank you very much!

+ 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] Extract reference numbers in given month with date?
    By domgilberto in forum Excel General
    Replies: 10
    Last Post: 06-11-2014, 09:30 AM
  2. Extract data based on month/year to a simple table.
    By maax555 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2014, 09:55 AM
  3. looking for a daily average based on the day of the month
    By sgtmwa325 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2014, 09:27 PM
  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. Average Cells Based on Month and Other Criteria
    By kr11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2013, 11:45 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