SlideShare a Scribd company logo
1 of 20
www.LCDing.Com
Computing trend line values using excel formulas and functions
Trendline values in excel charts
Warning: This is for those who wish to explore trend lines in excel.
For others, this presentation may be intimidating . Kindly exercise caution!
Trendlines in charts
A trend line is a straight line connecting multiple
points on a chart.
A trend is a movement in a particular direction
The magnitude of the slope of a trend line, or
steepness, indicates the strength of the trend.
Trend lines can be used to forecast future !
Six types of trend lines
1. Linear
2. Logarithmic
3. Polynomial
4. Power
5. Exponential
6. Moving Average
How to Create a Trendline? – Have a look at my earlier post in LCDing
Slide share presentation
Rule of thumb : Use type of Trend line
1. Linear trend line : use it if data values are
increasing or decreasing at a steady rate.
2. Logarithmic trend line : Useful when the rate of
change in the data increases or decreases quickly
and then levels out.
3. Polynomial trend line : Used when there are data
fluctuations like the sales following seasonal trends
Rule of thumb : use type of Trend line
4. Power trend line : Use with data that has values that
increase at specific rate at regular intervals.
5. Exponential trend line : Use when data values
increase or decrease rates that are constantly
increasing.
6. Moving average trend line : Use it when uneven
fluctuations are in data values
Trend line values using excel formulae
You can use the formulas given in the next few slides.
Alternatively, you can download and use the excel attached
with all formulas.
To download excel file, click here
Linear Trendline equation
Equation: y = m * x + b
Where,
m =SLOPE(y,x)
b =INTERCEPT(y,x)
RSQ =RSQ(y,x)
Logarithmic Trendline equation
Equation: y = (c * LN(x)) + b
Where,
c =INDEX(LINEST(y,LN(x)),1)
b =INDEX(LINEST(y,LN(x)),1,2)
RSQ =RSQ(y,LN(x))
Power Trendline Equation
Equation: y=c*x^b
Where,
c =EXP(INDEX(LINEST(LN(y),LN(x),,),1,2))
b =INDEX(LINEST(LN(y),LN(x),,),1)
RSQ =INDEX(LINEST(LN(y),LN(x),TRUE,TRUE),3,1)
Exponential Trendline equation
Equation: y = c *e ^(b * x)
Where,
c =EXP(INDEX(LINEST(LN(y),x),1,2))
b =INDEX(LINEST(LN(y),x),1)
RSQ =RSQ(LN(y),x)
Polynomial Trendline(2nd order) Equation
Equation: y = (c2 * x ^2) + (c1 * x^1) + b
Where,
c2 =INDEX(LINEST(y,x^{1,2}),1)
c1: =INDEX(LINEST(y,x^{1,2}),1,2)
b = INDEX(LINEST(y,x^{1,2}),1,3)
RSQ =INDEX(LINEST(y,x^{1,2},TRUE,TRUE),3,1)
Polynomial Trendline(3rd order) Equation
Equation:
y=(c3*x^3) + (c2*x^2) + (c1*x^1) +b
Where,
c3 =INDEX(LINEST(y,x^{1,2,3},1)
c2 =INDEX(LINEST(y,x^{1,2}),1)
c1 =INDEX(LINEST(y,x^{1,2}),1,2)
b = INDEX(LINEST(y,x^{1,2}),1,3)
RSQ =INDEX(LINEST(y,x^{1,2,3},TRUE,TRUE),3,1)
Polynomial Trendline(4th order) Equation
Equation: y= (c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1) +b
Where,
c4 = INDEX(LINEST(y,x^{1,2,3,4},1)
c3 =INDEX(LINEST(y,x^{1,2,3},1)
c2 =INDEX(LINEST(y,x^{1,2}),1)
c1 =INDEX(LINEST(y,x^{1,2}),1,2)
b = INDEX(LINEST(y,x^{1,2}),1,3)
RSQ =INDEX(LINEST(y,x^{1,2,3,4},TRUE,TRUE),3,1)
Polynomial Trendline(5th order) Equation
Equation:
y= (c5*x^5)+(c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1) +b
Where,
c5 = INDEX(LINEST(y,x^{1,2,3,4,5},1)
c4 = INDEX(LINEST(y,x^{1,2,3,4},1)
c3 =INDEX(LINEST(y,x^{1,2,3},1)
c2 =INDEX(LINEST(y,x^{1,2}),1)
c1 =INDEX(LINEST(y,x^{1,2}),1,2)
b = INDEX(LINEST(y,x^{1,2}),1,3)
RSQ =INDEX(LINEST(y,x^{1,2,3,4,5},TRUE,TRUE),3,1)
Polynomial Trendline(6th order) Equation
Equation:
y=(c6*x^6)+(c5*x^5)+(c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1)+b
Where,
c6 = INDEX(LINEST(y,x^{1,2,3,4,5,6},1)
c5 = INDEX(LINEST(y,x^{1,2,3,4,5},1)
c4 = INDEX(LINEST(y,x^{1,2,3,4},1)
c3 =INDEX(LINEST(y,x^{1,2,3},1)
c2 =INDEX(LINEST(y,x^{1,2}),1)
c1 =INDEX(LINEST(y,x^{1,2}),1,2)
b = INDEX(LINEST(y,x^{1,2}),1,3)
RSQ =INDEX(LINEST(y,x^{1,2,3,4,5,6},TRUE,TRUE),3,1)
www.LCDing.Com
Basics of Excel functions used
Few Basics – Excel functions used - 1
X= Known X's (e.g.: Months on X Axis)
Y= Known Y's (e.g.: Sales on Y Axis)
Details of Excel functions are taken from Excel Help
LN
LN(number)
Returns the natural logarithm of a number. Natural logarithms are based
on the constant e (2.71828182845904).
Liniest
LINEST(known_y's,known_x's,const,stats)
Calculates the statistics for a line by using the "least squares" method to
calculate a straight line that best fits your data, and returns an array that
describes the line. Because this function returns an array of values, it must
be entered as an array formula.
Exp
EXP(number)
Returns e raised to the power of number. The constant e equals
2.71828182845904, the base of the natural logarithm.
Index
INDEX(array,row_num,column_num)
INDEX(reference,row_num,column_num,area_num)
Returns a value or the reference to a value from within a table or range.
There are two forms of the INDEX() function: array and reference. The
array form always returns a value or an array of values; the reference form
always returns a reference.
Few Basics – Excel functions used - 2
RSQ
RSQ(known_y's,known_x's)
Returns the square of the Pearson product moment correlation coefficient
through data points in known_y's and known_x's. For more information,
see PEARSON. The r-squared value can be interpreted as the proportion of
the variance in y attributable to the variance in x.
Slope
SLOPE(known_y's,known_x's)
Returns the slope of the linear regression line through data points in
known_y's and known_x's. The slope is the vertical distance divided by
the horizontal distance between any two points on the line, which is the
rate of change along the regression line.
Intercept
INTERCEPT(known_y's,known_x's)
Calculates the point at which a line will intersect the y-axis by using
existing x-values and y-values.
Logest
LOGEST(known_y's,known_x's,const,stats)
In regression analysis, calculates an exponential curve that fits your data
and returns an array of values that describes the curve. Because this
function returns an array of values, it must be entered as an array formula.
Incase you need more details…
I have learned these formulas form the following
web sites and authors.
Click the links below
Trendline formulas
Bernard Liengme’s website
Tushar Mehta’s article
Ozgrid Forum
Trends-and-forecast-sales-with-charts
Choosing-the-best-trendline-for-your-data
www.LCDing.Com

More Related Content

More from Satya Mahesh Kallakuru

Opportunities challenges pharmacy_n_management_grads
Opportunities challenges pharmacy_n_management_gradsOpportunities challenges pharmacy_n_management_grads
Opportunities challenges pharmacy_n_management_gradsSatya Mahesh Kallakuru
 
One minute medical representative call
One minute medical representative callOne minute medical representative call
One minute medical representative callSatya Mahesh Kallakuru
 
SFE, What every pharma sales professional should know ?
SFE, What every pharma sales professional should know ?SFE, What every pharma sales professional should know ?
SFE, What every pharma sales professional should know ?Satya Mahesh Kallakuru
 

More from Satya Mahesh Kallakuru (20)

VUCA World and Digital transformation
VUCA World and Digital transformationVUCA World and Digital transformation
VUCA World and Digital transformation
 
Opportunities challenges pharmacy_n_management_grads
Opportunities challenges pharmacy_n_management_gradsOpportunities challenges pharmacy_n_management_grads
Opportunities challenges pharmacy_n_management_grads
 
Customer Experience -Pharma
Customer Experience -PharmaCustomer Experience -Pharma
Customer Experience -Pharma
 
Sales Forecasting Basics
Sales Forecasting BasicsSales Forecasting Basics
Sales Forecasting Basics
 
One minute medical representative call
One minute medical representative callOne minute medical representative call
One minute medical representative call
 
Pharma dialogue
Pharma dialoguePharma dialogue
Pharma dialogue
 
Faq telemedicine india 2020
Faq telemedicine india 2020Faq telemedicine india 2020
Faq telemedicine india 2020
 
Power presentations and points
Power presentations and pointsPower presentations and points
Power presentations and points
 
Telemedicine Guidelines 2020
Telemedicine Guidelines 2020Telemedicine Guidelines 2020
Telemedicine Guidelines 2020
 
About me
About me About me
About me
 
Pharma FF Deployment - SnT and KPIs
Pharma FF Deployment - SnT and KPIsPharma FF Deployment - SnT and KPIs
Pharma FF Deployment - SnT and KPIs
 
China Pharma Commercial Model
China Pharma Commercial ModelChina Pharma Commercial Model
China Pharma Commercial Model
 
Making SFE Work for Field Force
Making SFE Work for Field ForceMaking SFE Work for Field Force
Making SFE Work for Field Force
 
SFE, What every pharma sales professional should know ?
SFE, What every pharma sales professional should know ?SFE, What every pharma sales professional should know ?
SFE, What every pharma sales professional should know ?
 
Remembering Gandhiji
Remembering GandhijiRemembering Gandhiji
Remembering Gandhiji
 
Lessons from Lunchbox
Lessons from LunchboxLessons from Lunchbox
Lessons from Lunchbox
 
Power and Points
Power and PointsPower and Points
Power and Points
 
Wi-Fi
Wi-FiWi-Fi
Wi-Fi
 
Bitstrips of Mahesh
Bitstrips of MaheshBitstrips of Mahesh
Bitstrips of Mahesh
 
Search Images on Google
Search Images on GoogleSearch Images on Google
Search Images on Google
 

Recently uploaded

8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,dollysharma2066
 
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfLC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfpastor83
 
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptxWOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptxpadhand000
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theorydrae5
 
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...PsychicRuben LoveSpells
 
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Morcall Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Morvikas rana
 
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushThe Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushShivain97
 
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)Delhi Call girls
 
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)Delhi Call girls
 
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)Delhi Call girls
 
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girlsPooja Nehwal
 
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)Delhi Call girls
 

Recently uploaded (15)

8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
 
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdfLC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
 
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptxWOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
 
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
 
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Morcall Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
 
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by MindbrushThe Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
 
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
 
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
 
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
 
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
 
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
 
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
 
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
 

Computing Trendline Values in Excel Charts

  • 1. www.LCDing.Com Computing trend line values using excel formulas and functions Trendline values in excel charts Warning: This is for those who wish to explore trend lines in excel. For others, this presentation may be intimidating . Kindly exercise caution!
  • 2. Trendlines in charts A trend line is a straight line connecting multiple points on a chart. A trend is a movement in a particular direction The magnitude of the slope of a trend line, or steepness, indicates the strength of the trend. Trend lines can be used to forecast future !
  • 3. Six types of trend lines 1. Linear 2. Logarithmic 3. Polynomial 4. Power 5. Exponential 6. Moving Average How to Create a Trendline? – Have a look at my earlier post in LCDing Slide share presentation
  • 4. Rule of thumb : Use type of Trend line 1. Linear trend line : use it if data values are increasing or decreasing at a steady rate. 2. Logarithmic trend line : Useful when the rate of change in the data increases or decreases quickly and then levels out. 3. Polynomial trend line : Used when there are data fluctuations like the sales following seasonal trends
  • 5. Rule of thumb : use type of Trend line 4. Power trend line : Use with data that has values that increase at specific rate at regular intervals. 5. Exponential trend line : Use when data values increase or decrease rates that are constantly increasing. 6. Moving average trend line : Use it when uneven fluctuations are in data values
  • 6. Trend line values using excel formulae You can use the formulas given in the next few slides. Alternatively, you can download and use the excel attached with all formulas. To download excel file, click here
  • 7. Linear Trendline equation Equation: y = m * x + b Where, m =SLOPE(y,x) b =INTERCEPT(y,x) RSQ =RSQ(y,x)
  • 8. Logarithmic Trendline equation Equation: y = (c * LN(x)) + b Where, c =INDEX(LINEST(y,LN(x)),1) b =INDEX(LINEST(y,LN(x)),1,2) RSQ =RSQ(y,LN(x))
  • 9. Power Trendline Equation Equation: y=c*x^b Where, c =EXP(INDEX(LINEST(LN(y),LN(x),,),1,2)) b =INDEX(LINEST(LN(y),LN(x),,),1) RSQ =INDEX(LINEST(LN(y),LN(x),TRUE,TRUE),3,1)
  • 10. Exponential Trendline equation Equation: y = c *e ^(b * x) Where, c =EXP(INDEX(LINEST(LN(y),x),1,2)) b =INDEX(LINEST(LN(y),x),1) RSQ =RSQ(LN(y),x)
  • 11. Polynomial Trendline(2nd order) Equation Equation: y = (c2 * x ^2) + (c1 * x^1) + b Where, c2 =INDEX(LINEST(y,x^{1,2}),1) c1: =INDEX(LINEST(y,x^{1,2}),1,2) b = INDEX(LINEST(y,x^{1,2}),1,3) RSQ =INDEX(LINEST(y,x^{1,2},TRUE,TRUE),3,1)
  • 12. Polynomial Trendline(3rd order) Equation Equation: y=(c3*x^3) + (c2*x^2) + (c1*x^1) +b Where, c3 =INDEX(LINEST(y,x^{1,2,3},1) c2 =INDEX(LINEST(y,x^{1,2}),1) c1 =INDEX(LINEST(y,x^{1,2}),1,2) b = INDEX(LINEST(y,x^{1,2}),1,3) RSQ =INDEX(LINEST(y,x^{1,2,3},TRUE,TRUE),3,1)
  • 13. Polynomial Trendline(4th order) Equation Equation: y= (c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1) +b Where, c4 = INDEX(LINEST(y,x^{1,2,3,4},1) c3 =INDEX(LINEST(y,x^{1,2,3},1) c2 =INDEX(LINEST(y,x^{1,2}),1) c1 =INDEX(LINEST(y,x^{1,2}),1,2) b = INDEX(LINEST(y,x^{1,2}),1,3) RSQ =INDEX(LINEST(y,x^{1,2,3,4},TRUE,TRUE),3,1)
  • 14. Polynomial Trendline(5th order) Equation Equation: y= (c5*x^5)+(c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1) +b Where, c5 = INDEX(LINEST(y,x^{1,2,3,4,5},1) c4 = INDEX(LINEST(y,x^{1,2,3,4},1) c3 =INDEX(LINEST(y,x^{1,2,3},1) c2 =INDEX(LINEST(y,x^{1,2}),1) c1 =INDEX(LINEST(y,x^{1,2}),1,2) b = INDEX(LINEST(y,x^{1,2}),1,3) RSQ =INDEX(LINEST(y,x^{1,2,3,4,5},TRUE,TRUE),3,1)
  • 15. Polynomial Trendline(6th order) Equation Equation: y=(c6*x^6)+(c5*x^5)+(c4*x^4)+(c3*x^3) + (c2*x^2) + (c1*x^1)+b Where, c6 = INDEX(LINEST(y,x^{1,2,3,4,5,6},1) c5 = INDEX(LINEST(y,x^{1,2,3,4,5},1) c4 = INDEX(LINEST(y,x^{1,2,3,4},1) c3 =INDEX(LINEST(y,x^{1,2,3},1) c2 =INDEX(LINEST(y,x^{1,2}),1) c1 =INDEX(LINEST(y,x^{1,2}),1,2) b = INDEX(LINEST(y,x^{1,2}),1,3) RSQ =INDEX(LINEST(y,x^{1,2,3,4,5,6},TRUE,TRUE),3,1)
  • 17. Few Basics – Excel functions used - 1 X= Known X's (e.g.: Months on X Axis) Y= Known Y's (e.g.: Sales on Y Axis) Details of Excel functions are taken from Excel Help LN LN(number) Returns the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904). Liniest LINEST(known_y's,known_x's,const,stats) Calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and returns an array that describes the line. Because this function returns an array of values, it must be entered as an array formula. Exp EXP(number) Returns e raised to the power of number. The constant e equals 2.71828182845904, the base of the natural logarithm. Index INDEX(array,row_num,column_num) INDEX(reference,row_num,column_num,area_num) Returns a value or the reference to a value from within a table or range. There are two forms of the INDEX() function: array and reference. The array form always returns a value or an array of values; the reference form always returns a reference.
  • 18. Few Basics – Excel functions used - 2 RSQ RSQ(known_y's,known_x's) Returns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's. For more information, see PEARSON. The r-squared value can be interpreted as the proportion of the variance in y attributable to the variance in x. Slope SLOPE(known_y's,known_x's) Returns the slope of the linear regression line through data points in known_y's and known_x's. The slope is the vertical distance divided by the horizontal distance between any two points on the line, which is the rate of change along the regression line. Intercept INTERCEPT(known_y's,known_x's) Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values. Logest LOGEST(known_y's,known_x's,const,stats) In regression analysis, calculates an exponential curve that fits your data and returns an array of values that describes the curve. Because this function returns an array of values, it must be entered as an array formula.
  • 19. Incase you need more details… I have learned these formulas form the following web sites and authors. Click the links below Trendline formulas Bernard Liengme’s website Tushar Mehta’s article Ozgrid Forum Trends-and-forecast-sales-with-charts Choosing-the-best-trendline-for-your-data