+ Reply to Thread
Results 1 to 9 of 9

Modify =SERIES formula to always depict last ROW in column which is not zero?

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Modify =SERIES formula to always depict last ROW in column which is not zero?

    How do I modify this formula (see below) so that the last ROW which contains a number (non-zero) is automatically plotted in the graph (which this =SERIES is derived from)?

    =SERIES('Sheet1'!$D$2,'Sheet1'!$A$3:$A$62,'Sheet1'!$D$3:$D$62,1)

    In this case, "62" is my last row which now contains a number. I want to replace "62" with some formula code so it is automatically found.
    Last edited by ScubaGuy; 11-04-2013 at 01:06 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    If you are using vba then you need to dechiper the series formula, update the relevant pieces and then reapply new formula.

    if you know the end row then you might be able to get away with
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    I used this in a loop to accomplish my mission over the multitude of sheets. Problem is now, one of the graphs I am using it on has TWO series on it. This is only updating one of them. How do I modify the formula so that it updates both please?

    Thanks,
    Jim

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    loop through the series collection,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    Your Loop worked like a charm. THANK YOU. Now, is there any way to substitute the "62","63" with code that automatically finds the last row with a number in it and increases it row+1?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    one way

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    Yes, but how do I add that code into the chart's "=SERIES.." formula please, so the line chart automatically adjusts to add the next empty row?

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Modify =SERIES formula to always depict last ROW in column which is not zero?

    You da man! Thank you kindly!

    Jim

+ 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. Modify Formula to Find Last Column
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2011, 05:31 AM
  2. mixing column chart types for series and macro series?
    By riwiseuse in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-30-2010, 05:27 PM
  3. Modify series order
    By Jbentley in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-18-2009, 05:39 AM
  4. Formula to retreive a series of ranges in a column!
    By chriss in forum Excel General
    Replies: 6
    Last Post: 05-28-2008, 12:27 PM
  5. Depict relationship via Charts in Excel
    By mtlfire in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-01-2005, 04:33 PM

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