+ Reply to Thread
Results 1 to 8 of 8

Comparing daily data with monthly average

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Comparing daily data with monthly average

    Hi all,

    I have a huge database with daily data from 1971 to 2013, and each day has one entry.

    What I am trying to do is find the difference between the days value and that month's average.
    In other words:
    (1/Jan/1971) - (Average(Jan 1971))
    (2/Jan/1971) - (Average(Jan 1971))
    :
    (20/July2013) - (Average(July 2013))

    I have made a pivot table and can find the average for each month and I can also have the values show up un-grouped, but I have not found a way of comparing the two.
    Given the size of the file and the fact that the months are not regular, I was hoping you guys might be able to help!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Comparing daily data with monthly average

    What are the columns for date and data?

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Comparing daily data with monthly average

    Please Login or Register  to view this content.
    What does it mean?

    Show us a excel file, without confidentional information and manualy put in the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Comparing daily data with monthly average

    I was able to do this with a helper column.

    Insert this formula in a blank column:

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

    where A1 is the date you're referring to. Next, drag the formula down. This will group all months together by year.

    In the next column over put:

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

    And enter it as an array (Control + Shift + Enter)

    The formulas above assume column A has dates, column B has numbers to compare, and column I has the helper column.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Comparing daily data with monthly average

    Here's an example. Let us know if this helps you out.

    daffodil-dayminusaverage.xlsx


    Off to the side, I put actual day minus month average to check the work.

  6. #6
    Registered User
    Join Date
    07-24-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Comparing daily data with monthly average

    By the months are not regular, I mean that some months are longer than others(30 vs 31 days), and that the weekends don't show up eg 9 and 10 January or 16 and 17 January. Note also that some days don't have data such as 12 and 15 February. I am not familiar enough with working with dates to know how to deal with this.

    I have attached a sample of the data, with the first two months filled in with numbers I worked out manually.

    Sample Data Forex.xlsx
    Thanks for your help so far.

  7. #7
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Comparing daily data with monthly average

    With an Autofilter I filter all ND values and delete thise item.
    Then I inserted a new blank column A

    See the solution of that in Sheet2
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-24-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Comparing daily data with monthly average

    Hi guys, on second thoughts, I might as well post the whole problem in case you have suggestions on a better way to do it.
    Basically, what I am trying to do is see if volatility has increased in foreign exchange markets since currencies began to be floated.

    The way I am thinking of doing this is by calculating the standard deviation for each month and then plotting it on a graph.

    I have included a sample sheet below.full problem.xlsx

+ 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. AVARAGEIFS. Get the daily (or monthly) average value from 10 sec data.
    By istgiorgos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 09:05 AM
  2. Replies: 1
    Last Post: 01-29-2013, 06:27 PM
  3. Replies: 2
    Last Post: 04-28-2011, 07:55 PM
  4. Replies: 1
    Last Post: 07-11-2008, 05:57 AM
  5. [SOLVED] Daily and Monthly Average Macro
    By snake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-15-2005, 02:05 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