+ Reply to Thread
Results 1 to 2 of 2

Graph with variable data length

  1. #1
    Registered User
    Join Date
    05-27-2005
    Posts
    2

    Graph with variable data length

    Hello all.

    I have a a graph inside an Excel sheet.
    The graph displays some columns that holds numbers.

    There is another program (Matlab) that writes the numbers into these columns.
    I want the graph to show all of the range of the columns

    The problem is that I can not predict the length of the data.
    How can I configure the Excel graph to show the whole range of data?

    (The Matlab can write somewhere (in some cell) the length of the data.
    Can this help in some way?

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Let the matlab put data in your specified cells, lets say A1:B10. In another column, say C1:D100, enter the formula
    =IF(A1="",NA(),A1)
    in C1 and copy down for the max number of rows you want to put as a range for the graph. And in D1 similarly enter and copy down the following formula:
    =IF(B1="",NA(),D1)

    Link the columns C and D to your graph.

    When the columns A and B are blank, the corresponding rows in columns C and D will have #N/A which is ignored by the graph.

    Mangesh

+ 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