+ Reply to Thread
Results 1 to 5 of 5

Average of last 12 months

Hybrid View

JonSnow Average of last 12 months 06-17-2014, 08:18 AM
Special-K Re: Average of last 12 months 06-17-2014, 08:20 AM
JonSnow Re: Average of last 12 months 06-17-2014, 09:22 AM
Special-K Re: Average of last 12 months 06-17-2014, 08:30 AM
Richard Buttrey Re: Average of last 12 months 06-17-2014, 08:34 AM
  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Average of last 12 months

    Hi guys, I can't think of a way to explain this in short, please have a look at the attached spreadsheet.

    I've got a table on the right with monthly values in multiple years.
    I've got a top left 'table', where I'll change the month & year to the current month.
    I've got a bottom left 'table', where I want the 3 values mentioned to show up.

    1. I don't know how to get the value for C16 using a formula. Is there a simple way of doing it?

    2. You know how in formulas such as Countif & sumif you can put the condition as "<4", but not "<C3" (referencing a cell). Is there a way to put the condition as "<C3", where C3 is the value of the cell C3?

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Average of last 12 months

    Try
    "<"&C3
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Average of last 12 months

    Quote Originally Posted by Special-K View Post
    Try
    "<"&C3
    Sh*t, that actually works. That's solving half of my unanswered life questions, thanks man!

    Your formula seems to work too, however I'll go for mine below, because it's using formulae that I can understand.
    =(SUMIFS(H2:H25,G2:G25,C4-1,F2:F25,">="&C3)+SUMIFS(H2:H25,G2:G25,C4,F2:F25,"<"&C3))/12

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Average of last 12 months

    Try this too, though there's porbably a simpler way to do it.

    =AVERAGE(INDIRECT("H"&MATCH(C3,IF(C4=G2:G25,F2:F25,""))+2&":H"&MATCH(C3,IF(C4=G2:G25,F2:F25,""))+13))

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average of last 12 months

    Hi,

    Formula: copy to clipboard
    =AVERAGEIFS(H:H,G:G,C4-1)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Average by number of months
    By morbdetro in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2013, 06:36 PM
  2. [SOLVED] Average if day is Monday and within last 6 months
    By stiggz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2013, 12:25 PM
  3. [SOLVED] Average - 3 months / 6 months trend line ( array formula? )
    By ccernat in forum Excel General
    Replies: 3
    Last Post: 04-04-2012, 06:24 AM
  4. Average Months into Years/Months
    By mv835 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2011, 02:45 AM
  5. IF Then - using 12 months - ongoing average
    By harleypop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2009, 01:22 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