+ Reply to Thread
Results 1 to 15 of 15

How to build a dynamic matrix table with user defined no.of rows and no.of columns

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Question How to build a dynamic matrix table with user defined no.of rows and no.of columns

    If i want to increase or decrease the no. of rows or no. of columns of a table , how can i do that ? ...... IT should be dynamic . Im creating a tool for R&D .... if they want to reduce or increase the parameters of the table ie no. of rows and column , how can i do that ?

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Dynamic Table with user defined no of rows and no of columns

    Are you trying to select rows and columns of a table which has rows and columns dynamic in nature?
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Hello,

    by "Table" you mean a ListObject? Usually a table re-sizes automatically when you fill an adjacent cell.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    santosh,

    Its against the forum rules to create duplicate threads. I have merged them for you now.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    I will be building 12*12 matrix table . But if the user doesnot want to use 12*12 instead if he wants to use only 6*6 matrix table . In this case i need something where the user mentions no. of rows*np.of columns then the table is created according to the user mentioned data . how can i do that ?

  6. #6
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Santhosh,

    You can use OFFSET function to create a dynamic named range, which I believe can cater your issues.

    <first_cell_ref> : is the first cell from where the table actually starts. Basically the top-left-most cell. Gives the idea from where to start
    <fully_filled_range_rows> : is the column having continuous filled rows. It basically gets the row count.
    <fully_filled_range_cols> : is the row having continuous filled columns. It basically gets the column count.

    Please Login or Register  to view this content.
    This gives you a dynamic table that keeps growing both ways whenever a new column or rows are added.

  7. #7
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    And to let the user specify the dimensions he wants use sth like in this file: CreateTable.xlsm

    contains:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    hI TEHNEXUS ;

    i HAVE ATTACHED THE the table with conditions . Can you please check this excel table sheet and correct it for me . I have specified the conditions in the excel sheet
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns


  10. #10
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Many Thanks. You gave exactly what I wanted .
    Quote Originally Posted by tehneXus View Post
    Hi,

    please check: Attachment 248755

  11. #11
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Hi Tehnexus ,

    I need to change some things in the document .

    1,Colour = I have changed the colours for the input and output columns u can see in the attached file . I want the colours to be like in the current attached file .
    2. Initially the font colour for the numbers are red for the input, violet for the output . Now i want to change the fontcolour of the numbers to all black .

    3. It is the important change which i want to do . If the customer enters the name of the criteria in the criteria row it should also automotically come into the criteria column .
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Check: 636FB000.xlsm

    1. Colors changed
    2. When user changes a row "heading" in column 1 of the table, the same text will be pasted to the appropriate column heading and vice versa
    3. Apart from the resize button, the table will automatically resize and apply color if the user enters test into 1 row below the last in column 1 OR 1 column to the right next to the last column

  13. #13
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Hi Tehnexus,

    THis document is getting bigger and bigger . Confusing a lot . I have attached the document . THe thing is everything should be dynamic . I can do that normally but i Cant do it dynamically . Please check the document u will understand the logic.

    Regards
    Santhosh
    Attached Files Attached Files
    Last edited by santhosh51; 07-29-2013 at 04:39 AM.

  14. #14
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Hi Tehnexus,

    THis document is getting bigger and bigger . Confusing a lot . I have attached the document . THe thing is everything should be dynamic . I can do that normally but i Cant do it dynamically . Please check the document u will understand the logic.

    Regards
    Santhosh
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-05-2013
    Location
    Lübeck
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to build a dynamic matrix table with user defined no.of rows and no.of columns

    Quote Originally Posted by tehneXus View Post
    Check: Attachment 249538

    1. Colors changed
    2. When user changes a row "heading" in column 1 of the table, the same text will be pasted to the appropriate column heading and vice versa
    3. Apart from the resize button, the table will automatically resize and apply color if the user enters test into 1 row below the last in column 1 OR 1 column to the right next to the last column
    Hi Tehnexus ,

    I have made some corrections personally to the table . I want some more ocrretions to do But it is difficult for me to break the code . So i propose to you to help with some changes which i needed .

    1. I need the Name table that is header column and row to be empty .
    2. If i click resize button i need the previously entered value to automatically return to null values .
    2a) If its possible u can do that for the other two tables also
    3. I should be allowed to enter values or names only in the Green tables not in the Grey Tables
    4a). If possible please connect the resize function to other tables also .

    Point number 2a and 4a are not compuslory but would be better if i get the function too . If possible please i need the doucment as son as possible


    Thanks Regards
    santhosh
    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)

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