+ Reply to Thread
Results 1 to 4 of 4

How to duplicate items per number

  1. #1
    Registered User
    Join Date
    11-23-2017
    Location
    Germany
    MS-Off Ver
    2019
    Posts
    51

    How to duplicate items per number

    Hi all,

    I am stuck with a problem that in my mind I think there should be a simple solution, but I can't get to it.

    I have a list of 10 people, and I have a list of 5 items (UK, US, China, South Africa, Sweden). I have to combine this list to have each one of he 10 people have 5 lines to have the items. So instead having 2 lists as:

    1
    2...
    9
    10

    and

    UK
    US...
    Sweden

    I need to have


    1 UK
    1 US
    1 China
    1 SA
    1 Sweden
    2 UK
    2 US
    2 China
    2 SA
    2 Sweden


    how can enhance my peoples list with the countries in a quick way?

    Hope my question is understandable.

    Thanks a lot for your help
    Last edited by JasXel; 04-12-2021 at 03:03 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to duplicate items per number

    Use:
    =IFERROR(INDEX($A$1:$A$10,1+INT((ROWS(E$1:E1)-1)/5)),"")

    and
    =IF(D1="","",INDEX($B$1:$B$5,1+MOD((ROWS(E$1:E1)-1),5)))

    both copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-23-2017
    Location
    Germany
    MS-Off Ver
    2019
    Posts
    51

    Re: How to duplicate items per number

    Thant works. Thanks a lot!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to duplicate items per number

    You're welcome and thanks for the feedback.

+ 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. [SOLVED] Extract and return a distinct and duplicate items list separately from a two list items
    By Mohammad Munawar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-14-2020, 07:42 AM
  2. [SOLVED] Count the number of non-duplicate items based off of criteria within a given sum range
    By Excelperson1992 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-18-2019, 11:56 AM
  3. Listbox, Need to change number of items in List (not the items)
    By Kalithro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 09:23 PM
  4. Replies: 8
    Last Post: 06-21-2013, 04:35 PM
  5. Replies: 0
    Last Post: 08-21-2012, 11:35 PM
  6. How do I refer to the items in a combobox by their number in the list of items?
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2007, 10:03 PM
  7. How to get rid off duplicate items?
    By Svea in forum Excel General
    Replies: 5
    Last Post: 10-23-2005, 08: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