How to find trendline without graphing

16,316

Say we have data in columns A and B like:

enter image description here

To do a linear trend we need a slope and intercept. In D2 enter:

=SLOPE(B2:B20,A2:A20)

and in E2 enter:

=INTERCEPT(B2:B20,A2:A20)

enter image description here

There are equally simple formulas to get the parameters of other non-linear fits such as higher order polynomials, etc.

Share:
16,316

Related videos on Youtube

techSultan
Author by

techSultan

Updated on September 18, 2022

Comments

  • techSultan
    techSultan over 1 year

    I have set of data in Excel for which I would like to find the trendline. Is there a way to find the trendline (linear and non-linear) from the raw data? Or do I have to graph the data and use the graph's trendline tool?

    • CharlieRB
      CharlieRB almost 9 years
      Welcome to Super User! Please tell us what you have researched and attempted to resolve this. Take a minute to read How to Ask to improve your question.
  • techSultan
    techSultan almost 9 years
    I understand, but does no function exist to directly call upon Excel's trendline-finding capability?
  • techSultan
    techSultan almost 9 years
    So I must do the Linear Algebra for higher order polynomials and exponentials myself in Excel. I can't just call a function polyFit([data range], order of poly). Thanks