+ Reply to Thread
Results 1 to 8 of 8

Replicating data from a list

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    31

    Replicating data from a list

    Hi,

    I have 2 lists:
    [Note: Treat the commas as separate columns]
    LIST A:
    loc1
    lo-2
    loo3
    loi4

    LIST B:
    1,abba,75
    2,babba,356
    3,bom,22

    Final Product Required:
    1,abba,75,loc1
    2,babba,356,loc1
    3,bom,22,loc1
    1,abba,75,lo-2
    2,babba,356,lo-2
    3,bom,22,lo-2
    .
    ..
    ...
    ..
    3,bom,22,loi4

    Cross-posted: http://www.mrexcel.com/forum/showthread.php?t=637654
    Last edited by zbor; 05-25-2012 at 07:34 AM.

  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: Replicating data from a list

    Hi and welcome to the forum.

    Let's say List A, is in Column A and List B, in Columns B-C-D

    Then try this.

    =B1&C1&D1&A1

    Or

    =B1&" "&C1&" "&D1&" "&A1

    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 Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Replicating data from a list

    Welcome vgr
    Fotis has given you an answer.

    I Just wan't to show forum rule#8.

    Don't cross-post without a link. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post. Expect cross-posts without a link to be closed.
    Thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    05-25-2012
    Location
    Chennai,TamilNadu,India
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    61

    Re: Replicating data from a list

    Hi VGR,

    I have attached the file with the solution, check it out and let me know.

    Regards,
    Hari
    Attached Files Attached Files

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

    Re: Replicating data from a list

    if you are fine with a slightly different layout of output than the one you illustrated above, here is a formulaic approach:
    - 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 -

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

    Re: Replicating data from a list

    with functions like you can do it like this,of course you show a very simple example
    Attached Files Attached Files
    "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

  7. #7
    Registered User
    Join Date
    05-25-2012
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Replicating data from a list

    Quote Originally Posted by martindwilson View Post
    with functions like you can do it like this,of course you show a very simple example
    @icestationzbra, @martindwilson & @reachharry

    voooh
    That was really cool... thanks a lot... Personally, I liked the ones with the formula in it as I had to add a couple more columns...
    but you guys sure are awesome at excel.
    Thanks a lot again..

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: Replicating data from a list

    vgr, you could do as vlady told you: you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    How hard that can be?

+ 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