+ Reply to Thread
Results 1 to 5 of 5

Scrolling through date based data on charts

  1. #1
    Registered User
    Join Date
    04-28-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    15

    Scrolling through date based data on charts

    Hi!

    I have a chart that looks at 9 series' of data over three months (see picture). The table it takes the information from goes through to December.

    I was wondering if there was a way to 'scroll' through the graph, three months at a time. i.e. May-June-July, June-July-August, July-August-September etc etc..

    Is this possible!?

    Graph Scrolling.PNG

    Thanks!
    Tom

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Scrolling through date based data on charts

    Please attach a sample workbook. It sounds like you can do what you want by creating named dynamic ranges and setting them up as the data source for the chart.

    Here are some articles that can help:
    http://www.utteraccess.com/wiki/inde...Dynamic_Ranges
    http://www.utteraccess.com/wiki/inde...namic_Charting
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Scrolling through date based data on charts

    Hi
    I used VBA code in Graph sheet to solve your problem.
    You can place the cursor in cell A1 to obtain the graph of the first three months. After that you can move on line one and get successive graphics as you intended.
    See the file Graph_Tri.xlsm

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Scrolling through date based data on charts

    Here is the approach using named ranges. The offset command for P_Month gets the selected and following two months. It uses MIN to keep the three month range from going past the end of the data.
    P_Month =OFFSET(Graph!$A$1,0,MIN(MATCH(Graph!$C$12,Graph!$A$1:$L$1,0),10)-1,1,3)
    P_S_1 =OFFSET(P_Month,1,0)
    P_S_2 =OFFSET(P_Month,2,0)
    P_S_3 =OFFSET(P_Month,3,0)
    P_S_4 =OFFSET(P_Month,4,0)
    P_S_5 =OFFSET(P_Month,5,0)
    P_S_6 =OFFSET(P_Month,6,0)
    P_S_7 =OFFSET(P_Month,7,0)
    P_S_8 =OFFSET(P_Month,8,0)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-28-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    15

    Re: Scrolling through date based data on charts

    Hi,
    I'll have a look at the files you've uploaded. In the meantime see a sameple from the workbook I am working on.

    Thanks!
    TomWork Tracker.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. charts are disappearing upon scrolling
    By hassan88 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-29-2015, 02:22 AM
  2. Analysing data based on change range of data including creating charts
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 11:18 PM
  3. [SOLVED] Finding data based on column and row from seperate charts
    By oreosxe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2012, 01:58 PM
  4. Scrolling Charts
    By mangeshp4 in forum Excel General
    Replies: 5
    Last Post: 01-28-2011, 07:29 AM
  5. Scroll Bars Scrolling Multiple Charts
    By Mordred in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-30-2010, 09:27 AM
  6. Charts based on date with combo boxes
    By ipodman in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-27-2007, 03:48 AM
  7. Create Charts based on data in Table
    By MAttenborough in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-11-2005, 07:05 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