+ Reply to Thread
Results 1 to 3 of 3

How to not include NA values with LINEST function

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    5

    How to not include NA values with LINEST function

    Hi,

    I used this function to calculate the slope from a range with #N/A values and it worked fine:

    =SLOPE(IF(ISNA(H5:H33),"",H5:H33),IF(ISNA(G5:G33),"",G5:G33))
    (finished with ctrl + shift + enter)

    So i assumed this would work to in order to calculate the std error of the slope:

    =INDEX(LINEST(IF(ISNA(H5:H33),"",H5:H33),(IF(ISNA(G5:G33),"",G5:G33)),1,1),2,1)
    (finished with ctrl + shift + enter)

    But I was wrong.

    Any ideas of how to get this to work?

    Thanks,

    Harald

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to not include NA values with LINEST function

    LINEST will not allow gaps in data: http://newtonexcelbach.wordpress.com...ata-with-gaps/
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to not include NA values with LINEST function

    See http://www.mrexcel.com/forum/excel-q...ls-linest.html for a nasty formula.
    Entia non sunt multiplicanda sine necessitate

+ 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] VBA + LINEST Function
    By ryllex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2013, 08:20 AM
  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. LINEST function
    By a_shyam41 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2011, 08:01 AM
  4. LINEST Function
    By sydodman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2005, 07:16 AM
  5. LINEST Function
    By sydodman in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-01-2005, 03:38 AM

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