+ Reply to Thread
Results 1 to 2 of 2

Concatenate Every Combination from Multiple Arrays of Unequal Different Size

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Concatenate Every Combination from Multiple Arrays of Unequal Different Size

    Hi, I've been mulling this formula problem for some time and I haven't been able solve it. I'm confident forum users can help me find the solution.

    Goal: in a formula, concatenate every combination from multiple arrays of unequal size to be stored as a name range

    There are two named range arrays (Key1 and Key2), values outlined below:

    Key1 Key2
    B 12
    D 1Z
    Q
    P
    M
    U
    Y

    The end solution that I would like to be stored as a name range is:

    Key_All
    B12
    B1Z
    D12
    D1Z
    Q12
    Q1Z
    P12
    P1Z
    M12
    M1Z
    U12
    U1Z
    Y12
    Y1Z

    Here is the formula attempt I tried:

    Attempt #1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but, this just yields the following: {"B12","D1Z","N/A","N/A","N/A","N/A","N/A"}


    Can this be accomplished WITHOUT using VBA? And WITHOUT having to create the resulting range of values in a worksheet? ---> basically, it would be ideal to have a formula create and store the result as a named range.

    Thank you in advance!

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Concatenate Every Combination from Multiple Arrays of Unequal Different Size

    Create your Key_All name with this formula:
    =INDEX(KeyA,INT((ROW(OFFSET($A$1,0,0,COUNTA(KeyA)*COUNTA(KeyB)))-1)/COUNTA(KeyB))+1)&INDEX(KeyB,MOD(ROW(OFFSET($A$1,0,0,COUNTA(KeyA)*COUNTA(KeyB)))-1,COUNTA(KeyB))+1)
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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: 1
    Last Post: 04-20-2013, 03:31 AM
  2. [SOLVED] How to select and delete a range of cells between two different ranges of unequal size?
    By herbie226 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2012, 04:40 PM
  3. Excel 2007 : If cells are unequal, then concatenate
    By abanford in forum Excel General
    Replies: 3
    Last Post: 04-27-2010, 10:36 AM
  4. Sorting with unequal cell size
    By tahirawan11 in forum Excel General
    Replies: 5
    Last Post: 07-24-2007, 11:26 PM
  5. Matching Lists Where List Size is Unequal
    By zgall1 in forum Excel General
    Replies: 1
    Last Post: 02-16-2006, 07:25 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