Fix a LINEST Array Formula in Excel 2016 for Mac
Question details
Get Excel 2016 for Mac to return the slope and intercept from a LINEST array formula.

- Product
- Microsoft Excel 2016 for Mac
- Device & OS
- Mac; macOS version not provided
- Scenario
- The user is calculating a linear regression with LINEST and wants to display its results across multiple cells.
- Observed behavior
- Excel may return only the slope when LINEST is not entered with the correct array-formula shortcut.
Identify the cells containing your known y-values and x-values. For a single x-variable, reserve two adjacent horizontal cells for the slope and intercept.
Enter LINEST as an Array Formula in Excel 2016 for Mac
Use this method to return the slope and intercept together in a selected output range.
In the worksheet, select two adjacent cells in the same row where you want the slope and intercept to appear.
Type =LINEST(B2:B10,A2:A10), replacing B2:B10 with your y-value range and A2:A10 with your x-value range.
Press Control+Shift+Return, using the Return key in the main typing area. Do not use the Enter key on the numeric keypad.
Look at the selected cells: the slope should appear on the left and the intercept on the right.

Calculate the Slope and Intercept in Separate Excel Cells
Use separate functions if you only need the two regression values and do not need the full LINEST output.
Calculate Slope and Intercept in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and calculate the slope and intercept in separate cells using the SLOPE and INTERCEPT functions.
- 1. Open the workbook: In WPS Spreadsheets, select Open and choose the Excel workbook containing your data.
- 2. Enter the slope formula: Select an empty cell and enter =SLOPE(B2:B10,A2:A10), adjusting the ranges to match your y-values and x-values.
- 3. Enter the intercept formula: Select another empty cell and enter =INTERCEPT(B2:B10,A2:A10) with the same data ranges.
- 4. Save the workbook: Select File > Save As and choose XLSX if you want to keep the workbook in an Excel-compatible format.

Frequently Asked Questions
Why does LINEST show only the slope in Excel 2016 for Mac?
LINEST returns multiple values, but Excel 2016 requires a multi-cell array formula to display them together. Select two horizontal cells, enter the formula, and press Control+Shift+Return.
Which Return key should I use on an extended Mac keyboard?
Use the Return key in the main typing area with Control and Shift. Do not use the numeric keypad Enter key, which Excel may interpret differently.
Which LINEST result is the intercept?
For a regression with one x-variable, the slope appears in the left output cell and the intercept appears in the right output cell.
Can I calculate the slope and intercept without an array formula?
Yes. Enter =SLOPE(y_range,x_range) in one cell and =INTERCEPT(y_range,x_range) in another, replacing the placeholders with your data ranges.




