+ Reply to Thread
Results 1 to 3 of 3

LINEST() Help

  1. #1
    Registered User
    Join Date
    10-19-2023
    Location
    Baltimore, MD
    MS-Off Ver
    MS 365
    Posts
    4

    LINEST() Help

    Hi Folks,

    New to the forum! I'm trying to write a LINEST function that allows the user to specify the appropriate ranges for x and y using the following (file also attached):

    =linest(text(CELL("address",INDEX($A$8:$E$17,MATCH(B29,$E$8:$E$17, 0),5)),"0"):text(CELL("address",INDEX($A$8:$E$17,MATCH(C29,$E$8:$E$17, 0),5)),"0"),text(CELL("address",INDEX($A$8:$E$17,MATCH(B28,$B$8:$B$17, 0),2)),"0"):text(CELL("address",INDEX($A$8:$E$17,MATCH(C28,$B$8:$B$17, 0),2)),"0"),true,false)

    For some reason the CELL(INDEX(MATCH( combo isn't yielding a format that the LINEST function can use to create a range. My ultimate goal is to obtain the slope and y-intercept for two lines of best fit, then solve for the point of intersection.

    Thanks in advance for your help!

    Consolidation Parameters.xlsx

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

    Re: LINEST() Help

    Are you required to use the CELL(INDEX(...)) combination for this? I would probably use the OFFSET() function for this.

    1) Instead of cell references, have the user enter the desired row numbers in B32 and C32 (9 and 14).
    2) OFFSET($E$1,B32-1,0,C32-B32+1,1) will return the range E9:E14. OFFSET($B$1,...) will return B9:B14.
    3) Place those two OFFSET() functions in the LINEST() function =LINEST(OFFSET($E$1...),OFFSET($B$1...))

    Would that be an appropriate approach to the problem for you?
    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
    10-19-2023
    Location
    Baltimore, MD
    MS-Off Ver
    MS 365
    Posts
    4

    Re: LINEST() Help

    Yes, that did the trick - thanks for your help!!

+ 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 help?
    By Technetium in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2022, 10:13 AM
  2. [linest] Whu LINEST can't the precise parameter of each variable?
    By valuex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2015, 12:12 PM
  3. [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
  4. Value of LINEST
    By aner1755 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-09-2009, 04:27 AM
  5. Linest
    By soulwind in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2007, 03:48 PM
  6. [SOLVED] LINEST()
    By Bove Farm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2006, 01:00 AM
  7. linest
    By pjk@boro in forum Excel General
    Replies: 2
    Last Post: 02-20-2006, 06:00 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