+ Reply to Thread
Results 1 to 7 of 7

Chart dynamic data range

  1. #1
    Registered User
    Join Date
    12-06-2016
    Location
    Florida
    MS-Off Ver
    OSX
    Posts
    8

    Chart dynamic data range

    I have a set of data for stocks in the following format :
    open,high,low,close

    I retrieve the data with a index and match function, so the number of lines varies depending on which data I pull.
    I then use this data to create a chart.
    The problem lies with the fact that the number of data varies and therefore alter the chart data range.
    How can the data range be modified automatically ?
    I tried to use a table but it won't resize automatically.

    Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Chart dynamic data range

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-06-2016
    Location
    Florida
    MS-Off Ver
    OSX
    Posts
    8

    Re: Chart dynamic data range

    I can't post the real spreadsheet due to some confidential information.
    So here is what I am trying to explain. In the GREEN data area, this is where I am ALWAYS getting the information by using an INDEX MATCH formula referring to another spreadsheet. I have the ticker symbol in cell D3 which guides which data is retrieved. So the GREEN data range will vary in length. I am showing the YELLOW area as an example.
    Now you can see that the YELLOW area will be shorter, but the Chart will still use the old area (longer). Result, the chart in YELLOW.example.PNG
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Chart dynamic data range

    I didn't ask for the real sheet. Mock up a sample. I am not going to mock one up for you!!

  5. #5
    Registered User
    Join Date
    12-06-2016
    Location
    Florida
    MS-Off Ver
    OSX
    Posts
    8

    Re: Chart dynamic data range

    i got one attached

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Chart dynamic data range

    There were no formulae in the file!! Oh well. I used formulae that are needed if selecting a Named Range which contains formula blanks:

    =$U$5:INDEX($U$5:$U$58,SUMPRODUCT(--(LEN($U$5:$U$58)>0)))

    I called it "Date". CTRL-F3 to view/Edit. I then adjusted the range of the chart to include column U. I then adjusted the X-axis range to be =Sheet1!Date and finally deleted the dataset "Date" from the Series box of the Select Data Source box.

    Is this what you wanted?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-06-2016
    Location
    Florida
    MS-Off Ver
    OSX
    Posts
    8

    Re: Chart dynamic data range

    Thanks Glenn ! I will check it out.

+ 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. Chart with Dynamic Data Range
    By Josiah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2016, 05:10 PM
  2. [SOLVED] Dynamic Chart VBA data range issue
    By Matthew1001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2015, 01:16 PM
  3. [SOLVED] chart based on dynamic range which resizes as per data in range-formula / vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 04:02 PM
  4. Creating a dynamic data range for a chart
    By martinrt in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-22-2013, 03:03 PM
  5. Excel 2007 : Dynamic Chart Data Range
    By SuperMaths in forum Excel General
    Replies: 2
    Last Post: 11-05-2010, 09:51 AM
  6. Dynamic Data Range for Bar Chart
    By Juhanen II in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 05-13-2009, 09:32 AM
  7. dynamic data range chart
    By helpplease! in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-15-2007, 08:20 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