I am trying to create a dynamic XY scatter chart. Basically the chart is based on two columns. The first is the client name and the second a number which I want to plot on the XY scatter graph. The client name will be in the legend entry and the horizontal access will contain the value.
What I need however is a dynamic chart that changes based on the number of clients I have. The problem I have is that because the legend series is the one that changes I can't use a named range and if I put it in the Chart data range it changes to the exact reference. Any ideas would be appreciated
You can use a macro in your Worksheet_Change event to dynamically update a named range using Range('First Cell of the Data Range').CurrentRegion
Related
I was looking for a similar problems, but couldn't find an answer to this issue. I have a huge blank space on the side of my graph.
I cant change the axis setting because my graph auto updates when new data is entered. I have also cleaned the table, so there is no empty data in the table.
my graph
That means your Axis labels or Series values are derived by a formula. In order to deal with the scenario, create two dynamic named ranges and use them as series for the chart.
Assuming your axis labels are in column B, create a named range using the formula given below...
=OFFSET(Sheet1!$B$2,,,COUNTIF(Sheet1!$B:$B,"?*")-1)
Same way create another named range to hold the series values.
And then right click the chart --> choose Select Data --> select the series and the axis label one by one --> Edit --> And in the series values or in the axis label range, use the relevant named range using the formula given below..
Sheet1!YourNameRangeForAxisLabel
Sheet1!YourNameRangeForSeriesValues
Here Sheet1 is the sheet which the named ranges belong to.
Later this would be changed automatically and reflect the workbook reference correctly.
I am trying to build a chart which dynamically updates the series' selected based on user-defined selections from a drop-down menu.
Purpose is to create chart which displays n-series of data based on n-selections, e.g.
=Output!$P$36:OFFSET(Output!$O$35,IF(Output!$C$4="RANK",COUNT(Output!$S$34:$S$38),COUNT(Output!$S$34:$S$38)+3),COUNTA(Output!$P$35:$W$35))
The named range dynamically updates the chart area (i.e. row labels, column labels and data range). I reference it correctly i.e. as ='filename.xlsm'!named_range_here in the "Chart Data Range" section.
When I do this, the Chart Data Range resets itself [help]
How can I tell excel to stop showing blank series (e.g. 2 blank series of 5 when i want it to display the 3 series which have values) [ideas please]
When you apply a Name to the entire chart source data range, it is converted into its address. To keep dynamic Names, you need to define a Name for each distinct X and Y value range, and insert these into the respective series formulas.
If you're not shy about VBA, you can still make it work, following the approach in my tutorial Dynamic Chart Source Data.
I am currently creating a column chart that compares two years of sales data (2012 and 2013). I want to show the data in a table below the column graph that also includes a percentage change. I have this all figured out, but cannot seem to figure out a way to eliminate the percentage change column from the graph itself.
So my question is how can I keep the % change data in the chart below the graph but eliminate it from the column graph itself??
Thank you.
Patrick Wilson
If it's in the table it's in the chart. A few work arounds:
Make the series fill for % bars no fill and same for the outline
Plot it on a second axis and format such that this axis is not displayed
Fake the table, using cells and don't use the data table. Format and position the chart above it.
In my experience the 3rd one is the most work, but the best. Chart tables are hard to format.
I change the chart type (ie. bar chart) and the switch back to the pie chart and it worked. Hope it works for others. Scott
For a bar chart, I change the chart to a combo, make the data I don't want shown a line and then format it so that there is no fill or border, and delete the legend and select "Data Table with Legend Keys" No color will show next to the row of data not visible on the on the chart.
I am having this problem in excel stacked column chart while trying to change the labels. My graph has multiple columns and hundreds of stacked values (series) in each column.
By selecting chart then from layout->data labels->more data labels options ->label options ->label contains-> (select)series name, I can only get one series name replacing its respective label values. For more than hundred series stacked in columns i want them all to be changed at once, is there any way out? why it does not change them all at once?
I know this is old but I wanted to post what I figured out. I was having the same problem in the pivot table chart. I was unable to change ALL of the labels at once. What I did was remove the series from the chart all together. I then was able to select the "series" data label and have it change all the labels. After I did that I simply added the series back in and it populated all of my data labels with the "series" information.
I was looking at the stacked column example here: http://office.microsoft.com/en-us/excel-help/present-your-data-in-a-column-chart-HA010218663.aspx.
I wanted to know how I can re-arrange the 3-D column chart to show regional sales by descending order of total sales without modifying the excel sheet data.
Basically, how can I modify how the data is being displayed in the chart without making any external changes.
Although normally stacked bar charts are plotted as ranges they can be plotted cell by cell. Once you have decided the order (ie Southwest, Northwest etc in the linked example) the horizontal axis can be plotted as =(Sheet1!$A$5,Sheet1!$A$2,Sheet1!$A$4,Sheet1!$A$6,Sheet1!$A$3) and each of the data series in the same way.