+ Reply to Thread
Results 1 to 5 of 5

Match Columns & Rows

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Match Columns & Rows

    Greetings,
    I am using an UserForm to enter information. ListBox1 has a RowSource "EmployeeName". When a name is selected within ListBox1, the name is placed in TextBox1. Textbox2 will contain a Door Number.
    I am wanting to place an "X" on the worksheet "DoorTest" when a name and door number are found.
    Ex: If Anderson, Bob and 104 are are chosen on the UserForm, then an "X" would be placed in Cell E2.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by brentjohn; 06-30-2025 at 12:59 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Match Columns & Rows

    Here's one way.
    Please Login or Register  to view this content.
    You may wish to error handle instances where a door number is not found.
    Let us know if you'd like help with that.

    BSB

  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Match Columns & Rows

    Badly,
    Thank you so much - works perfectly!!
    Regarding an "error handle" if the door number is not found. I would like to create a 2nd ListBox and use a Named Range in the RowSource. However, the Named Range ("DoorNumbers") which contains DoorTest!$B$1:$O$1 - it does not show in ListBox2.

  4. #4
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Match Columns & Rows

    Badly,
    I just came across the following code and it works.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,046

    Re: Match Columns & Rows

    Problem solved then

    Although here's a one liner alternative.
    Please Login or Register  to view this content.
    BSB

+ 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: 3
    Last Post: 01-06-2020, 06:30 AM
  2. [SOLVED] Index match for rows (not columns)
    By Parmx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2018, 07:30 AM
  3. How to match columns & rows?
    By wewillexcel in forum Excel General
    Replies: 11
    Last Post: 08-27-2014, 03:49 PM
  4. [SOLVED] Find exact match in multiple columns in 1 row with all other rows 90,000 rows.
    By KHurt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2013, 01:38 PM
  5. [SOLVED] Deleting rows that don't match between two columns
    By LadyRogue79 in forum Excel General
    Replies: 7
    Last Post: 09-23-2012, 02:16 PM
  6. Increment columns in INDEX and MATCH formula - ROWS and COLUMNS
    By nickmangan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 10:38 AM
  7. Match similar rows from two sheets using three columns to match the "paired" rows
    By sanpedro_nz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2011, 07:15 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