+ Reply to Thread
Results 1 to 6 of 6

Auto Updating Range in charts

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Auto Updating Range in charts

    Hi, This is my first post here and hopefully im posting in the right area.

    I am trying to make graphs from data that i gather daily, but i want the graphs only to display the last +/- 50 points, but when ever i do this excel automatically plots the points from 0 - til last point.

    right now i am using dynamic name ranges

    Please Login or Register  to view this content.
    when ever i go above 22 in the previous code the range expands from 0, but if i go below 22 the plot shows the zoomed in version of what i want.

    Overall, is it possible to automatically plot the last 50 points in the data set?

    thanks,
    daniel
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Auto Updating Range in charts

    Let's go with your current formula which is for the last 25 cells. Do you want to plot the last 25 cells or the last 25 values? Can you set up your data without all the spaces? That would make everything much easier, maybe using borders to separate sets of 3?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto Updating Range in charts

    the data sets that are recorded are 3 per day, so the space is used as a divider so you can see the differences between days in the graphs. i would like to plot ideally the last 50 values which is more or less the last 68 cells.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Auto Updating Range in charts

    Try this formula. There's some variability based on # of blanks but this should work. You can replace 25 with a cell reference or a defined name constant to make it more versatile. Also, move "DZ" out to however far you think your series will go.

    =OFFSET($E$3,0,COUNTA($E$3:$DZ$3)+COUNTA($E$3:$DZ$3)/3-25/3-25,1,25/3+25)
    For 50 values, replace all the 25's with 50's.
    Does that work for you?
    Last edited by ChemistB; 08-01-2011 at 05:27 PM.

  5. #5
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto Updating Range in charts

    hi,first of all iwant to thank you for your help. The formula used does select the right number of values i want, but once again when this is graphed the range goes from 0- til the end. So basically the "zoom" to the most recent values is not working :/

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Auto Updating Range in charts

    Change the chart type from XY Scatter to Line chart. Then the X axis will be interpreted as a category axis and will start with the label for the first data point.

+ 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