+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    12-03-2008
    Location
    US
    Posts
    2

    using two sets of ranges for one series, in scatter plot?

    I have two sets of data in two different locations on the worksheet, that need to be 'joined' together in the chart to create a continuous line. How can you insert two sets of ranges in one series for a scatter plot, or manually type in a few numbers and then tack on a range to follow?

    Example of how I've tried to do it:

    Series X values:
    = 0, 1, 2, 'select range from worksheet'

    or

    Series X values:
    = 'select range 1', select range 2'

    Excel says in both cases 'the formula contains errors' and will not allow it.
    Thanks for any help!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    You can have a series from 2 different ranges.
    This is what the series formula looks like,

    =SERIES(,(Sheet1!$A$2:$A$6,Sheet1!$E$12:$E$16),(Sheet1!$B$2:$B$6,Sheet1!$F$12:$F$16),1)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671
    Am I missing something as this is basic
    Code:
    =SERIES(,(Sheet1!$C$3:$C$7,Sheet1!$H$3:$H$7),(Sheet1!$D$3:$D$7,Sheet1!$I$3:$I$7),1)
    or when the ranges are 'named'

    Code:
    =SERIES(,(Book1!X_SERIES1,Book1!X_SERIES2),(Book1!Y_SERIES1,Book1!Y_SERIES2),1)
    Succes
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    12-03-2008
    Location
    US
    Posts
    2
    That must be made for both the x and y values at the same time in a single cell? You can't just combine the sets somehow in the Select Data window for the chart, in each separate range selection (x and y)? Thanks.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    Those are not worksheet formula.
    They are the formula that is displayed, in the formula bar, when a series is selected.

    You can select non-contiguous ranges via the Source Data dialog. Just use the normal SHIFT key method when selecting multiple ranges.
    Cheers
    Andy
    www.andypope.info

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.2.0