Clever Use of 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", and choose a scatter plot with a line and data markers. This will display a line graph.
- Right-click on the line and select "Add Trendline" from the options.
- In the small window that pops up on the right, select "Linear". Scroll down the progress bar and choose "Display Equation" - "Display R-squared value" to show the fitted equation.