ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   creating logarithmic trendline equation function (https://www.excelbanter.com/excel-programming/291566-creating-logarithmic-trendline-equation-function.html)

mparker[_2_]

creating logarithmic trendline equation function
 

Hello,

I was just wondering how I can create a logarithmic trendline equatio
function out of three points. I don’t want to have to manually copy i
from a chart as there are over fifty different log equations. I woul
like it to just calculate a result automatically in a cell.

Example:

Three data points:

X
15.00 23.00 35.00

Y
25.34 24.38 22.72


Trendline equation created from three point in chart:
y = -3.0925Ln(x) + 33.836

Let x = 25

y = 23.88

I sure hope you can help me this.

Thanks,

Mitchel

mparke
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message399665.htm


Tom Ogilvy

creating logarithmic trendline equation function
 
assume you data

A1: 15 B1: 25.34
A2: 23 B2: 24.38
A3: 35 B3: 22.72

A5: =ln(a1)
A6: =ln(A2)
A7: =ln(A3)

select C1:D1 array enter (ctrl+Shift+Enter rather than just enter)
=Linest(B1:B3,A5:A7)

c1: -3.089633383

D1: 33.82637732

Answer is slightly different, but we may not have exactly the same inputs.

--
Regards,
Tom Ogilvy


"mparker" wrote in message
...

Hello,

I was just wondering how I can create a logarithmic trendline equation
function out of three points. I don't want to have to manually copy it
from a chart as there are over fifty different log equations. I would
like it to just calculate a result automatically in a cell.

Example:

Three data points:

X
15.00 23.00 35.00

Y
25.34 24.38 22.72


Trendline equation created from three point in chart:
y = -3.0925Ln(x) + 33.836

Let x = 25

y = 23.88

I sure hope you can help me this.

Thanks,

Mitchell


mparker
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message399665.html




acw[_2_]

creating logarithmic trendline equation function
 
Mitchel

You can use the LOGEST function

If you put your data in the range B1:D3 as described, then array enter the formula =LOGEST(B2:D2,B1:D1) in cells B7:C7. The results will be (approx) .99 (B7) and 27.56 (C7). The formula is then =$C$7*$B$7^B1 copied across to cover the X cells B1 to B3

Ton

----- mparker wrote: ----


Hello

I was just wondering how I can create a logarithmic trendline equatio
function out of three points. I dont want to have to manually copy i
from a chart as there are over fifty different log equations. I woul
like it to just calculate a result automatically in a cell

Example

Three data points

X
15.00 23.00 35.0


25.34 24.38 22.7


Trendline equation created from three point in chart
y = -3.0925Ln(x) + 33.83

Let x = 2

y = 23.8

I sure hope you can help me this

Thanks

Mitchel


mparke
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message399665.htm




All times are GMT +1. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com