+ Reply to Thread
Results 1 to 10 of 10

How to get and automatically updated monthly average based on data from specific dates.

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    How to get and automatically updated monthly average based on data from specific dates.

    Hi All,

    I am going to try and explain this as best I can.
    The collumn most to the left (A) contains the date (yyyy-mm-dd). The data is recorded weekly and ranges from 2007 - present. In column X i have sales figures. For example:

    Column A
    2012-05-22 What i wish to have, is a column next to column X, that automatically writes down the average figure for each month. given that some months contain more
    2012-05-29 dates than others, it is not possible to simply repeat and average calculation per 4 rows. So far i have been manually taking the average in a row next to it,
    2012-06-05 but given the range of data, this will take a very long time (considering i have to do it for several sets of data). I hope someone can help!
    2012-06-12
    2012-06-19
    2012-06-26
    2012-07-03
    2012-07-10

    Column X
    923
    923
    943
    950
    970
    1000
    1000
    1030


    Thank You
    Dave K.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to get and automatically updated monthly average based on data from specific dates

    Insert two helper columns (Columns Z and AA)

    In Column Z enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down the length of the data. This will give you a serial number for the month and year.

    In Column AA enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down the length of the data. This will give a number beside the first occurrence of the serial number in column Z and blanks for all duplicates.

    In Column Y enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down the length of the data.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to get and automatically updated monthly average based on data from specific dates

    Newdoverman, thanks for replying so quickly, but i have run into a problem.

    For the first helper column (column z), excel tells me that there is an error in the first equation ( =TEXT(MONTH(A2)&YEAR(A2),"yyyymm") ), when i type it in. Is this notation compatible with 2010 excel? Also, the data that i am averageing starts on row 173 so i also tried the formula with A173, but still gave me an error. Do you think you could spot the problem?

    Thanks

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to get and automatically updated monthly average based on data from specific dates

    Can you upload a representative workbook? With such limited data as your example in the question, any number of things could be the problem.

    I use Excel 2010 so that isn't the problem. Are you entering the equation in row 2 of the worksheet in question? This is important because the cell references are for row 2. If you are starting in a different row, change the cell reference row number to the correct starting row. If there is still a problem, it is likely that the dates in column A are not real Excel recognized dates....can't tell without seeing. I wrote down the wrong formula....sorry about that, I must have been in a hurry because that is completely wrong.

    You say that you are starting in row 173 so the formulae should be:

    Column Z

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


    Column AA

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


    Column Y

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


    Sorry for the bad post.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to get and automatically updated monthly average based on data from specific dates

    Hi,

    I managed to make it work when I looked at the workbook you posted.

    Thanks again for the help.

  6. #6
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to get and automatically updated monthly average based on data from specific dates

    Hi again. I thought I'd ask you directly since you helped me earlier, as opposed to re-explaining the question. Simila
    r to my post before, I want automatically updated averages, but slightly different to the normal monthly average. I have two things I would like done with similar data on different files.
    On the first one, I would like a monthly average just like before, but this time it should be taken from the 16th (of the first month) to the 15th (of the second month). Given that my data is weekly, I would like then to average from the week containing the day closest to the 16th having a date above or equal to it --> to --> the week containing the day closest to 15th having a date below or equal to it. So for example, given that the data was taken for the following dates:
    04/04/2007
    11/04/2007
    18/04/2007
    25/04/2007
    02/05/2007
    09/05/2007
    16/05/2007
    23/05/2007
    30/05/2007
    06/06/2007
    13/06/2007
    20/06/2007
    27/06/2007
    04/07/2007
    11/07/2007

    The average would be first taken from 18/04/2007 to 09/05/2007 and then next would be taken from 16/05/2007 to 13/06/2007 etc.

    For the second one, I want quarterly averages but (for some reason) the company wants them bunched Dec-Feb, Mar-May, June-Aug, Sep-Nov.

    Please tell me if i'm being unclear with my explanation.

    Thanks,
    DK

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to get and automatically updated monthly average based on data from specific dates

    This problem is so different from the first one that you should start a new thread for it where a lot of people can have input. Right now, I can't even think of a starting point.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to get and automatically updated monthly average based on data from specific dates

    I think that I may have figured out (awkwardly) how to do this:

    The odd use of months starting on the 16th was really weird and I had to manually enter a table to get it to work.

    I think that this is about all that I can do in this area. (my head is spinning on this one)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to get and automatically updated monthly average based on data from specific dates

    I'm afraid i have "Insufficient permission" to view your file. If you can't change that, don't worry, im gonna make a new thread.

    Thanks

  10. #10
    Registered User
    Join Date
    08-21-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to get and automatically updated monthly average based on data from specific dates

    Never mind, it works

+ 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. Trying to average between dates and specific data points. - Problem
    By SadenShard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-09-2013, 12:07 PM
  2. [SOLVED] Monthly Average Based off a start and end date?
    By ImpetuousRacer in forum Excel General
    Replies: 9
    Last Post: 06-13-2012, 09:13 PM
  3. [SOLVED] Automatically create graphs based on specific data
    By Tino XXL in forum Excel General
    Replies: 2
    Last Post: 01-27-2012, 04:48 AM
  4. Calculating average months based on specific sets of data
    By Poisson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2011, 05:26 PM
  5. Replies: 1
    Last Post: 03-12-2009, 06:33 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