How to Add a Best Fit Line in Excel
How to Add a Best Fit Line in Excel
This wikiHow teaches you how to create a line of best fit in your Microsoft Excel chart. A line of best fit, also known as a best fit line or trendline, is a straight line used to indicate a trending pattern on a scatter chart. If you were to create this type of line by hand, you'd need to use a complicated formula. Fortunately, Excel makes it easy to find an accurate trend line by doing the calculations for you.
Steps

Highlight the data you want to analyze. The data you select will be used to create your scatter chart. A scatter chart is one that uses dots to represent values for two different numeric values (X and Y).

Click the Insert tab. It's at the top of Excel.

Click the Scatter icon on the Charts panel. It's in the toolbar at the top of the screen. The icon looks like several small blue and yellow squares—when you hover the mouse cursor over this icon, you should see "Insert Scatter (X, Y)" or Bubble Chart (the exact wording varies by version). A list of different chart types will appear.

Click the first Scatter chart option. It's the chart icon at the top-left corner of the menu. This creates a chart based on the selected data.

Right-click one of the data points on your chart. This can be any of the blue dots on the chart. This selects all of the data points at once and expands a menu. If you are using a Mac and don't have a right mouse button, hold down the Ctrl button as you click a dot instead.

Click Add Trendline on the menu. Now you'll see the Format Trendline panel on the right side of Excel.

Select Linear from the Trendline Options. It's the second option in the Format Trendline panel. You should now see a linear straight line that reflects the trend of your data.

Check the box next to "Display equation on chart." It's toward the bottom of the Format Trendline panel. This displays the math calculations used to create the best fit line. This step is optional, but can be useful for anyone viewing your chart who wants to understand how the best fit line was calculated. Click the X at the top-right corner of the Format Trendline panel to close it.

Original news source

What's your reaction?

Comments

https://rawisda.com/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!