+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 - chart conditional non-contigous range

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel 2007 - chart conditional non-contigous range

    I have a range of data.
    I can chart/plot it just fine but I want to do more.
    I want the resulting plot to use different colors based on the actual value of the data.

    The idea I have is to create a number of different data sources, and give each of them a different color.
    Then I could do the following
    Series1: all values less then 2
    Series2: values >2 and <4
    and so on.

    But how do I do this?
    I found the offset function, but I don't know how to produce a range based on a condition.

    Also if anyone has any proposal to solve this problem, I'm all ears.

    An example of the possible result (color smoothing is not required in my application) is attached.

    Edit: also I would like to use standard functions if possible, instead of looping through all the data points in VBA and color each of them separately.
    Attached Images Attached Images

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Excel 2007 - chart conditional non-contigous range

    Plot multiple series, one for each colour. Use formula to either plot the point or NA() to not plot the point.

    Post example workbook instead of picture if you need more help.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-19-2011
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel 2007 - chart conditional non-contigous range

    Quote Originally Posted by Andy Pope View Post
    Plot multiple series, one for each colour. Use formula to either plot the point or NA() to not plot the point.
    That's what I said: how do I tell the chart which points to plot and which not to plot?
    Your hint to a formula and NA() doesn't help me much.
    How do I define a series like that?
    I think you're suggesting to make a copy of the data where the unwanted cells are marked #N/A
    Is there a way to avoid making multiple copies of the data?


    Post example workbook instead of picture if you need more help.
    Take the one posted here.
    It would be nice for example to display speeds below 5 in red and speed higher then 5 in green, or anything else. Just show me how I can do it.
    Last edited by erupter; 10-20-2011 at 06:12 AM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Excel 2007 - chart conditional non-contigous range

    See here for details of conditional charts
    http://peltiertech.com/Excel/Charts/...nalChart1.html

+ 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