+ Reply to Thread
Results 1 to 5 of 5

Calculating Avg of Many Individual Months

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Calculating Avg of Many Individual Months

    I collect data daily from 2005 to Present, when I collect the data I get the Date and the Price. I would create a simple table the 12 months (vertical) by the year (horizontal) and have to manually type =average(cells) tooo many times. Then I use the table I created to create a graph. I need a simplier and easier way to calculate each months average.

    So if I have column A: And Column B has the numbers for that day. Can someone help me figure out a simple IF function or something that would give me the averages for each individual month? I don't really want to do a pivot table, I would prefer an IF function or if you think a pivot table would be easier.

    1/2/2009
    1/5/2009
    1/6/2009
    1/7/2009
    1/8/2009
    1/9/2009
    1/12/2009
    1/13/2009
    1/14/2009
    1/15/2009
    1/16/2009
    1/20/2009
    1/21/2009
    1/22/2009
    1/23/2009
    1/26/2009
    1/27/2009
    1/28/2009
    1/29/2009
    1/30/2009
    2/2/2009
    2/3/2009
    2/4/2009
    2/5/2009
    2/6/2009
    2/9/2009

  2. #2
    Registered User
    Join Date
    06-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating Avg of Many Individual Months

    You could try using AverageIF function - If you break out the month and year and concatenate the month and year in a column right next to your date, then use AverageIf.

    Assuming your first row of data in in Row 3 and your dates in are in column A, price in column B, put the formula to concatenate in column C (=+MONTH(A3)&"-"&YEAR(A3) ) and the averageif (=+AVERAGEIF(C:C,C3,B:B)) in column D, then drag this down to alll rows and your average will populate for that month on each row. If you only wanted to see the average on the last row of data for that month then you could incorporate an IF statement.

    You can also create a 12 month table with the month and year concatenated like above and do your averageif back to your data, so it can be used for the graph.

    Pivot tables also have a graph function as well, so you could still use a pivot table if you found that eaiser
    Hope this helps!

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Calculating Avg of Many Individual Months

    tulsa,

    Attached is an example workbook based on the criteria you described.
    Row 1 is a header row so actual data starts in row 2
    Column A contains the dates
    Column B contains their values
    Column D contains the month names
    Row 1 starting in column E and going right has the 4-digit year.

    In cell E2 and copied over and down is this formula:
    Please Login or Register  to view this content.

    If you had Excel 2007 or higher, that formula could be shorted to:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Calculating Avg of Many Individual Months

    DUPLICATE POST - original is here: http://www.excelforum.com/excel-form...04#post3289604

    tulsa, welcome to the forum. Please don't duplicate posts - not only is it against the forum rules, but nobody wants to spend time providing a solution to a question that may already have been answered in another thread.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  5. #5
    Registered User
    Join Date
    06-20-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calculating Avg of Many Individual Months

    Thanks tigeravatar, this was exactly what I was looking for! Just finished up a spreadsheet in 5 min compared to an hour thanks to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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