You are on page 1of 12

Linest and Logest Functions

1.2
f(x) = - 0.9042872603x + 1.1863899067

X_1
0.00001
0.156444342
0.309026505
0.45399941
0.587793342
0.707113852
0.809022872
0.891011064
0.951059606
0.987689905
1

Y_1
1
0.987686776
0.951053426
0.891001984
0.809011116
0.70709971
0.587777162
0.45398159
0.309007484
0.156424588
0.00001

0.8
0.6
0.4
0.2
0
0

0.2

0.4

0.6

0.8

1.2

1.2

1
f(x) = - 49.6999904255x^6 + 139.4471090673x^5 - 148.0370986301x^4 + 72.8093970745x^3 - 16.7571172791x^2 + 1.
0.8
0.6

Column B

0.4
0.2
0
0

X_2

0.4

0.6

0.8

1.2

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

X_3

0.2

1
9.819611666
31.62948535
92.95378752
186.6166044
218.2086025
510.983758
641.148864
1305.170754
1848.48383
2247.182616

Exponential

2500

f(x) = 2.63499 exp( 0.68698 x )

2000
1500
1000
500
0

Y_3
1 0.12190971
2 0.772674089

3
2.5

Logarithmic
f(x) = 1.0854825399 ln(x) + 0.0782569155

10

12

3
4
5
6
7
8
9
10
11

1.251978055
1.581688217
1.978940004
1.997119505
2.121685644
2.159371002
2.383436813
2.764739838
2.725732769

Logarithmic

3
2.5

f(x) = 1.0854825399 ln(x) + 0.0782569155

2
1.5
1
0.5
0
0

10

1.2

67
1

f(x) = - 1.4163086198x^2 + 0.6123616945x + 0.949656484

0.8
Column B

0.6
0.4
0.2
0

0.8

1.2

+ 72.8093970745x^3 - 16.7571172791x^2 + 1.2745137952x + 0.9994760712

0.2

Linear
Quadratic
Cubic

0.4

0.6

=LINEST(Y_1,X_1)
=LINEST(Y_1,X_1^{1,2})
=LINEST(Y_1,X_1^{1,2,3

Column B

xponential

Power

2500

x)

2000

Column B

f(x) = 0.9921840947 x^3.2044137818

1500
1000
500
0

ogarithmic

.0782569155

10

12

Type

Function

ogarithmic

.0782569155

Column B

10

12

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))

Exp 3
Exp 4

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

23616945x + 0.949656484

Column B

0.6

0.8

a
-0.9042872603
-1.4163086198
-2.0819891701

1.2

b
1.1863899067
0.6123616945
1.7912563446

0.949656484
-0.6323269444 1.0192641715

Power

7 x^3.2044137818
Column
B

Function

10

12

Function Results

Additional results

),LN(X_2))
LN(X_2))

_3),LN(X_3))

N(Y_2),X_2))

0.6869792603
1.9877021247
3.2044137818
24.6410507489
1.0854825399
2.9608682112

0.9688811443
2.6349946306
-0.0078466095
0.9921840947
0.0782569155
1.0814004515

1.9877021247
1.9877021247

2.6349946306
2.6349946306

2.6349946306
0.6869792603
0.9921840947
3.2044137818
1.0854825399

Additional results

=EXP(P51)
=LN(O52)
=EXP(P53)
=LN(O54)
=LN(O56)

0.078256916 =LN(P56)

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
f(x) = - 0.02079x^2 + 0.49096x - 0.21544

2.5
2
1.5
1
0.5
0
0

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

10

Err:502
Err:502
Err:502
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
-0.020795 0.490963 -0.215437
Err:502
Err:502
Err:502

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)

Linestgap used with data in rows


X_4

Y_4

1
2
1
4
1
8
0.12191 0.772674

Linestgap, 3 x rows
Linestgap, array x

3
9
27

4
16
64

5
25
125
1.97894

#VALUE!
#VALUE!

#VALUE!
#VALUE!

#VALUE!
#VALUE!

6
36
216
1.99712

12

0.49096x - 0.21544

Column C

10

12

,1,2},0),0)
*Y_4,
1))*X_4^{0,1,2},0),0)

7
8
9
49
64
81
343
512
729
2.121686 2.159371 2.383437

10
11
100
121
1000
1331
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, 2014 Interactive Design Services Pty Ltd. all rights reserved

Revision History
Current Version
Rev

1.05

Date
1.00
1.01
1.02
1.03
1.04
1.05

14-May-11
26-Nov-11
10-Jul-14

7/16/2014
6/27/2015

27-Jun-15

By

Description

DAJ
DAJ
DAJ
DAJ
DAJ
DAJ

First release
LinestGap() function added
LinestGap() function amended to work on data in rows
LinestGap() function amended to ignore cells with error values
Ignore cells with errors made optional; default = false
Minor corrections to notes

all rights reserved

rk on data in rows
ore cells with error values
l; default = false

You might also like