+ Reply to Thread
Results 1 to 5 of 5

Using Concatenate and Array into one List

  1. #1
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Using Concatenate and Array into one List

    Hello Wizards of Excel,

    I'm having trouble with the current spreadsheet I working the goal is that I'm trying to combine three lists into one list, but each term needs "x" amount of terms attached to it and the end result is a text string. Using just concatenate doesn't seem to do the trick alone. I enclosed an example of this issue within this post any help with this is much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Using Concatenate and Array into one List

    Hi,
    put this in I2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Using Concatenate and Array into one List

    This is not an array formula (i.e. one that needs to be confirmed with Ctrl-Shift-Enter), but you can use this in I2:

    =IF(ROWS($1:1)>COUNTA($B$2:$B$18)*COUNTA($C$2:$C$18)*COUNTA($E$2:$E$18)*COUNTA($G$2:$G$18),"",INDEX($B$2:$B$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)*COUNTA($E$2:$E$18)*COUNTA($C$2:$C$18)),COUNTA($B$2:$B$18))+1) & ": " & INDEX($C$2:$C$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)*COUNTA($E$2:$E$18)),COUNTA($C$2:$C$18))+1) & " - " & INDEX($E$2:$E$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)),COUNTA($E$2:$E$18))+1) & INDEX($G$2:$G$18,MOD(ROWS($1:1)-1,COUNTA($G$2:$G$18))+1))

    then copy down. It might be easier to understand it if I manually put line breaks in, like this:

    =IF(ROWS($1:1)>COUNTA($B$2:$B$18)*COUNTA($C$2:$C$18)*COUNTA($E$2:$E$18)*COUNTA($G$2:$G$18),"",
    INDEX($B$2:$B$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)*COUNTA($E$2:$E$18)*COUNTA($C$2:$C$18)),COUNTA($B$2:$B$18))+1) & ": " &
    INDEX($C$2:$C$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)*COUNTA($E$2:$E$18)),COUNTA($C$2:$C$18))+1) & " - " &
    INDEX($E$2:$E$18,MOD(INT((ROWS($1:1)-1)/COUNTA($G$2:$G$18)),COUNTA($E$2:$E$18))+1) &
    INDEX($G$2:$G$18,MOD(ROWS($1:1)-1,COUNTA($G$2:$G$18))+1))

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Using Concatenate and Array into one List

    Thank You Pete_Uk and TudyBTH for taking time to help me with this solution they both work effectively well!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Using Concatenate and Array into one List

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Concatenate / Array Help
    By burgie10 in forum Excel General
    Replies: 5
    Last Post: 09-05-2015, 05:07 AM
  2. =CONCATENATE within an array
    By gassiusmax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2015, 12:22 PM
  3. How To Concatenate an Array?
    By Camel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2013, 05:01 AM
  4. Replies: 2
    Last Post: 04-12-2010, 12:35 PM
  5. Array Formula - Concatenate
    By Lotus123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2006, 10:36 PM
  6. [SOLVED] Concatenate an array
    By Ed in forum Excel General
    Replies: 4
    Last Post: 07-03-2006, 01:00 PM
  7. Creating a concatenate text list by referencing an array
    By nothingbutjeep in forum Excel General
    Replies: 0
    Last Post: 05-30-2006, 04:50 PM

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