+ Reply to Thread
Results 1 to 6 of 6

Repetition

  1. #1
    Registered User
    Join Date
    06-15-2007
    Posts
    25

    Repetition

    Hi,

    i have a problem and im not sure of the approach

    i have uploaded a file.....basically i have an input of names and i want to repeat these as shown in the output..is this possible

    i tried the rept function but can't get it right...any help appreciated.

    thanks in advance
    Attached Files Attached Files
    Last edited by EAMOG; 12-15-2008 at 06:36 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    In C2 and copy down =INDEX(A:A, INT(ROW() - 2) / 4 + 2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-15-2007
    Posts
    25
    Quote Originally Posted by shg View Post
    In C2 and copy down =INDEX(A:A, INT(ROW() - 2) / 4 + 2)
    SUPERB!....REALLY APPRECIATE THAT....Any chance of a quick explaination as i don't understand everything

    Thanks!

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949
    Please Login or Register  to view this content.
    what he's done is take the row which you're looking at, ROW(), subtract 2 from it, so say, row 3, that would give a result of 1. Then 1/4 is 0.25, but the INT is the whole number integer, so it gives an answer of 0. Then there's that +2, so 0 + 2 is row 2, where the answer will be INDEXed from, in column A:A, being all of column A.

    He's broken down every 4 number increase into a round number integer result in groups of 4, then used INDEX to return that whole number as a column. IE 2,3,4,5 all = 2, 6,7,8,9 all = 3

    Edit:
    Not trying to steal your thunder SHG, I didn't understand it either at a glance, so figured I'd go over it myself
    Last edited by mewingkitty; 12-15-2008 at 06:19 PM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    If you're a happy camper, would you please mark the thread as Solved?

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  6. #6
    Registered User
    Join Date
    06-15-2007
    Posts
    25
    Quote Originally Posted by shg View Post
    If you're a happy camper, would you please mark the thread as Solved?

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    status solved!....thanks again, appreciated...

+ 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