+ Reply to Thread
Results 1 to 5 of 5

Convert list of unique values into multiples quickly

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    luton
    MS-Off Ver
    Excel 2003
    Posts
    9

    Convert list of unique values into multiples quickly

    HI guys

    Basically my problem is that i need to convert a list of unique values into a list of the same values duplicated several times.

    A small example is; I need to change the list:

    Item1
    Item2
    Item3
    Item4

    So that each item is shown four times;

    Item1
    Item1
    Item1
    Item1
    Item2
    Item2
    Item2
    Item2

    etc...

    Any advice welcome.

    Cheers

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Convert list of unique values into multiples quickly

    Hi

    With your starting in A2(A1=Title); put this formula, where you want and copy down.

    =INDEX($A$2:$A$1000;CEILING(ROW(A1)/4;1))

    Is this, works for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Convert list of unique values into multiples quickly

    if your values you want to repeat are in A1:A4, put this formula in any cell in any other column and drag down:

    =INDEX($A$1:$A$4,INT((ROW($A1)-1)/2)+1)
    this will repeat a value 2 times. if you want to repeat every value 4 times:

    =INDEX($A$1:$A$4,INT((ROW($A1)-1)/4)+1)
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    11-25-2011
    Location
    luton
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Convert list of unique values into multiples quickly

    Fantastic. Big thanks to both of you.

    Cheers

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Convert list of unique values into multiples quickly

    if your query has met resolution, please set the thread status to Solved.

    Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

+ 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