+ Reply to Thread
Results 1 to 5 of 5

Data Matrix in a possible array?

  1. #1
    Registered User
    Join Date
    07-12-2018
    Location
    Houston, Texas
    MS-Off Ver
    2016
    Posts
    44

    Data Matrix in a possible array?

    Hello All.

    I'm trying to automate a matrix process. I have two columns in two different tables and I'd like to combine from Table 1 column 1 with Table 2 column 1 (in this case) and outputs it into another sheet essentially creating a master matrix dataset. For instance:

    Table 1 row 1:
    crpr
    rgcj

    Table 2 sample rows:
    3337
    7090
    3735

    output sheet 2:
    crpr3337
    crpr7090
    crpr3735
    rgcj3337
    rgcj7090
    rgcj3735

    Any help or leads would be appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Data Matrix in a possible array?

    This is best done using PowerQuery.

    Load both Table1 & Table2 into PQ. Go into editor, and select Table1. Add custom column in PQ. "=Table2". Then expand that column.
    Select both columns and right click -> Merge columns. Load as connection only.
    Back in worksheet, add Sheet2 and activate it. Right click on Table1 (Query) as Table, Existing Worksheet: =A1

    See attached sample.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Data Matrix in a possible array?

    Does this work for you ?
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    07-12-2018
    Location
    Houston, Texas
    MS-Off Ver
    2016
    Posts
    44

    Re: Data Matrix in a possible array?

    Hey guys!

    bakerman2's solution was what I was looking for. I initially tried PowerQuery before but didn't like the fact that it loaded so slow. With a small sample set of 100 rows it wasn't an issue but the live dataset will have thousands more so I would have to opt with the macro code. Thanks again!

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: Data Matrix in a possible array?

    Glad to help and thanks for rep+.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 06-19-2013, 12:59 PM
  2. 4 x 4 matrix array sum problem
    By John Vieren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-30-2012, 03:31 AM
  3. [SOLVED] 2D Matrix/array look-up
    By tazdingomon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2012, 08:39 PM
  4. Matrix Array
    By carpensa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2011, 04:05 AM
  5. Populate a Single Dimensional Array with two Dim Array (matrix)
    By Benjamin1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2011, 12:49 PM
  6. Array Matrix Min Problem
    By John Vieren in forum Excel General
    Replies: 8
    Last Post: 05-05-2010, 03:35 AM
  7. Replies: 5
    Last Post: 03-10-2009, 11:02 PM
  8. Matrix/array question
    By cursednomore in forum Excel General
    Replies: 0
    Last Post: 11-09-2005, 04:15 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