Changing Linest Format

Kappy

Board Regular
Joined
Jun 26, 2009
Messages
58
Is there a way to have Linest return the coefficient and intercept in the same column? (i.e., so that the coefficient is in the cell above the intercept instead of to the left of it?)

I know I can do this using VBA, but before I resort to that solution I wanted to know if any array whizes out there have a suggestion that uses worksheet functions.

many thanks

p.s. having linest return the information in its normal layout and then reordering the cells is also not an option for me... I have many columns with predictor variables and I want to see the coefficient and intersect for each one independently and in its own column (without having to add a blank column between each variable)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Not soure what you mean.

Maybe =INDEX(LINEST(B6:B25, C6:E25), {4,3,2,1})

or =TRANSPOSE(LINEST(B6:B25, C6:E25))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,126
Messages
6,123,200
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top