Im trying to get the values for the weeks based on the logaritmic trendline
Your help will be highly appritiate
Screenshot 2022-08-29 114242.png
Im trying to get the values for the weeks based on the logaritmic trendline
Your help will be highly appritiate
Screenshot 2022-08-29 114242.png
So, with only two points, it is basically "linear interpolation" between those two points, correct?
Standard linear interpolation formula (Y2-Y1)/(X2-X1)=(Y3-Y1)/(X3-X1) where points 1 and 2 are the known points and point 3 is the one to find. Solve for Y3
Y3=(Y2-Y1)/(X2-X1)*(X3-X1)+Y1
Note that, in this case, X's are really ln(x).
Substitute references for variables. formula in C5 =($C$11-$C$4)/(LN($B$11)-LN($B$4))*(LN(B5)-LN($B$4))+$C$4. Note the mix of relative and absolute references and copy/paste into C5:C10.
Will that work?
Originally Posted by shg
did not work,
I belive the anwer is much simpler but I dont remember it, was explain to me some days ago
is like replace the X in the formula for the algoritmic trendline ""y = -0.736ln(x) + 3.93"" so it will give the value for week 35 individually and so on for each week
Not sure why it did not work.
Perhaps you are referring to a formula like =-0.736*LN(B5)+3.93 or =$A$1*LN(B5)+$A$2 where A1 and A2 contain the constants from the trendline? Is that what you are wanting to do?
yes!
but ""=-0.736*LN(B5)+3.93"" is equal to 1.313263827, and that point in the chart is not the week 35 AHT that the trentline predicts
My mistake. I notice you are using a line chart (category horizontal axis) and not a scatter chart (numeric horizontal axis). When using a trendline on a line chart, the trendline uses "count numbers" (1,2,3,...) for the known x values. If you had the numbers 1 to 8 in A4:A11, you could use =-0.736*LN(A5)+3.93 to fill in column C -- assuming, of course, that you are required to use a line chart for this.
One usually prefers to use the actual x values rather than arbitrary count values, in which case, one should use an XY scatter chart. If you change the chart type, you will see that you get a regression equation of y=-8.173*LN(x)+32.749. Putting these constants into the formula will allow you to use column B as the x values in your formula.
If you are not required to use the chart at all, and you don't like the linear interpolation formula, I find I prefer to do regressions directly in the spreadsheet using one of the built in regression functions (like LINEST(), SLOPE(), INTERCEPT(), TREND() and others). For example, if I make a table for the known values.I can use =TREND($O$2:O$O3,$N$2:$N$3,LN(B5)) to get the values. I can use =LINEST(O2:O3,N2:N3) to get the regression constants. Whether or not you can use this kind of approach depends on what changes to the sheet you are allowed to make and how you will want to interact with the sheet.![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks