+ Reply to Thread
Results 1 to 5 of 5

Lookup with partial text match

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Lookup with partial text match

    So I'm working on a tracker which needs to display the latest date an employee has signed in to work. I'm able to get the date using:

    Please Login or Register  to view this content.
    The issue I'm having is that the "Text String" needs to be an EXACT match, whereas I need to have a partial match. A1:A1070 references a linked SharePoint list in a worksheet, and the column contains the employees name, but also their office symbols and such, which is subject to change. And C1:C1070 obviously references the corresponding date.

    Basically I want to be able to search for "Smith, John" in a field which may look like "Smith, John AFGSC 11 BS/DOA".

    Thanks!

    Edit: It's worth noting that the worksheet where I want to display this formula has a column (A) of the employee's names in the "Smith, John" format.

    I've tried =LOOKUP(2,1/('Go NoGo Data'!A1:A1070="*"&$A$2&"*"),'Go NoGo Data'!C1:C1070)

    From what I understand wildcards don't work in the formula I'm using, so I need some other method.
    Last edited by teekey; 07-17-2014 at 03:43 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup with partial text match

    Perhaps:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup with partial text match

    Here's another possibility if the name is always at the start of the string.

    =LOOKUP(2,1/(LEFT('Go NoGo Data'!A1:A1070,LEN($A$2))=$A$2),'Go NoGo Data'!C1:C1070)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: Lookup with partial text match

    Thank you both!

    Tony, yours worked perfect. Thanks!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup with partial text match

    You're welcome. Thanks for the feedback!

+ 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. [SOLVED] Match partial text when partial text is not exact
    By NamiSama in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-21-2014, 07:18 PM
  2. Reverse Partial match lookup
    By Stueymac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2013, 05:12 AM
  3. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  4. Partial Match Lookup
    By mikesc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2011, 07:52 AM
  5. [SOLVED] partial lookup/match
    By myra_deV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-09-2006, 10:25 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