+ Reply to Thread
Results 1 to 9 of 9

Getting datas every 3 rows

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Getting datas every 3 rows

    Hi,

    I got a problem, and i don't know how to solve it.

    I'd like to get the datas of a collumn in an other sheet, but i'm only interested at every three rows datas.

    Is it possible to calculate a value first of a collumn?

    So doing like:
    =A1
    =A(1+3)
    = A(4+3)
    ...


    Result expected:
    ='MySheet'!A1
    ='MySheet'!A4
    ='MySheet'!A7
    ...

  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: Getting datas every 3 rows

    =INDEX('MySheet'!A:A,ROWS($A$1:A1)*3-2)
    Last edited by martindwilson; 09-30-2013 at 12:14 PM.
    "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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Getting datas every 3 rows

    Try this:

    =INDEX('MySheet'!A:A,ROWS($1:1)*3-2)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Getting datas every 3 rows

    @martin:

    you missed the !

    Pete

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

    Re: Getting datas every 3 rows

    nope, never ,look its there

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Getting datas every 3 rows

    I should have taken a screenshot !!

    Pete

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Getting datas every 3 rows

    I must not understand something there:
    INDEX( reference, row_number, [column_number], [area_number] )

    I don't arrive to adapt it at my needs ^^.

    So:

    =INDEX('MySheet'!A:A;ROWS($A$1:A1)*3-2)

    'MySheet'!A:A; all the column where i need to get the datas

    ROWS($A$1:A1) <--- number of lines between the range, so will be incremented by 1

    *3-2 ( to do 1,4,7 ... )
    So if i wanted every 13 starting from 3 it should be:
    ROWS(A$1:A1)*13-10

    If i try the rows function it's working, giving: 3,16,29 ...

    But when i try the complete expression, it doesn't work:
    =INDEX('MySheet'!A:A,ROWS(A$1:A1)*13-10)
    or ';' instead of ',' as it was giving an ERROR
    =INDEX('MySheet'!A:A;ROWS(A$1:A1)*13-10)

    Any idea ?

    Thank you !!

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

    Re: Getting datas every 3 rows

    works just fine you have got it right see attached
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-30-2013
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Getting datas every 3 rows

    Indeed it works, it seems i was too tired yesterday night xD

    Thank you !

+ 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. Updating Datas in different rows
    By Mustafa89 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-22-2013, 07:37 AM
  2. compare oracle table datas and excel datas
    By james94539 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2013, 03:48 PM
  3. columns datas to row & insert new rows
    By ss_bb_24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2009, 11:02 AM
  4. sort certain datas in a wide range of datas
    By go4cdt in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 12:45 PM
  5. re : Finding the datas and deleting datas which are not found.
    By ddiicc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-30-2005, 09:05 AM

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