+ Reply to Thread
Results 1 to 14 of 14

How to Calculate Average for 12-Month Trendline

  1. #1
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    How to Calculate Average for 12-Month Trendline

    Hello,

    Can someone please assist in providing advice how to properly calculate an average for a twelve month trend. In the attached example, 2018 is broken up of multiple rows B3:G7 while 2019 was provided as a lump sum value.

    If you take a look at Row 8, I have summed up the data and then ran an average to get 17,286.

    Row 9, I took the average of each separate column B3:B7, c3:c7 and so on and took of average with 2019. Then i calculated an average of each average to get 9,572.

    13,655 is taking average of each column average for 2018 and taking the average of 2019.

    As you can see this data is proving me with 3 different averages. How can I create a proper average formula?
    Attached Files Attached Files
    Last edited by AverageJoe2015; 08-06-2019 at 11:37 AM. Reason: adding attachment

  2. #2
    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: Average Formula

    Looks like your attachment still didn't come through?
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    Re: How to Calculate Average for 12-Month Trendline

    Hello,

    I have uploaded the attachment.

    Thank you for your help
    Last edited by AverageJoe2015; 08-06-2019 at 11:39 AM.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: Average Formula

    After half a day, I will suggest that it is unclear exactly what kind of average you want to calculate. I expect that, before we can suggest a correct Excel formula, we will need you to explain exactly what these values represent and exactly what you want to do to average them. Some of that is probably less about Excel and more about statistics and the exact meaning of these numbers and exactly what you want your average to mean.

    As far as the Excel programming side of the question, computing an average is usually about feeding the correct values into an AVERAGE(), or AVERAGEIFS() function. In a problem like this, the real question is what values should go into the AVERAGE()/AVERAGEIFS() function.

    Sometimes it is preferable to compute the average as a sum/count function SUM(...)/COUNT(...) or SUMIFS(...)/COUNTIFS(...) or maybe even a SUMPRODUCT()/SUMPRODUCT() formula. Assuming you are already familiar with those formulas, it would again be about choosing what values go into those functions.

    Those are the kinds of functions I would expect to use to calculate this average. If you will help us understand exactly how you want to calculate the average, we should be able to help you put together a suitable formula that will calculate that average.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Average Formula

    Try with
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    Re: How to Calculate Average for 12-Month Trendline

    Hello,

    I am basically trying to take the average for the last twelve months and make a projection for the new month up to December 2019. When the new month data comes in I drop the actual data over the projected month and calculate a new forecast for the upcoming months.

    To further explain the problem I am experiencing, each row makes up an individual account with row 8 being the total. In my original analysis I have two tabs that break it out by year. For 2018, you will find the data B3:G7 with a bunch of other data in between the rows. I can't take the grand total in this example because it contains other accounts that I do not want to include in my average. To simplify the inquiry I placed the rows together but in my original analysis they are in different rows and tabs. My current formula reads the following (=average(2018'I99:N102,2019'E28:J28) which gives me a relatively low average.

    Ideally, I would create separate tabs for each individual account that contains data from Jan18-Dec 19. In this instance it would be easier to take the simple average equation as the account falls in the same row.
    Last edited by AverageJoe2015; 08-06-2019 at 11:38 AM.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: Average Formula

    I'm still not sure I understand exactly how you want to calculate the average or what the values in the sample spreadsheet actually mean.

    In my mind (to be fair, I am more of a chemist/engineer/scientist than a business finance guy), a twelve month average means total sales for the year divided by 12. If row 8 represents total sales for each month (and it is not clear to me that this is what they represent), then this average is calculated in N8. This average represents the single monthly sales value that, if each month's sales were equal to that value, I would get the same total sales for the year. Basically I am smoothing out the highs and lows and finding one single value that represents monthly sales. If that is the average you want to use, then N8 is the average that you want. I would expect that one would then use this average to assume that each month going forward gives the exact same sales value, which may or may not be accurate (is it reasonable to think that December is really that much higher than the other months?). If your end goal is forecasting, then maybe you want something more sophisticated than assuming each month gives the same sales.

    Of course, I expect there are other averages that could be used, and those would be calculated differently. I don't know what the row 9 values represent (other than the average of row 3 to 7, but I don't know what is in 3 to 7, either). N9 is calculating the average of those averages with the jan-jul 2020 values from row 8. I have no idea what this average represents -- other than some kind of average of averages. I also have no idea what the average in N10 represents (other than a different average of averages).

    It still seems to me that we are at the same question -- what average do you want to calculate? Exactly how do you intend to perform this analysis/forecast? Once we understand the algorithm you want to use, then we can help you program that algorithm into the spreadsheet.

  8. #8
    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
    81,249

    Re: Average Formula

    Administrative Note:

    Sorry this is late in the day, however ...

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  9. #9
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    Re: Average Formula

    I'm sorry this is a bit confusing. Yes, twelve month average in short is exactly what you are saying. N8 is ideally what I am trying to calculate,however, Row 3 through Row 7 are not lined up in the manner i have attached.

    So what I am trying to do is take sum of the rows that make up the division (ideally r8). I.E B3+B4+B5+B6+B7 for each month and then take the average for the last 12 months. As you can see from my formula above, the calculation takes the average of all numbers including the zero's thus lowering my average.

  10. #10
    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
    81,249

    Re: How to Calculate Average for 12-Month Trendline

    Thread title now fine - thank you.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: How to Calculate Average for 12-Month Trendline

    I don't understand. If N8 is the correct calculation, what do we want to do differently in row 8? As currently set up, the 0's in rows 3:7 do not lower the average in N8, because the AVERAGE() function in N8 is not (directly) seeing those 0s. It's not clear to me what you want to do differently than you are currently doing.

  12. #12
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    Re: How to Calculate Average for 12-Month Trendline

    Row 8 is ideally what I would like to calculate more specifically N8. The problem is that the data does not fall in the same manner as the attached example. Instead 2018 data and 2019 falls in two separate tabs, 2019 already has the data lined up in H8:M8 in my example. 2018 data however does not. It has data in separate rows (similar to my example row 3- row 7) and can not create a bunch of subtotals as the data goes as far as row 300.

    If you take the average(b3:g7,h8:m8) = 5,762 not 17,286.

    So how I can calculate 17,286 from my current set up. Is it as easy as creating a new calculation or do I need to do something else with the data?

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: How to Calculate Average for 12-Month Trendline

    A lot depends on exactly how your data are currently arranged and exactly what you are trying to do.

    Sometimes it seems like the best solution (especially for long term data management) is to get the data arranged in a good database format and then use pivot tables to do the summarizing.

    An average is just a sum divided by a count, so maybe something like =SUM(B3:G7,H8:M8)/12 would work. The 12 can be a fixed constant because you're adding up monthly values and trying to get a monthly average over a year's worth of data, so you know there will always be 12 months to average across.

    Or maybe use helper cells/rows/columns to extract the data from the different locations and bring it into a central "averaging" spreadsheet (like your example file) where you can compute the averages.

    A lot depends on exactly how this needs to fit into the overall workflow.

  14. #14
    Registered User
    Join Date
    05-01-2015
    Location
    los angeles, california
    MS-Off Ver
    professional pus 2010
    Posts
    19

    Re: How to Calculate Average for 12-Month Trendline

    Thank you sir for your feedback. I have reconstructed my spreadsheets and started the process of calculating a 12 moving average which works as you can see in the 1st tab Q3:V13. Does anyone know of an easier way to do this?
    Attached Files Attached Files

+ 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 formula needed to get average data
    By wiewie002 in forum Excel General
    Replies: 3
    Last Post: 10-22-2018, 04:05 AM
  2. Replies: 5
    Last Post: 09-11-2018, 10:29 AM
  3. Replies: 2
    Last Post: 04-17-2018, 09:45 PM
  4. [SOLVED] Using the Average formula in VBA gives different results to worksheet Average formula
    By Sc0ut in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-06-2016, 06:02 AM
  5. [SOLVED] Average formula that shows 0 but does not count in average
    By Lewster in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-11-2015, 04:49 PM
  6. [SOLVED] need formula to average cells but if one cell has N/A then dont average and input N/A
    By CityInspector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:16 PM
  7. Replies: 0
    Last Post: 01-22-2013, 12: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