+ Reply to Thread
Results 1 to 2 of 2

Check for a number of matching characters return value (if match is found) and location

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Check for a number of matching characters return value (if match is found) and location

    Here is the formula I have so far:

    =IF(ISERROR(MATCH("*"&LEFT(C3,16)&"*",B:B,0)), "No", VLOOKUP(C3,B:B,1,FALSE))
    My goal:

    1) See the first 15 characters of cell C3 match any cell in column B.
    2) If no match is found return "No" to the cell where this formula is placed (D3).
    3) If a match is found return "Yes" to the cell where this formula is placed (D3), AND return the matching cell number from column B to the cell adjacent to the cell where this formula is placed (E3).
    . . .or to the same cell where this formula is placed.
    Last edited by Reu; 02-21-2013 at 02:48 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Check for a number of matching characters return value (if match is found) and locatio

    Try this formula:
    =IF(ISERROR(MATCH("*"&LEFT(C6,16)&"*",B:B,0)), "No", "Yes " &MATCH("*"&LEFT(C6,16)&"*",B:B,0))
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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