+ Reply to Thread
Results 1 to 3 of 3

Using OFFSET function to update dynamic chart with scroll bar, but data does not scroll

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Using OFFSET function to update dynamic chart with scroll bar, but data does not scroll

    I've created a dynamic chart (see attached) and want to utilize a scroll bar so that data corresponding to the chart moves left or right with the click of either end of the scroll bar.

    This chart needs to go through to 'Week 52', since it will entail an entire year's worth of data. You can see where I have linked all of my OFFSET functions, and which cells they each represent.

    The problem is that when I scroll right on the chart, the data lines just clump together rather scrolling neatly across.

    Why is this?

    Thanks.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using OFFSET function to update dynamic chart with scroll bar, but data does not scrol

    You have a couple of problems here.

    The most obvious is the squishing problem. This happens because your formula in column F leaves a blank "" if the target data does not exist. This will be plotted as a zero value on a blank category. So you get all these zeros at the end, with the meaningful data being compressed at the beginning. To solve this, change your formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and fill down. The NA will be ignored.

    Now, you still have a problem. As you scroll, the data still extends out to August 16, and your X axis is set for automatic max, so the data is still plotted along the entire width of the chart. I get the sense that what you really want is for a fixed-scale chart to look like it's sliding back and forth. This is because you start with a chart that can accommodate the entire full data set. Scrolling the scroll bar simply cuts off the beginning of the data set, rather than shifting it. See attached for a different version that has the effect you want, but may not be what you really need.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: Using OFFSET function to update dynamic chart with scroll bar, but data does not scrol

    Quote Originally Posted by 6StringJazzer View Post
    You have a couple of problems here.

    The most obvious is the squishing problem. This happens because your formula in column F leaves a blank "" if the target data does not exist. This will be plotted as a zero value on a blank category. So you get all these zeros at the end, with the meaningful data being compressed at the beginning. To solve this, change your formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and fill down. The NA will be ignored.

    Now, you still have a problem. As you scroll, the data still extends out to August 16, and your X axis is set for automatic max, so the data is still plotted along the entire width of the chart. I get the sense that what you really want is for a fixed-scale chart to look like it's sliding back and forth. This is because you start with a chart that can accommodate the entire full data set. Scrolling the scroll bar simply cuts off the beginning of the data set, rather than shifting it. See attached for a different version that has the effect you want, but may not be what you really need.
    Seems you've read my mind, as that is exactly what I am looking for.

    Thank you!

+ 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. Attempting to auto-update a chart sheet that contains a scroll bar
    By seanpod in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-06-2015, 09:38 AM
  2. [SOLVED] Insert scroll bar and update cells when clicking on item in scroll bar window
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2014, 03:53 PM
  3. Offset Chart Scroll Bar
    By RyanCollier1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 12:13 PM
  4. Replies: 1
    Last Post: 09-20-2012, 08:17 PM
  5. Dynamic chart with check box & scroll functionality
    By pauli618 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-06-2010, 07:47 AM
  6. How to scroll data in a chart?
    By Bubo101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2005, 06:42 AM
  7. [SOLVED] dynamic chart with scroll bar
    By tiw in forum Excel General
    Replies: 0
    Last Post: 04-21-2005, 11:06 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