You cannot add a trendline directly to a PivotChart in Excel for Microsoft 365 on Windows. To show a trendline for pivoted data, build a regular chart from a range linked to the PivotTable results, then add the trendline to that chart.
Why a PivotChart Has No Trendline Option
A PivotChart is tied to its PivotTable: its series, categories, and displayed values respond to the fields, filters, and layout of that table. Excel treats it differently from a standard chart, and does not offer its usual trendline feature for PivotCharts. Depending on the chart and ribbon context, the Trendline command may be unavailable or absent; changing chart types does not remove the PivotChart restriction.
A trendline is a calculated line fitted to a series of chart values. It is not the same as a moving average, a total row, or a line connecting the values. The distinction matters because the data in a PivotChart is already summarized. For example, a PivotTable might group transaction records by month and show total sales. A trendline on those totals would describe the monthly totals, not the trend in each individual transaction.
Excel does support trendlines on many regular charts, including common line, column, and scatter charts. But support depends on the chart type and its structure. Certain types, such as pie, doughnut, radar, and 3-D charts, do not support trendlines. A regular chart is therefore the practical route, but it still needs a compatible chart type and a suitable data series.
Two Reliable Workarounds
The key is to chart the PivotTable’s summarized results without making the new chart a PivotChart. There are two useful approaches, and the right one depends on whether the chart should follow refreshes automatically.
- Copy the PivotTable results into a normal range. Paste the displayed labels and values into an ordinary worksheet range, select that range, and insert a standard chart. This is straightforward, but the copied values will not update when the PivotTable changes. Repeat the copy after refreshing or changing the pivot.
- Create a helper range linked to the PivotTable. Set up ordinary worksheet cells that refer to the PivotTable’s output, then insert a chart from those cells. Since the chart is based on a normal range rather than the PivotTable itself, you can add a trendline. Review the helper range after refreshes: new categories, removed categories, or a changed layout can make fixed references include the wrong cells or miss data.
The first option suits a one-time report or a snapshot that will not change. The linked-range approach is usually better for a report that will be refreshed, provided you check that the helper range still matches the pivot output. If the PivotTable’s shape changes often, consider designing a dedicated report range with a stable set of categories rather than assuming the pivot will always have the same number of rows.
How to Build a Regular Chart from Pivot Results
In Excel for Microsoft 365 on Windows, first make sure the PivotTable shows the categories and values you want to analyze. For a sales example, that could be one row per month and a value column containing total sales. If there are multiple series, such as a separate value column for each region, decide whether the trendline should be added to one region or to each one.
- Prepare a helper range in ordinary worksheet cells. Put the category labels in one column and the corresponding PivotTable values in the next column or columns. You can paste values for a fixed snapshot or use cell references to link the helper cells to the pivot output.
- Select the helper range, including its headers, and choose Insert > a suitable chart type, such as Line or Column. Because the selection is a normal range, Excel creates a standard chart rather than a PivotChart.
- Select the chart, then select the series that should receive the trendline. If the chart has several series, take care to select the intended one, not the chart area or another series.
- Choose Chart Design > Add Chart Element > Trendline, then select a type, such as Linear. You can also right-click the data series and choose Add Trendline.
- Use the trendline options to adjust its type and formatting. Give the chart a clear title, label the axes when useful, and state the period and measure represented by the data.
On Excel for Mac, the same general limitation applies: a PivotChart does not support a trendline. Use a standard chart based on a normal range and the chart-design controls to add one. Ribbon placement and wording can differ by Mac release, so look for the chart’s Chart Design tab or the trendline command in the chart formatting controls.
Choosing the Right Trendline
A linear trendline is a sensible starting point when values tend to rise or fall at a roughly steady rate over the period shown. It fits a straight line to the selected series. For instance, if monthly totals move from about 100 to 120, 140, and 160, a linear line summarizes the consistent upward movement. It does not establish why sales increased or predict that the same pattern will continue.
Excel offers other trendline types for patterns that a straight line may not describe well. Exponential trends can suit data that changes by a roughly consistent percentage, while polynomial trends can represent curves. A moving-average trendline smooths short-term variation by averaging a chosen number of adjacent points. These choices make different assumptions; a more curved line is not automatically a better explanation.
- Use a linear trendline for an approximately steady increase or decrease.
- Consider a moving average when the series is noisy and the goal is to make its broad direction easier to see.
- Use a curved trendline only when the data pattern and the question justify it; a high-order polynomial can follow fluctuations that are not meaningful.
- Check whether the series contains enough observations for the chosen model. A line fitted to very few points can look persuasive while offering little evidence of a lasting pattern.
A trendline’s fit is descriptive, not a guarantee of future results. If you display an equation or an R-squared value, explain what it represents and avoid treating it as proof of cause or a reliable forecast. Forecasting should account for seasonality, business changes, and other relevant information that a simple chart trendline may not capture.
Dates, Categories, and PivotTable Grouping
How the PivotTable groups its source data affects what the chart and trendline mean. If daily records are grouped into months, the trendline is fitted to the monthly summaries. If the table shows quarters, it is fitted to quarterly results. Changing the grouping changes the data points and can change the apparent direction or strength of the trend.
Check that the categories are in the intended order. Text labels such as “Apr,” “Aug,” and “Dec” can be sorted alphabetically rather than chronologically if they are stored or arranged as text. A trendline drawn across categories in the wrong order is misleading even if Excel calculates it correctly for the sequence displayed. Use real dates or deliberately sort the categories chronologically, and verify the order after refreshing the PivotTable.
Also check for missing periods. If a month with no records is absent from the PivotTable, the chart may move from one displayed month to the next without showing the gap. Whether that is acceptable depends on the analysis. A continuous monthly timeline with explicit blanks or zeros may communicate a different story from a chart that includes only months with transactions. Choose the representation deliberately and explain it if the difference could affect interpretation.
Keeping the Chart Current After a Refresh
A standard chart linked to helper cells can update when those cells update, but its source range does not necessarily expand or contract in the way a PivotChart does. This is the main trade-off in the workaround. If a refresh adds a new month below the old results, a chart using a fixed range may omit that month. If the pivot becomes shorter, the chart might still include leftover cells unless the helper area is managed carefully.
After refreshing or filtering the PivotTable, check the helper range and chart before sharing the report. Confirm that the categories, series, and final data point are correct, and make sure no stale values remain below the current output. For recurring reports, a dedicated output table with a stable layout can make this check easier. Another option is to paste a fresh snapshot each reporting period and label it with its reporting date, which makes clear that it is not a live view.
Filters can also change what the trendline describes. A line based on all regions is not the same as a line based on one selected region. If readers can change PivotTable filters, update or check the linked chart data accordingly. A standard chart does not inherit every interactive behavior of a PivotChart simply because its cells point to pivot results.
Common Problems and Misconceptions
- “I changed the PivotChart to a line chart, so it should allow a trendline.” Changing its visual type does not turn it into a regular chart. Create a new chart from a normal range instead.
- “The trendline represents every source row.” When the chart uses monthly PivotTable totals, the line is fitted to those totals, not to the underlying transactions.
- “The copied chart will refresh with the PivotTable.” A chart built from pasted values cannot reflect changes to those values. A chart linked to helper cells can update when the cells update, but its plotted range may still need attention.
- “A straight trendline proves the data will keep increasing.” It summarizes the selected observations. It does not prove the cause of the pattern or guarantee what happens next.
- “The Trendline command is missing, so Excel is broken.” Check whether the selected chart is a PivotChart, whether a data series rather than the chart background is selected, and whether the chart type supports trendlines.
If the helper chart looks wrong, inspect its selected data range and the order of its labels before changing the trendline type. A trendline cannot fix an incorrect source range, duplicated categories, text values that should be numbers, or a series that mixes unrelated measures.
Frequently Asked Questions
Can you add a trendline to a PivotChart in Excel?
No. Excel does not support trendlines directly on PivotCharts. Create a regular chart from copied PivotTable results or from a normal range linked to those results, then add the trendline to the regular chart.
Will a trendline on a normal chart update when I refresh a PivotTable?
It can update if the chart’s helper cells are linked to the PivotTable and the chart includes the relevant cells. A chart made from pasted values will not update. Even with linked cells, check the chart’s range when a refresh changes the pivot’s size or layout.
Can I add a trendline to just one series?
Yes, on a compatible standard chart. Select the specific series before using Chart Design > Add Chart Element > Trendline. In a chart with several regions, for example, you can add a line to one region without adding one to every series.
Does the trendline use the underlying records or the PivotTable totals?
It uses the values plotted in the standard chart. If those values are monthly totals copied or linked from a PivotTable, the trendline describes those monthly totals, not each original record.
Why is the trendline option unavailable on my regular chart?
Check that you selected a data series and that the chart type supports trendlines. Some chart types, including pie, doughnut, radar, and 3-D charts, do not support them. If the chart is a PivotChart, first rebuild it as a standard chart from a normal range.
Related
- Excel Page Break Character: Meaning and Print Breaks
- Excel Page Break Dashed Line: What It Means
- Excel Power Query Editor: How to Open It
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Copy Pivot Chart: Change Its Data Source Safely?Copying a PivotChart in Excel does not normally give the copy an independent data source: the copied chart…
- Unique Excel Chart Designs: Ideas and How to Build ThemUnique Excel chart designs combine a chart type suited to the data with thoughtful formatting, labels, and context.…
- Add a Zero Line to an Excel Chart: Methods and TipsTo add a zero line to an Excel chart, either make the value axis cross at 0 or…
- Compare Two Excel Sheets With a Pivot TableTo compare two Excel sheets with a PivotTable, combine their rows into one table, add a column identifying…
- Access Power Pivot Gallery in Excel or SharePointIf you mean Power Pivot in Excel, open Excel for Microsoft 365 on Windows and select the Power…
- 3D Pie Chart in Excel: How to Create and Format ItTo create a 3-D pie chart in Excel for Microsoft 365 on Windows, select a two-column list of…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.