+ Reply to Thread
Results 1 to 6 of 6

Two Lists Join - But 1st list is index and 2nd list repeats

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Sydney, NSW
    MS-Off Ver
    Excel 2003
    Posts
    3

    Two Lists Join - But 1st list is index and 2nd list repeats

    Scenario

    List 1 - 5 Usernames (Sheet 1)

    List 2 - 3 Stock Items (Sheet 2)

    I need to join the 2 lists however for every Username (List1) I need to show all Stock Items (List 2) all to be displayed on Sheet 3.

    Sample Output:

    User 1, Item 1
    User 1, Item 2
    User 1, Item 3
    User 2, Item 1
    .......
    .......
    User 5, Item 3

    Can you advise how best to achieve this via VBA?

    I know to set the range and cycle through the Usernames - but don't know how to then action this and copy and paste the data onto a new sheet.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Two Lists Join - But 1st list is index and 2nd list repeats

    Hi Brad,
    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-18-2009
    Location
    Sydney, NSW
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Two Lists Join - But 1st list is index and 2nd list repeats

    Hi nilem,

    Thanks for the prompt response. Looks like it is working! Fantastic.

    One final tweak....

    If I expand the Lists can this also work?

    List 1 - Username & email (Sheet 1: column A & B)
    List 2 - Item & qty (Sheet 2: column A & B)

    Sample Output:

    User 1, [email protected], Item 1, 1
    User 1, [email protected], Item 2, 2
    ......
    User 5, [email protected], Item 5, 5

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Two Lists Join - But 1st list is index and 2nd list repeats

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-18-2009
    Location
    Sydney, NSW
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Two Lists Join - But 1st list is index and 2nd list repeats

    Perfect - thanks nilem!

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Two Lists Join - But 1st list is index and 2nd list repeats

    You are welcome!

+ 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. Replies: 2
    Last Post: 07-17-2012, 02:06 PM
  2. Sort through list picking out names (not repeats)
    By stevedes7 in forum Excel General
    Replies: 1
    Last Post: 10-18-2009, 02:54 AM
  3. Recognize the 1st value on a list and ignore the repeats
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 07-15-2009, 01:18 PM
  4. [SOLVED] How can I count the number of repeats in a list of data?
    By SouthCarolina in forum Excel General
    Replies: 7
    Last Post: 03-07-2006, 06:10 PM
  5. [SOLVED] How do I randomize a list without repeats
    By K9CE in forum Excel General
    Replies: 2
    Last Post: 10-13-2005, 02:05 PM

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