+ Reply to Thread
Results 1 to 12 of 12

Multiple Level Combining Into One Column

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    Whangarei, New Zealand
    MS-Off Ver
    Microsoft office 365
    Posts
    6

    Multiple Level Combining Into One Column

    I need a formula that does the following:

    Result Colours Fruit Animals Numbers
    blue,apple,dog,6 blue apple dog 6
    blue,apple,dog,7 red peach cat 7
    blue,apple,dog,8 yellow grape cow 8
    blue,apple,dog,9 green 9
    blue,apple,cat,6
    blue,apple,cat,7


    The Result Column is in column A. This will be the column that has formula that I drag down. I believe that should be 144 rows in total from the formula (4 times 3 times 3 times 4). The column names could be anything. And the number of columns is not fixed. There could be more or less columns. Also the number of rows in each column is not fixed.

    I can't seem to figure out this formula

    excel2.png
    Attached Files Attached Files
    Last edited by jeremypyle; 01-21-2022 at 02:29 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Multiple Level Combining Into One Column

    deleted by user----

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    Whangarei, New Zealand
    MS-Off Ver
    Microsoft office 365
    Posts
    6

    Re: Multiple Level Combining Into One Column

    this doesn't work. If I drag down this formula, it just gives the following in every cell

    apple.dog.6.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Multiple Level Combining Into One Column

    Are you really on Excel 2003? Please update your profile as answers depend on Excel version you have.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    10-20-2010
    Location
    Whangarei, New Zealand
    MS-Off Ver
    Microsoft office 365
    Posts
    6

    Re: Multiple Level Combining Into One Column

    sorry it is Microsoft 365 Version 2112 64bit. I didn't realize Excel 2003 was shown in my profile. I've just updated now. Thanks for letting me know
    Last edited by jeremypyle; 01-21-2022 at 03:05 PM.

  6. #6
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Multiple Level Combining Into One Column

    Hi jeremypyle!

    I leave two options, depends on your Microsoft 365 version.

    Op1: Generates a dynamic matrix with all the combinations separated into multiple columns. Then you can join it with TEXTJOIN drag it the formulation.
    Op2: All in one dynamic matrix, using BYROW (only work with Microsoft 365 insider version - today -)

    Check file. Blessings!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-20-2010
    Location
    Whangarei, New Zealand
    MS-Off Ver
    Microsoft office 365
    Posts
    6

    Re: Multiple Level Combining Into One Column

    Hi John. Thanks so much for this! I can't seem to add cells further than row 12 or it will malfunction. I'm trying to paste a few hundred towns into column B. Do you know what I am doing wrong? If you try adding rows greater than 12 see what happens with you

  8. #8
    Registered User
    Join Date
    10-20-2010
    Location
    Whangarei, New Zealand
    MS-Off Ver
    Microsoft office 365
    Posts
    6

    Re: Multiple Level Combining Into One Column

    I'm wondering whether perhaps a macro would have worked better for this problem. Do you know if there is a macro somewhere on excelforum that I could use for this? I'm not sure what to search
    Last edited by jeremypyle; 01-21-2022 at 07:10 PM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Multiple Level Combining Into One Column

    Please Login or Register  to view this content.

    Try this: RESULTS are in Column A and INPUT in column B onwards
    Attached Files Attached Files
    Last edited by JohnTopley; 01-23-2022 at 06:21 AM.

  10. #10
    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,036

    Re: Multiple Level Combining Into One Column

    Try this dynamic array:

    =LET(c,B2:B10,rc,COUNTA(c),f,C2:C10,rf,COUNTA(f),a,D2:D10,ra,COUNTA(a),n,E2:E10,rn,COUNTA(n),x,rc*rf*ra*rn,INDEX(c,INT(SEQUENCE(x,,,1/(rf*ra*rn))))&", "&INDEX(f,1+MOD(INT(SEQUENCE(x,,,1/(ra*rn)))-1,rf))&", "&INDEX(a,1+MOD(INT(SEQUENCE(x,,,1/rn))-1,ra))&", "&INDEX(n,1+MOD(SEQUENCE(x)-1,rn)))
    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

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple Level Combining Into One Column

    In A2 copied down. If additional items are added to any columns B, C, D, E automatically list will be updated. Formula should be copied down till blank cell is seen.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 01-23-2022 at 01:15 PM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  12. #12
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Multiple Level Combining Into One Column

    Hi to all!

    Shot 2. Two options:

    1. Generate the values in multiple columns. Later, join with TEXTJOIN (or using & depends on the number of columns).
    If you extend the data, extend formulation for seeing results.

    2. One single formula using MICROSOFT 365 INSIDER, using SCAN and BYROW.
    You can extend the data. The formulation works automatically.

    Blessings!
    Attached Files Attached Files

+ 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] Extracting the 1 level lower part numbers based on Level numbers in multi level BoM
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2022, 05:35 AM
  2. combining multiple columns into column on new tab
    By bruno08102013 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2014, 05:27 PM
  3. Combining first column of Multiple Workbooks into 1 sheet
    By irksy in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 07-26-2013, 10:54 AM
  4. combining columns from multiple sheets into one column
    By lex1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2012, 02:45 AM
  5. [SOLVED] Multiple Level Column Chart
    By JC_VILLA789 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-13-2012, 02:14 AM
  6. Combining multiple columns into one column
    By Casper_DK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2011, 05:39 AM
  7. combining multiple columns into one column - enhancements
    By markx in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-16-2006, 11:15 AM

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