Cleverly Using Excel to Generate Fitting Functions#
Methods for fitting a line in Excel:
- Enter the data in the spreadsheet, with X values in the left column and Y values in the right column. Then, select the data range.
- In the toolbar, select "Insert" - "Chart". Choose the scatter plot with straight lines and data markers, and a line graph will appear.
- Right-click on the line and select "Add Trendline" from the options.
- In the small window that pops up on the right, select "Linear". Drag the progress bar down and choose "Display Equation" - "Display R-squared value" to show the fitted equation.