+ Reply to Thread
Results 1 to 3 of 3

Using LINEST function on Dynamic Series

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Anchorage
    MS-Off Ver
    Excel 2007
    Posts
    45

    Using LINEST function on Dynamic Series

    Hi

    I have developed a dynamic chart so that the data is plotted correctly even if there is data missing in the selected series. I want to use the same data and LINEST function to calculate the Slope of the line with zero intercept. I have used the SLOPE and INTERCEPT functions on the same data and I get correct but when I use the LINEST function it gives me error #VALUE.

    Could someone help me to calculate the Slope of the line with zero intercept. Please see the attached spreadsheet.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,453

    Re: Using LINEST function on Dynamic Series

    =LINEST(C3:INDEX(C3:C15,A3),B3:INDEX(B3:B15,A3),FALSE,FALSE)

    where A3 contains the shortest length of data.

    A3: =MIN(COUNT(B3:B15),COUNT(C3:C15))
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    Anchorage
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Using LINEST function on Dynamic Series

    Thank you Andy, this is excellent and it works. This is a great help, I could have never thought of this combination of functions.
    Thank you again.

+ 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] Linest Function - Unable to get LinEst property of the WorksheetFunction class
    By fbs13 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-25-2013, 09:55 AM
  2. Replies: 7
    Last Post: 07-13-2012, 12:04 PM
  3. Using LINEST and TREND with a dynamic range
    By bn8959 in forum Excel General
    Replies: 0
    Last Post: 02-11-2012, 11:37 AM
  4. Can I create a dynamic chart with a dynamic number of series?
    By SG2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-24-2011, 08:44 AM
  5. LINEST Function
    By sydodman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2005, 07:16 AM

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