Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Creating a Matrix

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Who out there knows anything about creating a "Matrix" (in a hidden sheet) where the user inputs data on a front end sheet and what is entered looks at the matrix and delivers a calculated answer. I am stumped as to where to start.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    See the Excel Help topic for "About lookup and reference functions".

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Mark,

    Many thanks for your very promt reply. Do you know of any working examples that I can get Idea's from. I know it looks like I am cheating but I need to see what can be done, I learn quicker that way, as I am such a beginner in this field.

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    As you "drill down" through the Help topics you'll see that the specific help topic for each function (e.g., INDEX, VLOOKUP) includes an Example section. I recommend that you familiarize yourself with each of the lookup formulas listed in the Help topic for "About lookup and reference functions". If you have any questions about the use of these functions please post 'em here. I'm sure someone will be eager to assist/clarify.

    [ This Message was edited by: Mark W. on 2002-03-21 08:59 ]

  5. #5
    MrExcel MVP Joe Was's Avatar
    Join Date
    Feb 2002
    Location
    Central Florida, USA
    Posts
    7,539
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    This code will display all the models in the inventory list on sheet1, for a size entered by the user on sheet1, in the search cell on sheet1 cell F4. The list of all the models in the inventory on sheet1 that are in the size entered in F4, will be listed on sheet2.

    This is a filtered lookup and not a true matrix operation but it may fit for what you are doing. In the future you needed to provide a sample of the data and the solution for us to be certain. So I guessed. JSW

    Sub myFind()
    'Find by size

    With Worksheets("Stock")
    .AutoFilterMode = False
    .Range("A1").AutoFilter
    .Range("A1").AutoFilter Field:=1, Criteria1:=Range("F4"), VisibleDropDown:=False
    .UsedRange.SpecialCells(xlCellTypeVisible).Copy _
    Destination:=Sheets("Found").Cells(1, 1)
    Application.CutCopyMode = False
    .AutoFilterMode = False
    End With
    Sheets("Found").Select
    Range("A1").Select
    End Sub

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •