How to Exclude Data Points from a Trendline in Excel – 2 Methods

This is the sample dataset. It showcases month-wise sales data. In September, the organization did not operate: the sales amount is $0.

To exclude this value from the chart:

dataset for how to exclude data points from trendline in excel


Method 1 – Edit the Dataset to Exclude Data Points from the Trendline

This is the line chart for the dataset.

The sales value for September is an outlier and misrepresents the trend.

Steps:

  • Select the data points.
  • Right-click.
  • Click Select Data.

Editing dataset to exclude data points from trendline in excel

  • In the new box, uncheck September in Horizontal Axis Labels.
  • Click OK.

Excel will exclude the data point for September.

Editing dataset to exclude data points from trendline in excel

Read More: How to Create Equation from Data Points in Excel


Method 2 – Use the PivotChart Feature to Exclude Data Points from a Trendline

Steps:

  • Select the dataset: B4:C16.
  • Go to the Insert tab.
  • Select PivotChart.

  • In the Create PivotChart box, select the location of your PivotChart.
  • Click OK.

PivotChart to exclude data points from trendline in excel

  • Excel will create a PivotChart.
  • Drag Month to Categories and Sales to Values.

Excel will by default calculate the Sum of Sales.

  • A column chart will be displayed.

PivotChart to exclude data points from trendline in excel

  • Change the chart type.
  • Select the chart and right-click.
  • Select Change Chart Type.

  • Select Line
  • Click OK.

PivotChart to exclude data points from trendline in excel

  • A line chart is created.

 

  • Select the Add Element.
  • Check Trendline.

PivotChart to exclude data points from trendline in excel

Excel will add a Trendline.

  • To filter months, select the drop-down for Month.

  • Uncheck September.
  • Click OK.

PivotChart to exclude data points from trendline in excel

Excel will exclude the data point for September.


Things to Remember

  • You can also add a Trendline in Design.  This window will be displayed when you select the chart:

PivotChart to exclude data points from trendline in excel


Download Practice Workbook

Download the workbook and practice.


Related Articles


<< Go Back To Trendline in Excel | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo