Closed Thread
Results 1 to 3 of 3

Macro for 'n x n' Matrix formation based on user inputs

  1. #1
    Registered User
    Join Date
    08-19-2008
    Location
    England
    Posts
    29

    Macro for 'n x n' Matrix formation based on user inputs

    Dear All,

    Can somebody help me out in generating a macro for forming a "n x n" matrix based on user inputs. - Excel sheet enclosed. Send me ur replies to [email protected]

    Inputs:

    i j Value

    1 2 1
    1 3 1
    1 4 -1
    1 8 -1
    2 1 1
    2 4 1
    2 5 -1
    2 6 -1
    3 5 1
    3 6 1
    3 7 -1
    4 1 130.1459226
    4 4 -160.8272092
    4 2 -144.5355421
    5 2 144.5355421
    5 3 -183.6928125
    6 2 144.5355421
    6 4 160.8272092
    6 5 137.3575476
    6 7 152.8315505
    7 2 144.5355421
    7 4 160.8272092
    7 6 137.3575476
    7 7 152.8315505
    8 3 183.6928125
    8 8 172.7183057

    In remaining locations, values are zero.

    i j Value
    1 1 0
    1 5 0 etc.,
    Here, we have 8x8 matrix. But, this should be generalized for forming "n x n" matrix


    Please get me an Excel Macro for this.
    Thanks in advance,
    Prakash

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    No attachment?

    HI
    Where is the excel sheet?
    Ravi

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro for 'n x n' Matrix formation based on user inputs

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. filter randomly based on inputs
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2008, 09:22 AM
  2. User navigate to sheet in workbook mid macro
    By jw191 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2008, 11:44 AM
  3. Macro to save file based on cell value
    By stlstephens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2006, 12:36 AM
  4. Macro for calculation and user entry in same cell?
    By umax in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-19-2006, 10:07 PM
  5. Macro to hide columns based on contents of two cells
    By Korae13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2006, 12:40 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