+ Reply to Thread
Results 1 to 7 of 7

Slope calculation : Find last valid number automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    Frankfurt
    MS-Off Ver
    2007
    Posts
    1

    Unhappy Slope calculation : Find last valid number automatically

    Hallo everyone,

    I am trying to do following operation. Kindly look at the attached excel sheet for simple example.

    It is regarding "Slope" calculation of line automatically depending on length of the data (that also considers the last valid number)
    I need a single formula, which obeys all the 5 cases shown in "colored" column in the attached file (i.e) Slope .

    slope_automatic.xls

    I wanted to find a formula which can automatically perform "Slope" of the line calculation.

    It should consider cases like : Skipping of the first or/and last number IF they are "Non-Available"number. Also depending on length of dataset (x and y set), the slope calculation should be automatically updated, depending on last valid cell address/value.

    Please help me. I am doing it manually and I dont know how to use a valid formula to automate it.

    regards,

    - Excel'less excel user
    Last edited by excelun; 10-28-2014 at 06:47 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Slope calculation : Find last valid number automatically

    the slope calculation is a standard excel function.

    Look at "Linest"

  3. #3
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Slope calculation : Find last valid number automatically

    Hello excelun,

    Will there be any data under these columns, or will they be alone on the sheet?

    Also, is 30 the maximum amount of rows of data you could have?

    Lastly, do you have Excel 2007 like your profile states, or have you upgraded since then?
    Last edited by Loganeb; 10-28-2014 at 10:02 PM.
    Please click the star (add rep) if I helped!

  4. #4
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Slope calculation : Find last valid number automatically

    This will handle any of the situations that you have, provided a) you use the exact same format, b) your data points don't exceed row 100, c) the formula itself can't be in the slope column, but next to it is okay, and d) do NOT put anything else under the data that you're entering. To have self-adjusting columns, you cannot put anything below them.

    Note: These formulas have to be entered as array formulas, Ctrl + Shift + Enter to leave the cell.

    slope_automatic (1).xls

    Edit: The calculation cant affect any cells in the calculation area (where you were storing it), so I mimicked the data in your slope columns, and hid the original columns.
    Last edited by Loganeb; 10-29-2014 at 12:03 AM. Reason: Correction

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

    Re: Slope calculation : Find last valid number automatically

    Pl see attached file.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Slope calculation : Find last valid number automatically

    kvsrinivasamurthy,

    In your file, you assume the lowest row will be 13. I designed mine to dynamically expand the range depending on data points (assuming he doesn't put anything under it)

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

    Re: Slope calculation : Find last valid number automatically

    If the expected highest row is say 5000 then change 13 by 6000 or other value suitable.

+ 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. Replies: 4
    Last Post: 02-27-2014, 04:56 AM
  2. fixing a row (x-axis) in excel slope calculation
    By angel1980 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2013, 11:39 PM
  3. Replies: 7
    Last Post: 01-15-2013, 05:05 AM
  4. Changing Slope Calculation
    By alecp in forum Excel General
    Replies: 11
    Last Post: 02-09-2012, 10:31 AM
  5. how do I find the slope of a graph?
    By El - Raj in forum Excel General
    Replies: 2
    Last Post: 01-22-2006, 10:55 PM

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