+ Reply to Thread
Results 1 to 2 of 2

Lookups & removing errors while using linest

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    Adelaide, Australia
    MS-Off Ver
    2016
    Posts
    1

    Lookups & removing errors while using linest

    Hi,

    I'm using linest to obtain the slope of a series of data.
    My data is three colums of X, Y and 'category'.

    e.g.
    X Y 'category 1'
    X Y 'category 1'
    X Y 'category 2'
    X Y 'category 3'
    X Y 'category 3'
    X Y 'category 2' ect. ect.

    What I'm trying to do is look up the specific categories X and Y variables and find the slope of that 'category'.
    So far I have got to the point where my linest function if calculating the slope of a X & Y array that contains the categories data but the rest of the array is zeros or an error. I need a way to filter out the zeros/errors.

    My code so far is (or a variation of):

    =LINEST( "X-array" *(( "category array" = "category n" )) , "Y-array" * (( "category array" = "category n")))

    I've also tried using the aggregate (small) function, but after the aggregate (small) function calculates it returns the smallest number in the array and not the entire array, which I need for linest to calculate with.

    Can anyone please help?
    Thank you for you help

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Lookups & removing errors while using linest

    Please re-read the forum rules, especially that one relating to 'cross-posting':

    https://www.mrexcel.com/forum/excel-...ng-linest.html

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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] Sorting causing errors with lookups
    By Khoori7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-26-2013, 10:49 PM
  2. [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
  3. Removing #N/A Errors
    By Excel-Access in forum Excel General
    Replies: 3
    Last Post: 12-13-2012, 11:17 AM
  4. [SOLVED] Removing #NUM errors and negative depreciation
    By haloperidal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2012, 03:22 PM
  5. Replies: 0
    Last Post: 02-23-2012, 10:57 AM
  6. removing N/A Errors
    By davittp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2007, 06:01 AM
  7. [SOLVED] Removing errors from a Pivot table
    By Mighty Magpie in forum Excel General
    Replies: 2
    Last Post: 02-03-2005, 12: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