Excel chart changing all data labels from value to series name simultaneously - excel

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.

Related

Making a dynamic column line graph

I am trying to create a graph where the number of columns varies. what I have done is used name manager to label each of the possible columns (1-100). I have then used these named ranges to create a graph.
Each column in the table should be identified as a series, the issue is that I do not know how to change the number of series automatically, so that when data is added to the column the chart automatically added the series in. I tried to do this by naming the range as a table, this also did not work as it included the empty columns as series on the chart.
the data I am trying to use is as follows;
When I add data to another column I want to add that series to the graph. Is there a way of doing this? because all I have been able to find are examples where the number of rows are the only thing that is dynamic.

Suppressing Data Labels in Excel if #N/A Value

In Excel, I have a column chart with data labels. The source data consists of formulas which occasionally result in #N/A values. Currently, the data labels for #N/A points are literally displayed as "#N/A". Is there any way I can have Excel suppress the data label altogether if the underlying value is #N/A? If I use =IFERROR(A1,""), then that displays a 0 so that does not work.
You could set the number format of the labels to not display anything when it interprets a zero, if you don't want to display anything even when the formulas evaluate to zero.
There is a very in depth discussion of techniques such as this here:
http://www.mrexcel.com/forum/excel-questions/568361-charts-data-labels-using-%3Dna.html
I had this problem as well and found the easiest solution is to
duplicate the chart data fields
add those as new series to the chart data
change the series chart type for the new fields to a line chart with no line and no marker
show the data labels only for those new fields.
(column charts will show #N/A, line charts do not).

Getiing number of columns in Pivottable with VBA after applying pivot filter

I have created a pivotchart programmatically from a pivot table My code creates three bars for each set of data fetched. Each of the three bars needs to be formatted differently though the same for each set of data.
The problem is that I don't know how many sets of data there are and so I find myself unable to cycle through the seriescollection to set the points.
How do I get a count of the number of points in a seriescollection?
Thanks

Dynamic XY scatter chart

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

Order Stacked Column Chart in Excel by values

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.

Resources