+ Reply to Thread
Results 1 to 7 of 7

Search row number match 2 textboxes criteria

  1. #1
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Search row number match 2 textboxes criteria

    Hi guys,

    I would like to have match code that can find row number match 2 criteria from my 2 textboxes. Is there a way other than to autofilter the sheet or to loop find? My records are quite huge.

    For example, I have 2 textboxes to put in Name and surname. I want the code to find the row number that match exactly name and surname in the table below:

    No. Name Surname Tel
    1 aaa zzz 1234567
    2 bbb yyy 2345678
    3 ccc xxx 3456789
    4 bbb www 4567123

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Search row number match 2 textboxes criteria

    I would have a new column that combines the first and last names, do the same in your reference data and then vlookup or match on this new column.

    Fullname = Name & " " & Surname

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: Search row number match 2 textboxes criteria

    Assuming Name in Col.B, Surname in Col.C and get No in col.A
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Search row number match 2 textboxes criteria

    Hi Jindon,
    Thank you so much for your help. This code work great!

    I want to ask a bit more about your code. If I want to set b1:b10000&c1:c10000
    as a dynamic range e.g. to the last row based on column A, how to write the code for that?

  5. #5
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Search row number match 2 textboxes criteria

    Hi kersplash
    Thanks for the idea. I will keep the suggestion for future.
    Based on this case, the records I have are quite dynamic so I dont want to concat them everytime my records are changed.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: Search row number match 2 textboxes criteria

    Quote Originally Posted by impresxy View Post
    I want to ask a bit more about your code. If I want to set b1:b10000&c1:c10000
    as a dynamic range e.g. to the last row based on column A, how to write the code for that?
    OOps missed this post
    It would be like
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Search row number match 2 textboxes criteria

    Jindon,

    Thank you so much

+ 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: 1
    Last Post: 10-06-2017, 05:02 PM
  2. Replies: 4
    Last Post: 11-01-2016, 03:28 PM
  3. [SOLVED] Search, find, match-populate textboxes
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-04-2015, 02:36 AM
  4. Replies: 1
    Last Post: 09-15-2014, 03:08 PM
  5. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  6. Replies: 2
    Last Post: 01-28-2012, 05:26 PM
  7. [SOLVED] Match with 2 Lookup_Values used as search criteria.
    By Sigmaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-22-2005, 11:07 PM

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