+ Reply to Thread
Results 1 to 4 of 4

Take only specific number of rows

  1. #1
    Registered User
    Join Date
    03-22-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    63

    Take only specific number of rows

    Hi,

    I want to calculate beta values with probably *slope* function. Yet, I want to do this over many various periods and therefore selecting it manually would take ages. Is there a formula, macro that would lets say take 182 (6M), 365 (1Y) rows and add it to =slope(xxxxx:xxxxx) ?

    Thanks for your help in advance.

    dr
    Last edited by drakaz; 03-07-2015 at 04:10 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,615

    Re: Take only specific number of rows

    Post the sample wb
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-22-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Take only specific number of rows

    Attached a sample
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,615

    Re: Take only specific number of rows

    Maybe this will give you some ideas:
    Please Login or Register  to view this content.
    Last_Price:
    =Sheet1!$A$3:INDEX(Sheet1!$A:$A,COUNT(Sheet1!$A:$A)+2)

    Start_Date:
    =Sheet1!$M$2

    Span:
    =Sheet1!$N$2
    Attached Files Attached Files
    Last edited by protonLeah; 03-07-2015 at 04:08 PM.

+ 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. retrieve number of rows down from a specific value
    By euthanasia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2013, 10:33 AM
  2. Unhide specific number of rows
    By Alleen86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2010, 04:40 PM
  3. Possible to query for a specific number in rows?
    By jonw118 in forum Excel General
    Replies: 1
    Last Post: 03-03-2010, 06:54 PM
  4. [SOLVED] Re: finding the number of rows and the first row with a specific value
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  5. [SOLVED] finding the number of rows and the first row with a specific value
    By Bruce Bowler in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 12:06 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