+ Reply to Thread
Results 1 to 6 of 6

Im trying to calculate values to comple data labels base on Logaritmic trendline

  1. #1
    Registered User
    Join Date
    08-29-2022
    Location
    Anapurna
    MS-Off Ver
    Excel 2022
    Posts
    3

    Im trying to calculate values to comple data labels base on Logaritmic trendline

    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
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,477

    Re: Im trying to calculate values to comple data labels base on Logaritmic trendline

    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?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-29-2022
    Location
    Anapurna
    MS-Off Ver
    Excel 2022
    Posts
    3

    Re: Im trying to calculate values to comple data labels base on Logaritmic trendline

    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

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,477

    Re: Im trying to calculate values to comple data labels base on Logaritmic trendline

    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?

  5. #5
    Registered User
    Join Date
    08-29-2022
    Location
    Anapurna
    MS-Off Ver
    Excel 2022
    Posts
    3

    Re: Im trying to calculate values to comple data labels base on Logaritmic trendline

    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

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,477

    Re: Im trying to calculate values to comple data labels base on Logaritmic trendline

    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.
    Please Login or Register  to view this content.
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changes to Trendline Labels not being saved
    By ChrisHaddow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-25-2019, 05:33 AM
  2. [SOLVED] Excel 2010 Trendline With Data labels or number on forward forecast trendline
    By camelight in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-15-2015, 08:35 AM
  3. Replies: 3
    Last Post: 10-29-2012, 11:04 AM
  4. Replies: 0
    Last Post: 10-11-2011, 03:22 PM
  5. Replies: 4
    Last Post: 06-22-2009, 08:53 PM
  6. Replies: 1
    Last Post: 01-22-2008, 08:20 PM
  7. [SOLVED] How do I change the logaritmic scale i Excel?
    By Sanne in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-27-2006, 11:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1