+ Reply to Thread
Results 1 to 2 of 2

Formula to produce result based if part of text in one cell matches another

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Formula to produce result based if part of text in one cell matches another

    Hi

    I am looking for a formula which will give me an output of USER if part of the text in one cell matches part of the text in another.

    A B C
    smithm MIKE SMITH USER

    As per the example above if part of the value in column A (say the first three or four letters) match any part of the value in column B I want an output of USER in column C

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula to produce result based if part of text in one cell matches another

    Maybe:

    =IF(SUMPRODUCT(IFERROR(SEARCH(MID(A1,1,ROW(INDIRECT("3:"&LEN(A1)))),B1),""))>0,"USER" )

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

+ 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] If Formula To Produce Word Result
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-16-2015, 10:30 PM
  2. Replies: 37
    Last Post: 06-10-2014, 04:08 AM
  3. [SOLVED] Hide/Unhide sheets based on text result of IF Formula in cell in another sheet
    By yukinosei in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2014, 01:17 PM
  4. Look at text file, and produce a new result set based desired format in the excel
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2013, 01:10 PM
  5. Replies: 4
    Last Post: 03-12-2013, 06:37 AM
  6. [SOLVED] Help with formula to search 2 cells and produce a result
    By champion777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 07:11 PM
  7. Replies: 2
    Last Post: 07-14-2011, 09:04 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