+ Reply to Thread
Results 1 to 3 of 3

Conditional Charting

  1. #1
    Forum Contributor
    Join Date
    06-30-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    251

    Conditional Charting

    I have three rows of data with which I would like create a scatterplot with 2 out of the 3 depending on a condition. Regardless of the condition, both charts will use the same Y axis (in this case, row 2). But depending on my decision cell (N4), I want to use either Row 3 or row 4 as my X axis. This seems like an obvious use of an IF statement but that doesn't seem to interact well with the SERIES function. Does anybody have any suggestions? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,844

    Re: Conditional Charting

    The SERIES() "function" is not really a function like other worksheet functions -- it only looks like one. You cannot "nest" other functions/formulas inside of the SERIES() "function" like you can regular worksheet functions.

    The way I would do this is have a helper row (row 5??) that will contain a suitable IF() [or other] function. =IF($N$4="use row 3",B$3,B$4) maybe. Then the X-values for the data series will point to this helper row.

    If you find the use of the helper row extremely offensive and absolutely unacceptable, I could see using the OFFSET() function in a dynamic named range for the X values argument. This is a little bit different way to use the OFFSET() function to create dynamic named ranges for charts than the usual examples (involving counting functions), but it should be readily doable if you are familiar with the OFFSET() function (https://support.office.com/en-us/art...e-b4d906d11b66 ) and how to name ranges using the OFFSET() function https://support.office.com/en-us/art...2-ABD7FF379C64

    Does that help?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    06-30-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    251

    Re: Conditional Charting

    Actually, I managed to figure this out by using a combo box, name manager, and CHOOSE function to basically toggle between the two different charts. Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Markers of graph (conditional charting)
    By Beginner Level in forum Excel General
    Replies: 1
    Last Post: 03-03-2012, 06:01 PM
  2. Conditional charting
    By omer123456 in forum Excel General
    Replies: 2
    Last Post: 12-20-2011, 09:26 PM
  3. Excel 2007 : Charting
    By plmichel in forum Excel General
    Replies: 1
    Last Post: 11-04-2011, 01:39 PM
  4. Excel 2007 : Charting
    By plmichel in forum Excel General
    Replies: 1
    Last Post: 11-03-2011, 03:54 PM
  5. Pass/Fail array using conditional formatting and charting
    By phstol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2009, 10:14 AM
  6. Dynamic Conditional charting
    By Qlychap in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-30-2007, 12:31 AM
  7. [SOLVED] Custom charting - Stacked charting with a line
    By Randy Lefferts in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-03-2005, 12:06 AM

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