You are on page 1of 9

Linest and Logest Functions

1.4

X_1
1E-05
0.156444342
0.309026505
0.45399941
0.587793342
0.707113852
0.809022872
0.891011064
0.951059606
0.987689905
1

Y_1
1
0.98768678
0.95105343
0.89100198
0.80901112
0.70709971
0.58777716
0.45398159
0.30900748
0.15642459
1E-05

1.2
1
0.8
Series1

0.6

Linear (Series1)

0.4
y = -0.9043x + 1.1864

0.2
0
0

0.2

0.4

0.6

0.8

1.2

1.2
1
0.8
Series1

0.6

Poly. (Series1)

0.4
y = -49.6999916615x6 + 139.4471129352x5 0.2
148.0371032025x4 + 72.8093995887x3 - 16.7571179083x2 +
1.2745138436x + 0.9994760758
0
0
0.2
0.4
0.6
0.8
1

X_2

Y_2
1
2
3
4
5
6
7
8
9
10
11

1
9.81961167
31.6294854
92.9537875
186.616604
218.208603
510.983758
641.148864
1305.17075
1848.48383
2247.18262

1.2

6000
y = 2.63499e0.68698x

5000
4000

Series1

3000

Expon. (Series1)

2000
1000
0

X_3
1
2

Y_3
0.12190971
0.77267409

0
3

10

12

3
4
5
6
7
8
9
10
11

1.25197806
1.58168822
1.97894
1.99711951
2.12168564
2.159371
2.38343681
2.76473984
2.72573277

y = 1.0855ln(x) + 0.0783

2.5
2

1.5
1
0.5
0
0

10

12

1.2
1
0.8
Series1

0.6

Linear (Series1)

0.4

0.2

y = -1.4163x2 + 0.6124x + 0.9497

0
0

0.2

0.4

0.6

Linear
=LINEST(Y_1,X_1)
Quadratic =LINEST(Y_1,X_1^{1,2})
Cubic
=LINEST(Y_1,X_1^{1,2,3})
Order 6
Series1

Poly. (Series1)

1
1E-05
0.156444
0.309027
0.453999
0.587793
0.707114
0.809023
0.891011
0.95106
0.98769
2500
1

2
1E-10
0.0244748
0.0954974
0.2061155
0.345501
0.50001
0.654518
0.7939007
0.9045144
0.9755313
1

3
1E-15
0.003828949
0.029511222
0.093576299
0.203083195
0.353563997
0.529520039
0.707374322
0.860247085
0.963522465
1

0.8

a
b
-0.90428726
1.186389907
-1.41630862
0.612361694
-2.08198917
1.791256345
-49.6999904254 139.4471090671
-49.69999166
139.4471129
-1.24E-06
3.87E-06
4
5
1E-20
1E-25
0.000599017
9.37129E-05
0.00911975
0.002818244
0.042483585
0.019287522
0.11937095
0.07016545
0.25001
0.176785534
0.428393822
0.346580401
0.630278347
0.561584981
0.818146255
0.778105855
0.951661411
0.939946369
1
1

y = 0.9922x3.2044

2000
1500
Series1
Expon. (Series1)

1000
500
0

10

Series1

Exp 1
Exp 2
Power 1
Power 2
Log 1
Log 2

=LINEST(LN(Y_2),X_2)
=LOGEST(Y_2,X_2)
=LINEST(LN(Y_2),LN(X_2))
=LOGEST((Y_2),LN(X_2))
=LINEST(Y_3,LN(X_3))
=LOGEST(EXP(Y_3),LN(X_3))

0.68697926
1.987702125
3.204413782
24.64105075
1.08548254
2.960868211

Exp 3
Exp 4

=EXP(LINEST(LN(Y_2),X_2))
=LOGEST(Y_2,X_2)

1.987702125
1.987702125

Log. (Series1)

Series1
Poly. (Series1)

1.2

0.949656484
-0.632326944
1.019264172
-148.0370986299 72.8093970744 -16.7571172790 1.2745137952 0.9994760712
-148.0371032
72.80939959
-16.75711791 1.274513844 0.999476076
-4.57E-06
2.51E-06
-6.29E-07
4.84E-08
4.61E-09
6
1E-30
1.46609E-05
0.000870912
0.008756524
0.041242784
0.1250075
0.280391471
0.500378431
0.740025048
0.92837554
1

y = 0.9922x3.2044

Series1
Power (Series1)

10

12

0.968881144
2.634994631
-0.00784661
0.992184095
0.078256916
1.081400452
2.634994631
2.634994631

2.634994631
0.68697926
0.992184095
3.204413782

=EXP(Q50)
=LN(P49)
=EXP(Q51)
=LN(P52)

1.08548254 =LN(P53)

0.078256916 =LN(Q53)

Linest with data with gaps and filtered data


X_4
1
2
3
4
5
6
7
8
9
10
11

Y_4
1 0.12191
4 0.772674
9
16
25 1.97894
36 1.99712
49 2.121686
64 2.159371
81 2.383437
100 2.76474
121 2.725733

3
2.5
2
1.5
1
y = -0.02079x2 + 0.49096x - 0.21544
0.5
0
0

Linest
Linestgap, 2 x coiumns
Linestgap, array x
Function 1)
Function 2)

#VALUE!
-0.02079
-0.02079
-0.02079
-0.02079

10

12

#VALUE! #VALUE!
0.490963 -0.21544
0.490963 -0.21544
0.490963 -0.21544
0.490963 -0.21544

1) =LINEST(ISNUMBER(X_4)*Y_4,IF(X_4<>0,ISNUMBER(Y_4)*X_4^{0,1,2},0),0)
2) =LINEST( SUBTOTAL(3,OFFSET(X_4,ROW(X_4)-MIN(ROW(X_4)),,1)) *Y_4,
IF(X_4<>0,SUBTOTAL(3,OFFSET(Y_4,ROW(Y_4)-MIN(ROW(Y_4)),,1))*X_4^{0,1,2},0),0)

X_4
Y_4

1
2
1
4
0.12191 0.772674

Linestgap, 2 x rows
Linestgap, array x

3
9

4
16

5
25
1.97894

-0.02079 0.490963
-0.02079 0.490963

-0.21544
-0.21544

6
7
8
36
49
64
1.99712 2.121686 2.159371

Series1
Poly. (Series1)
0.21544

9
81
2.383437

10
11
100
121
2.76474 2.725733

Disclaimer
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
A copy of the GNU General Public License may be obtained from:
The Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

dougjenkins@interactiveds.com.au
www.interactiveds.com.au

Copyright 2011 Interactive Design Services Pty Ltd. all rights reserved

Revision History
Current Version
Rev

Date
1.00
1.01
1.02

1.02
By
DAJ
14-May-11 DAJ
26-Nov-11 DAJ

26-Nov-11
Description
First release
LinestGap() function added
LinestGap() function amended to work on data in rows

You might also like