+ Reply to Thread
Results 1 to 7 of 7

Graphing a large dataset

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Graphing a large dataset

    Hello,

    I have a daily time series (1/1/2007 to 12/31/2007) and numerical data corresponding to each day. I want to be able to use some type of lookup formula (such as index or match) so I can choose any month and then a table of daily data will be displayed for that month.

    I had a similar problem with an hourly dataset, which someone already helped me with. But when I tried to adjust the index and match formulas for my daily data, I got error messages.

    If someone could please take a look at the attached sheet and tell me where I'm going wrong, it would be much appreciated!

    Thanks!!

    Daily Template.xlsx

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Graphing a large dataset

    Hi CTM2012,

    See the attached file where I have used an array formula to obtain the required output. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Graphing a large dataset

    Try this in M6:

    =INDEX(B$6:B$370,MATCH(DATEVALUE($L6&"-"&$I$5&"-"&$I$6),$A$6:$A$370,0)) and copy down and across.

    You may have to rearrange this part "$L6&"-"&$I$5&"-"&$I$6" to match your local way of writing dates.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    06-13-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Graphing a large dataset

    Thank you Soren Larsen - your formula worked well.

    Thank you also DiliPandey, but I didn't use the array formula because it was very complicated.

    I have one more question. If I have the name of the month in one cell (ex: January), is there a formula I can use to return the month and year (January 2007)?

    I've tried the datevalue function but that gives me January 1, 2007. I just want the month and year.

    Thanks again!

  5. #5
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Graphing a large dataset

    If you only have a month in a cell, how do you know what year it is? If it's an entire date formatted only to show the month, then you can use the =MONTH() and =YEAR() formulas.

  6. #6
    Registered User
    Join Date
    06-13-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Graphing a large dataset

    Thank you!

  7. #7
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Graphing a large dataset

    You're very welcome! Remember to mark your thread as solved, it would be very helpfull!

+ 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