+ Reply to Thread
Results 1 to 9 of 9

Combine 2 named-ranges for a single series line chart

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Combine 2 named-ranges for a single series line chart

    Hi,

    In the attached WB -

    Sheet A has a 3 cells (A1:A3) named range: AA
    Sheet B has a 7 cells (A11:A17) named range: BB

    In sheet C I would like to plot a 'Line' chart from a Single Series - the combination of AA+BB

    What I have in mind is that the single series source should be:
    2, 3, 1, 7, 5, 9, 8, 4, 6, 10

    In the series source I've tried to type:

    =Book18.xls!AA, Book18.xls!BB
    or:
    ='Book18.xls'!AA, 'Book18.xls'!BB

    Excel excepts only: =Book18.xls!AA OR =Book18.xls!BB but no both

    Any assistance will be appreciated,

    Elm
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Combine 2 named-ranges for a single series line chart

    Elmer, you can use range names and you can combine several non-contiguous ranges into one data series. In both cases, though, the data must be on the same sheet.

    In a workbook with three defined ranges, "first", "second" on Sheet1, "third" on Sheet2, the following formula can combine the non-contiguous ranges of the same sheet

    =SERIES(,(Sheet1!$A$1:$A$3,Sheet1!$A$7:$A$9),(Book4!first,Book4!second),1)

    The combined series formula omits the first argument, so the default series name is used. The second argument specifies the category labels of two non contiguous ranges. These could also be range names. The third argument specifies two ranges as data values.

    All ranges are on the same sheet.

    Range "third" is on Sheet2. As soon as you replace range "second" with "third" in above formula, it errors.

    hth

  3. #3
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Combine 2 named-ranges for a single series line chart

    Thank you.

    In other words, if I understood you correctly - my request, as posted, cannot be accomplished.

    Elm

  4. #4
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Combine 2 named-ranges for a single series line chart

    teylyn,

    Will you be kind to take a look at the following thread.

    http://www.microsoft.com/office/comm...ee3&sloc=en-us

    Did I misunderstood something ?

    Although the OP didn't attach a WB his question was very clear, so was the answer which got a "green V" which means it helped the OP.

    What am I missing ?

    Thanks, Elm
    Last edited by ElmerS; 03-23-2010 at 05:15 AM.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Combine 2 named-ranges for a single series line chart

    Dunno. My experience shows that it only works if the ranges referenced in the Series formula are on the same sheet. As soon as you reference ranges on another sheet, it bombs.

    I also tried to create a range name to combine the two ranges, but with no success.

    Maybe the OP in the linked question had a typo in the sheet name and their ranges were all on the same sheet. ?? Since the thread in your link is relatively recent, maybe you could enquire there?

  6. #6
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Combine 2 named-ranges for a single series line chart

    Thanks,

    As I count on your experience - the 'typo' option sounds more than logic.

    Elm

  7. #7
    Registered User
    Join Date
    12-02-2014
    Location
    Gijon, Spain
    MS-Off Ver
    2003
    Posts
    2

    Re: Combine 2 named-ranges for a single series line chart

    aqui tienes un ejemplo
    here is an example

  8. #8
    Registered User
    Join Date
    12-02-2014
    Location
    Gijon, Spain
    MS-Off Ver
    2003
    Posts
    2

    Re: Combine 2 named-ranges for a single series line chart

    sorry , I can't upload file

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Combine 2 named-ranges for a single series line chart

    Frank, welcome to the forum

    1st, this thread is over 4 years old, I doubt anyone is still following it
    2nd, I dont see who asked for a file from you?
    3rd, and more important, Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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