+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Show Last 25 values in Chart

Hybrid View

  1. #1
    Registered User
    Join Date
    01-27-2011
    Location
    At Home
    MS-Off Ver
    2007
    Posts
    8

    Show Last 25 values in Chart

    I've got a chart with some dollar values that are all listed in Column I and get updated each time I add an entry to the sheet.

    What I'd like to do is have my chart dynamically adjust to show only the last 25 values I've entered.

    I've attempted this with the offset formula but I'm quite a bit confused by it and didn't have any luck.

    Column I
     $145.00 
     $140.00 
     $144.55 
     $153.64 
     $143.64 
     $148.19  < Show from this value down to the bottom of the list.
     $138.19  < When new value is added, show from this value to the bottom of the list.
     $128.19 
     $137.71 
     $127.71 
     $145.00 
     $140.00 
     $144.55 
     $153.64 
     $143.64 
     $148.19 
     $138.19 
     $128.19 
     $137.71 
     $127.71 
     $145.00 
     $140.00 
     $144.55 
     $153.64 
     $143.64 
     $148.19 
     $138.19 
     $128.19 
     $137.71 
     $127.71
    Thanks
    Last edited by jrs362; 01-30-2011 at 08:07 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Show Last 25 values in Chart

    In terms of OFFSET

    OFFSET($I$1,MAX(0,COUNT($I:$I)-25),0,MIN(25,COUNT($I:$I)),1)
    Last edited by DonkeyOte; 01-30-2011 at 11:42 AM. Reason: typos

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Show Last 25 values in Chart

    A non-volatile equivalent would be:

    INDEX($I:$I,MAX(1,COUNT($I:$I)-25+1)):INDEX($I:$I,MATCH(9.99E+307,$I:$I))
    per the OFFSET it is assumed the numbers are always contiguous

  4. #4
    Registered User
    Join Date
    01-27-2011
    Location
    At Home
    MS-Off Ver
    2007
    Posts
    8

    Re: Show Last 25 values in Chart

    OK, I tried both of those and could not for the life of me figure out exactly where to put those formulas. I attempted to put them in as the chart's source data but I kept getting an invalid formula error.

    I've attached a stripped down sample of my spreadsheet. Currently, I have the chart set to only use the first 50 rows available for data even though I only have 30 rows of actual data there. Since I have more than 25, the first 5 values (After the heading) in Column I should not be charted.

    What am I missing when trying to do this?
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Show Last 25 values in Chart

    I'm no Charting whizz I'm afraid but below should work:

    Name: _ChtData
    RefersTo: =OFFSET($I$2,MAX(0,COUNT($I:$I)-25),0,MIN(25,COUNT($I:$I)),1)
    
    Name: _ChtDataFinal
    RefersTo: =Evaluate("_ChtData")
    Right click on your Chart, Select Data then select "Balance" and click Edit and set Series Values as:

    =(Sheet1!$O$3,'Help (3).xlsx'!_ChtDataFinal)
    I can't find any other way (other than Evaluate) to have the Dynamic Range persist but as mentioned I am no charting expert - plenty here are and are likely to have better alternatives.
    Last edited by DonkeyOte; 01-30-2011 at 02:55 PM. Reason: missing words!

  6. #6
    Registered User
    Join Date
    01-27-2011
    Location
    At Home
    MS-Off Ver
    2007
    Posts
    8

    Re: Show Last 25 values in Chart

    It looks like that did the trick.

    Thanks

+ 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