+ Reply to Thread
Results 1 to 4 of 4

Charting a Changing Data Range

  1. #1
    Registered User
    Join Date
    10-19-2005
    Posts
    7

    Charting a Changing Data Range

    I am attempting to create a material price variance report for work.

    As part of this I would like to have a line chart for each buyer, which shows the variances relating to each supplier for every month. I have set up my spreadsheet, so that I can select the buyer name from a drop down list and this in turn updates various charts and data tables.

    For this chart in particular I have to download information from our accounting system and then run it through a pivottable. As the months go by more and more suppliers may cause variances, but no buyer has the same number of suppliers (some have 5 suppliers, but some may have as many as 20).

    Whilst I can make a spreadsheet only pick out the information required from the pivottable to plot, it involves having some error values when a buyer only has a small number of suppliers, i.e. I make the formala show NA() or "" if there is no supplier to pick up.

    How can I make the chart not pick up these non suppliers in a legend/data table on the chart? It doesn't plot the points (as there is no data) but I don't want to see NA# in the legend for all the rows that don't return a supplier.

    Any help would be greatly appreciated.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Maybe you could hide the row/column for that supplier. This will remove the series from the chart is Plot visible cells only is set.

    Of if you are doing this by code adjust the series being plotted. Deleting any excess. Of course you will need to add any new series that appear.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-19-2005
    Posts
    7
    I am not coding this, simply using charts on a set range.

    I intend to send the file out to the buyers, who will be able to select their name from a drop down box. Therefore I'd like to avoid the need for them to hide rows etc and have it done automatically.

    Its just a shame that whilst NA() can be used to stop a graph plotting points, there isn't something similar to stop creating a series on a chart.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Without code the best you can do is add error handling to the formula and put out "" for the name rather than #N/A

+ 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