+ Reply to Thread
Results 1 to 5 of 5

Creating a Matrix

  1. #1
    Registered User
    Join Date
    02-01-2014
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    61

    Creating a Matrix

    I have a single column of cells and need to create a complete matrix. It is 100 cells to begin with which will be a huge matrix but here is a small sample of what I am trying to do.

    Original File:
    Column A Column B
    1
    2
    3


    Create:
    Column A Column B
    1 2
    1 3
    2 1
    2 3
    3 1
    3 2

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Creating a Matrix

    Please confirm whether VBA solution is Ok for you?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-01-2014
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Creating a Matrix

    I am not familiar with VBA solution

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Creating a Matrix

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.
    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

    Refer the attached file
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Creating a Matrix

    see attached file
    Attached Files Attached Files
    Last edited by samba_ravi; 12-05-2014 at 01:12 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Creating a transition matrix
    By hsn6 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2013, 08:33 AM
  2. I need help creating a 3x3 Matrix in vba?
    By mattm99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2011, 03:36 PM
  3. Creating a matrix from a database
    By Sandy24 in forum Excel General
    Replies: 2
    Last Post: 06-20-2011, 05:37 PM
  4. Creating distance matrix
    By Lori7 in forum Excel General
    Replies: 3
    Last Post: 09-03-2010, 11:06 AM
  5. Creating a matrix from columns
    By Ernie Sersen in forum Excel General
    Replies: 2
    Last Post: 02-18-2005, 10:06 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