+ Reply to Thread
Results 1 to 5 of 5

Return values that do not match partial search

  1. #1
    Registered User
    Join Date
    01-10-2020
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    3

    Return values that do not match partial search

    Hi All,

    I hope this message finds you all well. I'm currently looking for a method by which to search a column for a specified value and return all results that DO NOT match match that value. Example, column A=Client Name (A1=John Smith, Esq., A2=Jason Smith). I would like to search column A for any cells that do not have ", Esq." (i.e. it returns A2). How would one go about this?

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Return values that do not match partial search

    you could try this array formula. Make sure to use CTRL + SHIFT + ENTER when using this formula. If done correctly { } will be placed around your formula.

    =INDEX($A:$A,SMALL(IFERROR(FIND(", Esq",$A$2:$A$30)>0,ROW($A$2:$A$30)),ROW(1:1)),)

    Drag down and it will list if there are multiples
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    01-10-2020
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    3

    Re: Return values that do not match partial search

    Wow, thanks so much Dosydos! It works, however, how would I get it to return the cell where the instance occurs (instead of telling me what's in the cell, tell me where the cell is)?

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Return values that do not match partial search

    Another Array function so make sure to use CTRL + SHIFT +ENTER

    ="A"&SMALL(IFERROR(FIND(", Esq",$A$2:$A$30)>0,ROW($A$2:$A$30)),ROW(1:1))

    kind of a cheesy way i did it. IF your Client names aren't in A then just change the Red A to what ever column they are in. Also make sure the bolded row ranges stop with your client name data. Make sure there are no blanks at bottom because the logic for a cell not having ", Esq" and being blank is the same, so it will give you extra cells.

  5. #5
    Registered User
    Join Date
    01-10-2020
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    3

    Re: Return values that do not match partial search

    Wow! Dosydos you're amazing. You've really saved me quite a bit of headache with these array functions.

+ 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. Search and Match partial text string to full text and return a value
    By homa5424 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2017, 10:52 AM
  2. Replies: 9
    Last Post: 09-05-2017, 11:35 AM
  3. [SOLVED] Lookup partial values and if match return partial value from another cell
    By Renejorgensen in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2017, 07:53 AM
  4. [SOLVED] Can a Partial Search Array Formula for Multiple return values be looped?
    By RiChCh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-19-2016, 07:44 PM
  5. VBA code to partial match and return all values
    By MiltonSilva in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 10:09 AM
  6. Formula needed to return values for partial or full match
    By IntRes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2012, 08:32 AM
  7. Lookup multiple partial match conditions and return values
    By darklans in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-18-2012, 03:26 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