+ Reply to Thread
Results 1 to 3 of 3

Manually Enter X-Y Range Data to Series Values

  1. #1
    Registered User
    Join Date
    06-18-2008
    Posts
    32

    Manually Enter X-Y Range Data to Series Values

    I am trying to plot a simple line (y=-20) on a chart that I have. I would like to be able to do this without having the actual range data on chart. Ie XValues = 0:20000
    YValues = -20:-20
    When I select these values on my chart, it works perfect. When I try to enter a manual range in, it gives me an error. What do I need to do to correct this?

    Example: Right now my XValues = Sheet1!$A$1:$A$2

    Where A1 = 0 and A2 = 20000

    What is the difference between this and XValues = 0:20000?

    Included is a workbook with an example of what its doing. It's really basic and probably worthless, but if I am not making myself clear enough, it might help.

    I eventually want this to be entered in with a macro, but I figured the syntax would be the same, so I'll ask here.

    Thanks in advance,

    Eric
    Attached Files Attached Files
    Last edited by ebahr; 12-23-2008 at 01:35 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431
    With code you would use

    Please Login or Register  to view this content.
    manually you can select the series and then go to the formula bar. Highlight a range and press F9. This will convert range to array of values.

    So your series formula starts out as

    =SERIES(,Sheet1!$A$1:$A$2,Sheet1!$B$1:$B$2,1)

    and end up as

    =SERIES(,{0,20000},{-20,-20},1)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    06-18-2008
    Posts
    32
    Array worked wonders! Thank you,

    Eric

+ 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