+ Reply to Thread
Results 1 to 2 of 2

Selecting a range of values from high frequency data

  1. #1
    Registered User
    Join Date
    11-17-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Selecting a range of values from high frequency data

    Dear all,

    I have a very long list of high frequency data in excel, (over 190,000 rows). What i would like to do is to be able to select every 9000 cells as i go down the list and return the sum of those cells into a cell on another worksheet.

    My original plan was to do cell: =(SUM(CELL1:CELL9000)) and then change the next cell to: =(SUM(CELL9001:18000))
    However this will take forever to do when in some worksheets i have almost half a million lines.

    Is there some sort of programming function or macro that i can use that will allow me to select every 9000cells from this data range. Your help would be appreciated.
    thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Selecting a range of values from high frequency data

    you could try dragged down
    =SUM(INDEX('Sheet one'!A:A,ROWS($A$1:A1)*9000-8999):INDEX('Sheet one'!A:A,ROWS($A$1:A1)*9000))
    you could also use offset
    =SUM(OFFSET('Sheet one'!$A$1,ROWS($A$1:A1)*9000-9000,,9000))
    but i think that would be slow
    if its too slow you'll need some vba
    Last edited by martindwilson; 11-17-2012 at 06:28 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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