+ Reply to Thread
Results 1 to 4 of 4

Making an known amount of replicates in autofill

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    10

    Making an known amount of replicates in autofill

    Hello forum,

    Since this forum usually have some very helpfull people, I will try explaining another question that comes to mind.

    In one of my worksheets I want to import a list from another worksheet, though in the worksheet I want imported, the list goes like this:


    33
    35
    38
    69 etc..

    So in my worksheet I import it, ex: ='Sample I.D'!B7 and autofill down so it goes ='Sample I.D'!B8 and so on.


    This is fine, but I want each number to be represented 4 times, like:

    33
    33
    33
    33

    35
    35
    35
    35

    38
    38
    38
    38 etc

    Is there any formula I could write to make it do quadruple instead of of single? and even better, is there a way to make it do a line between the 4 autofills? This would be so helpful in the furture!

    Thanks!

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Making an known amount of replicates in autofill

    Probably an easier way, but if your data are in A1:A4, try this in B1 and copied down

    =IF(MOD(ROW(),5)=0,"",OFFSET($A$1,CEILING(ROW()-CEILING(ROW(),4)/4+1,4)/4-1,0,1,1))

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Making an known amount of replicates in autofill

    I keep getting an error Could it be a regional setting?

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Making an known amount of replicates in autofill

    Post a workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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