Excel Chart with Two Trendlines
Last Updated :
27 May, 2021
A line that bounds a particular chart and shows the behavior as it propagates is known as a trend line. It is generally used for analytics purposes to get a close approximate idea from the chart. The chart can be of any type like Bar Chart, Scattered Chart, Line Chart, etc.
In this article, we are going to see how to add two trendlines in a chart using Excel. For this, we will consider a suitable example shown below.
Example: Consider a scenario of a country having a population of more than 50 crores. People in this country are suffering from a pandemic and the number of positive cases due to a deadly virus is increasing day by day. Finally, after six months vaccines were made and the government started a vaccine jab for the people after a lot of trials.
The government ordered the officials to keep a record of data for the first ten days of the vaccine jab. The record should contain two columns :
- The first column consists of the number of vaccines jab to the people.
- The number of positive cases.
The moto behind is to check by mass jabbing of vaccines how the number of positive cases are changing during the first ten days. The experts from health centers made the following analysis :
Pandemic Analysis |
---|
Day | Vaccinated | Number of Positive Cases |
---|
1 | 20000 | 120000 |
2 | 24345 | 111000 |
3 | 27555 | 100555 |
4 | 35000 | 92950 |
5 | 46345 | 81950 |
6 | 57900 | 69690 |
7 | 60000 | 54990 |
8 | 71200 | 39632 |
9 | 78955 | 19389 |
10 | 91366 | 7895 |
Implementation :
Step 1: Insert the data in the cells of Excel. Now select all the data by dragging and then go to the Insert Tab from the top of the Excel window.
Step 2: Now select "Scattered or Bubble Chart set" and from the pop down select "Scattered Chart" as shown below.
Inserting Chart
Step 3: Now to add "Trend Lines" use the "+" button and select Trend Line and select the series for which trend line needs to be added. Initially, we will add a trend line for the chart showing Vaccines.
Another way is :
- Select the particular series for which a trend line needs to be added.
- Right-click on it and select "Add Trendline".
Now, to add the trend line for the second series "Cases" again click on the "+" button, and under Trendline select "More Options" and then select the series "Cases" and click OK.
The second Trendline Added
Step 4: Now various modifications can be done on the above chart to make it more insightful.
1. Changing Chart Style
After changing the chart style, we can add a suitable "Chart Title".
2. Formatting Trend Line: Select the trend line to be formatted and right-click on it. From the pop-down select "Format TrendLine". Now, we can change the line type, color, width according to our needs.
Also, by default, the Trendline that would be added by Excel will be of Linear type. So, to show the equation of the line and R-squared value check the box in the Format Trendline window as shown below :

Chart with two Trendlines
3. Changing the style of Trendline: We can change the Trendline from Linear to various other types of Trendlines Excel offers. Follow the steps :
- Select the Trendline.
- Right-Click.
- Select "Format Trendline.
Now change the Trendline type from the Format Trendline window as shown below :
Formatting Trendline Style
Finally, the chart will look like this:
4. Changing the axis: We can change the scale of the axes. The steps are :
- Select the axis.
- Right-click.
- Select Format Axis.
Now make necessary changes in the values of Bounds and Units. We have solved the "Days" axis and made the following changes. You can try for the other axis and make the necessary changes.
Finally, after all the modifications the chart looks like this:
From the above chart, we can infer that as the number of days is increasing more people are getting vaccinated and there is a huge decline in the number of positive cases as we can see in the green color Trendline. The yellow color Trendline depicts there is a tremendous increase in the number of people getting vaccinated.
Similar Reads
Types of Charts in Excel
Visualizing data is a key part of effective analysis, and Excel offers a wide range of tools to help you present information clearly. Understanding the different types of charts in Excel can help you choose the best way to display your data based on your goals and audience. From simple visuals like
3 min read
How to Add Trendline in Excel Chart
Add Trendline in Excel Chart - A Trendline is an additional line that indicates the slope (or trend) in a particular data series and is also known as a line of best fit. Trendlines can be helpful when you are analyzing data because they can forecast future values based on your current data. Not all
3 min read
Stacked Column Chart with Stacked Trendlines in Excel
A line that bounds a particular chart and shows the behavior as it propagates is known as a trend line. It is generally used for analytics purposes to get a close approximate idea from the chart. The chart can be of any type like Bar Chart, Scattered Chart, Line Chart, etc. By default, we can't dire
4 min read
Multiple Series in One Excel Chart
Excel gives many built-in features related to graphs and dataset representations, which help to visualize and analyze data easily. One of these features is the secondary axis, which allows the drawing of multiple series of data on a single graph. A secondary axis is required to represent and easily
2 min read
Types of Trendlines in Excel
A line that bounds a particular chart and shows the behavior as it propagates is known as a trend line. It is generally used for analytics purposes to get a close approximate idea from the chart. The chart can be of any type like Bar Chart, Scattered Chart, Line Chart, etc. In this article, we are g
4 min read
Line Chart Visualization in Excel Power View
Power View is the visualization technology that brings our data to life. It is available in Microsoft Excel, on Power BI desktop or we can use it using an SQL server. With the help of power view, we can create on-the-go reporting using its interactive feature. It has versatile visualizations that en
4 min read
Bar Chart Visualization with Excel Power View
Bar charts are commonly used to compare data points from many data series. The categories are sorted vertically, and values are organized horizontally in a bar chart. To learn more about bar charts please refer here. A bar chart, often known as a bar graph, is a type of chart that uses rectangular b
3 min read
Formatting Charts in Excel
One of the major uses of Excel is to create different types of charts for a given data set. Excel provides us with a lot of modification options to perform on these charts to make them more insightful. In this article, we are going to see the most common "Formatting" performed on charts using a suit
3 min read
Generating Dynamic Charts With VBA in Excel
A powerful graph range is an information range that refreshes naturally when you change the information source. This unique reach is then utilized as the source information in an outline. As the information changes, the powerful reach refreshes right away which prompts an update in the outline. The
2 min read
How to Create a Funnel Chart In Excel
In the world of data visualization, funnel charts have become a go-to tool for illustrating stages in a process, especially when tracking sales or conversions. Learning how to create a funnel chart in Excel can give you a powerful way to visualize data that shows progression and drop-off through var
6 min read