+ Reply to Thread
Results 1 to 3 of 3

Dynamic Trendline Formula

  1. #1
    Registered User
    Join Date
    12-05-2014
    Location
    Lombard, IL
    MS-Off Ver
    2013
    Posts
    2

    Dynamic Trendline Formula

    I have these two formulas to calculate the power trendline of a data set; however, I need them to be dynamic. If there are any blank cells in my data range the formulas error out. Is there any way to get the length of the data set and use only those values.

    Here are the two equations:

    C: =EXP(INDEX(LINEST(LN(L4:L7),LN(K4:K7),,),1,2))
    e: =INDEX(LINEST(LN(L4:L7),LN(K4:K7),,),1)

    The problem is that I want to take the data set for the entire column of L and K (example L:L & K:K) and get a power trendline. The data set will only have blank cells at the bottom of the list if that helps and the data will always have data in both K and L that coincides.

    Any help would be appreciated.

    Thanks,
    Kevin

    Trendline.xlsx

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Dynamic Trendline Formula

    Pl see file.
    Same formuala can be used.Used your information that "data set will only have blank cells at the bottom of the list ". Both the ranges should have equal number of blank cells at bottom only.
    Two Dynamic Name ranges Arange & Brange created for A & B columns.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-05-2014
    Location
    Lombard, IL
    MS-Off Ver
    2013
    Posts
    2

    Re: Dynamic Trendline Formula

    Thanks, that is exactly what I was looking for.

+ 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. [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
  2. Trendline/formula
    By adhca in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-03-2014, 06:16 AM
  3. [SOLVED] error in trendline formula
    By chiidzzz in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-07-2014, 08:36 AM
  4. Displaying Trendline formula in Cell
    By aki096 in forum Excel General
    Replies: 4
    Last Post: 11-26-2008, 08:29 AM
  5. Using Trendline Formula
    By Maarten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2005, 11:06 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