ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to add straight line from cell value in pivot table chart (https://www.excelbanter.com/excel-programming/450138-how-add-straight-line-cell-value-pivot-table-chart.html)

mehmood

How to add straight line from cell value in pivot table chart
 
How to add straight line from cell value in pivot table chart.

Peter T[_7_]

How to add straight line from cell value in pivot table chart
 

"mehmood" wrote in message
How to add straight line from cell value in pivot table chart.


If the data is not likely to update and the chart won't change, simply add a
line from Insert/Shapes (select the chart fist). If you are familiar with
VBA you could make a macro to move the line if/as required when the data
changes (possible but complicated).

A Pivot chart can only display series from the pivot data, you could add an
extra column of data all with same values (an average or target perhaps), ie
where you want your line to appear. If you've got a bar chart, select the
extra series and "Change Chart Type" to a Line type.

Alternatively create a normal chart based on the pivot data and add an extra
series with equal values. Similarly change the chart type of the extra
series to a Line type.

For both approaches to add a Line series in the chart, the source cells for
the line could link to your single cell.

Regards,
Peter T





All times are GMT +1. The time now is 12:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com