+ Reply to Thread
Results 1 to 4 of 4

Trying to make a dynamic chart to graph every OTHER row of data.

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Trying to make a dynamic chart to graph every OTHER row of data.

    Hi all,

    I know how to make a graph that references a name, so that as more columns of data are added to the spreadsheet the name updates and thus so does the graph.

    For example, I can create a name like this:

    TIMES =OFFSET(Time!$A$5,0,1):OFFSET(Time!$A$5,0,COUNTA(Time!$5:$5)-1)

    This will create a name called "TIMES" that creates a series using the second column in row A through the end of however many columns of data there are in row A. In my case, row 1 contains titles and this is why I am using an offset of 1 and -1 on the return for COUNTA - to ignore the first column of data.

    If I make a chart, and I create a Legend Entry that references TIMES:

    ='times.xls'!TIMES

    then I get a graph of this range of data, and the graph updates no matter how many columns of data I enter.

    The question
    I would like to create a name to follow every OTHER column of data. Basically I have columns of data that alternate between cold and warm start-up times. I cannot control this formatting as it is generated by another program.

    I would like to create a name that is for the series B5, D5, F5... for as long as there are columns of data. Then I need another name for the series C5, E5, G5... for as long as there are columns of data. My graphics will reference these two series. The idea is that as new pairs of columns are inserted in between columns A and B, the graphs will dynamically update.

    Any help would be greatly appreciated.

    Thanks,

    Steve

  2. #2
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Trying to make a dynamic chart to graph every OTHER row of data.

    So...any ideas?

    I tried to define a name and use CNTRL+select to pick every other field of data, but this does not dynamically update and in any case the graph does not plot such a name.

    Steve

  3. #3
    Registered User
    Join Date
    03-20-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Trying to make a dynamic chart to graph every OTHER row of data.

    Can you add another column to your data that has an alternating 0/1 value, and then just filter that column leaving only the desired rows exposed for graphing?

    Another possibility would be to use a pivot table/pivot chart which would also allow you to filter items (rows) out based on the data in a column.

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

    Re: Trying to make a dynamic chart to graph every OTHER row of data.

    I think you'd need to create each series manually or with VBA (over my head)
    Once your Times range is created, the others will be easy

    Cold1 = OFFSET(Times,0,1)
    Warm1 = OFFSET(Times,0,2)
    Cold2 = OFFSET(Times, 0, 3) and so on.
    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

+ 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