+ Reply to Thread
Results 1 to 5 of 5

Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    4

    Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

    Hi

    For example if i have a range of cells in sheet 1:

    A1 - 1056 / 45556622
    A2 - 4561 / 45678912
    A3 - 9875 / 45123987

    And in sheet 2:

    B2 - 45678912

    What formula can I type in sheet 2 (cell B3) to look at (cell B2) and find a match between sheet 1 cell(A1:A3)?

    Your assistance would be greatly appreciated.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

    =index(sheet1!a1:a3,match(b2,sheet1!b1:b3,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

    Try this:

    =IFERROR(MATCH("*"&B2,Sheet1!A1:A3,0),"Not found")

    The number returned is the row where the match is found, or an error message if no match.

    Hope this helps.

    Pete

    P.S. Not sure how you can have zero posts !!

  4. #4
    Registered User
    Join Date
    10-04-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

    Thank you that worked!

  5. #5
    Registered User
    Join Date
    10-04-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Match a lookup cell to a range of cell that only contain a portion of the lookup cell.

    Thank you that worked, you managed to teach me something new today with the wildcard!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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