+ Reply to Thread
Results 1 to 5 of 5

fastest way to find the row where a specific text is found in a specific column

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    MidSouth USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    fastest way to find the row where a specific text is found in a specific column

    I need to step through a list of values and look up those values in a specific column in a different workbook. Basically a vlookup, but I need to result to be the row where the data was found, not return a column like vlookup does.

    I need to do it in VBA as part of some other code I have.

    Can soemone help me with how I can do that?

    And, the search is on about 20,000 rows, there are hundreds of value searches, so fastest method is important.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: fastest way to find the row where a specific text is found in a specific column

    Hello getgray,

    Posting a sample workbook will get you an answer to your question.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: fastest way to find the row where a specific text is found in a specific column

    This will return the row number of the first occurance of "search Term" in column A.

    =MATCH("search Term", [Workbook2.xlsx]Sheet1!$A:$A, 0)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    MidSouth USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: fastest way to find the row where a specific text is found in a specific column

    [SOLVED]Mike: Thanks, that gave me what I needed to go on.

    Much appreciated guys, Scott

  5. #5
    Registered User
    Join Date
    07-13-2011
    Location
    MidSouth USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: fastest way to find the row where a specific text is found in a specific column

    Quote Originally Posted by Leith Ross View Post
    solved
    re [SOLVED], Please elaborate, I can't edit the original subject. You just want it in the reply text?

+ 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