+ Reply to Thread
Results 1 to 8 of 8

Creating a chart that only displays lines with data

  1. #1
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Creating a chart that only displays lines with data

    Hi all
    Attached is an example of a file I have made. The graph at the far right is what I'm working on.
    When you select supplier 4 in the list box, you get the first 20 products from the main list, and the %.
    What I am trying to do, is when I change to supplier 5, they only sold 12 products, so I want the chart to ignore the blank rows, 13-20.
    I'm guessing dynamic named ranges might be what I need, but i am not sure. I can't wrap my head around it.
    Any help would be appreciated.
    In the real file, 20% of the Suppliers have 15-20 products, and 80% have 0-5 products, so having the graph only display the filled rows is even more beneficial.
    Thanks in advance!
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  2. #2
    Registered User
    Join Date
    01-18-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Creating a chart that only displays lines with data

    Hi Melvinrobb,

    It seems your question has already been answered in this forum. Try searching before posting your question. Check the below link.
    http://www.excelforum.com/excel-gene...el-charts.html

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Creating a chart that only displays lines with data

    I apologize for not being able to find the appropriate thread. I feel my "Threads Solved" to "Threads Started" ratio is high enough to show this wasn't an issue of me not respecting proper forum protocol.

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Creating a chart that only displays lines with data

    Hello
    Not sure if you've managed to find a solution from the link suggested above but I would use two dynamic named ranges.

    For the X axis values named 'Product':

    Please Login or Register  to view this content.
    And for the Series data:

    Please Login or Register  to view this content.
    Use these as your chart data sources.

    Hope this helps.
    DBY

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Creating a chart that only displays lines with data

    Thanks DBY.
    I will need to look into the OFFSET function and wrap my head around the formulas.

  6. #6
    Forum Contributor
    Join Date
    09-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    216

    Re: Creating a chart that only displays lines with data

    Hi Melvinrobb,

    Here are a few tutorials and videos that can help you out.

    Case Study - Creating a Dynamic Chart in Excel Using Offset Formula

    How-to Make a Dynamic Chart Using Offset Formula

    This is the Bomb: or How I came to love the Offset function

    Please let me know if you found these helpful.

    Steve=True
    Last edited by Steve=True; 01-25-2013 at 02:00 PM.

  7. #7
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Creating a chart that only displays lines with data

    HTML Code: 
    I found the above link to be the best explanation of the formula i have read bar-none. This function applies to so many scenarios that I run into, I will need to start using it.
    It seems to be ideal for scenarios where the end user of the file is not the individual who created it, which is the case for myself quite a bit.

    Thanks!

  8. #8
    Forum Contributor
    Join Date
    09-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    216

    Re: Creating a chart that only displays lines with data

    Awesome.

    So glad to help!

    Thanks for the great feedback.

    Steve=True

+ 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