+ Reply to Thread
Results 1 to 6 of 6

How do I split daily time series data into seasonality grid by years

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    How do I split daily time series data into seasonality grid by years

    Hey All,

    I have daily time series data from 2006-today : Column A = daily dates, Column B = values

    Im trying to build a tool that is able to plot a seasonality chart for the data I have: i.e. x axis = Jan, Feb .... Dec; y axis = values; Each series/line = a different year within the data range.

    I want to eventually be able to build a macro such that whenever i update the hardcoded data in column A and B, I run a Macro, that sorts the data and charts it, without the use of pivot tables

    I've attached the worksheet so it is easier to understand.
    Seasonality tool.xls


    What I've already tried:
    1. A vlookup method using the following formula: VLOOKUP(DATE(YEAR(H$1),MONTH($G2),DAY($G2)),$A$2:$B$1956,2,)

    Problems Im having:
    1. Having the grid pick up the values - i just get N/As
    2. Having the years column dynamic relative to the data i.e cells H1-O1 able to change with the data series in column A.

    Your help would be much appreciated

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I split daily time series data into seasonality grid by years

    h1:o1 are not dates just values so
    =VLOOKUP(DATE(H$1,MONTH($G2),DAY($G2)),$A$2:$B$1956,2,FALSE)
    change h1 to
    =YEAR($A$2)+COLUMNS($A$1:A1)-1 fill across format cells general
    Last edited by martindwilson; 09-14-2013 at 07:13 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-14-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How do I split daily time series data into seasonality grid by years

    Thank you Martin, i can now get the values. Much appreciated

    And how can i go about making the years headings dynamic relative to the data i.e cells H1-O1 able to change with the data series in column A??
    i.e. if i have data between 2003-2010, the headings automatically pickup 2003, 2004,...,2010

    And in turn the x-year average is also dynamic, taking the average for the dates I have i.e. if i have 2008-2013 data, it automatically adjusts to take the average over those years.



    I wont ever need to use more than 10 years of data

    Quote Originally Posted by martindwilson View Post
    g1:o1 are not dates just values so
    =VLOOKUP(DATE(H$1,MONTH($G2),DAY($G2)),$A$2:$B$1956,2,FALSE)

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I split daily time series data into seasonality grid by years

    see last post
    change h1 to
    =YEAR($A$2)+COLUMNS($A$1:A1)-1 fill across format cells general

  5. #5
    Registered User
    Join Date
    09-14-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How do I split daily time series data into seasonality grid by years

    Indeed, sorry missed the last line in your first response.

    Thank you very much for your help

    Regards

  6. #6
    Registered User
    Join Date
    03-20-2018
    Location
    Manila, Philippines
    MS-Off Ver
    2007
    Posts
    1

    Re: How do I split daily time series data into seasonality grid by years

    Hello. Is this formula also applicable to MS Office 2007? I followed the answer and applied it to the worksheet [Seasonality tool.xls], but I'm getting '#N/A'.

+ 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. Daily Time series data set
    By Belete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2013, 04:09 PM
  2. [SOLVED] Split Shift & Time Managment Grid based on 24 hour clock in 15 min increments
    By paxile2k in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2013, 08:23 PM
  3. Changing a time series from daily to monthly.
    By RKP in forum Excel General
    Replies: 3
    Last Post: 10-08-2011, 06:27 AM
  4. [SOLVED] How do I extract the month end value from a daily time series?
    By MTro in forum Excel General
    Replies: 2
    Last Post: 12-24-2005, 07:15 AM
  5. [SOLVED] how can I remove seasonality from my data
    By Tigger123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2005, 02:06 PM

Tags for this Thread

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