Results 1 to 4 of 4

Thread: Excel: pulling index data out of data set

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    Connecticut
    Posts
    135

    Question Excel: pulling index data out of data set

    I have a(1) column of data in excel and I would like to pull every 60th (example: 60,120,180) data points out of the column. How do I do this? VBA may be the way but I have never done any.

    The index function in excel does not work well:
    example:
    Index(A1:An,C1) where C1 = the Interval (60th), it returns a result that is 3 or 4 indexes down from the correct value.

    Thanks

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Excel: pulling index data out of data set

    When you "pull" the values what are you doing with them?
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Excel: pulling index data out of data set

    I find the index function to work perfectly. Assuming your data is in column A, put a list of numbers 1,2,3,4... in column C and then in column D put the formula:

    =INDEX(A:A, C1*60)

    and fill it down. This will fill in the value of cells A60, A120, A180...
    To start with the first one, put =INDEX(A:A,((C1-1)*60)+1) to get A1, A61, A121...


    zaza
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    Connecticut
    Posts
    135

    Re: Excel: pulling index data out of data set

    I want to plot it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width