+ Reply to Thread
Results 1 to 4 of 4

Compairing stings of text, but not complete string equal

  1. #1
    Registered User
    Join Date
    06-30-2020
    Location
    Stockholm
    MS-Off Ver
    2016
    Posts
    1

    Compairing stings of text, but not complete string equal

    Hi,

    I have two looooong lists with some client info that need to be compaired.
    The two lists are now combined based on a client number, so I want to compare that the cilent name is the same in two cells next to each other. Problem is that one list says "Company A" the other "Company A, invoice adress". I want to know if the first part of the string is the same.
    I guess I need to use some kind of wild card.

    Example of list:
    Company A______Company A, Invoice adress_____True
    Company B______Company X, Invoice adress_____False
    Company C______Company C, Invoice adress_____True

    The output does not have to be true/false, it could be 1/0 or anything just easy to spot the difference or sort on later
    Last edited by nin3n; 07-01-2020 at 09:39 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Compairing stings of text, but not complete string equal

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: Compairing stings of text, but not complete string equal

    this looks like it would work for you provided as you noted they are side by side... =ISNUMBER(SEARCH(A1,B1))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

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

    Re: Compairing stings of text, but not complete string equal

    May be
    =ISNUMBER(SEARCH("*"&A1&"*",B1))
    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. Update formula for text stings
    By Joeman364 in forum Excel General
    Replies: 3
    Last Post: 04-26-2020, 12:03 PM
  2. [SOLVED] VBA code to move row if P6:P29 equal text "Complete"
    By Mr.Castle in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-04-2020, 07:39 PM
  3. [SOLVED] IF text string is equal left characters and DDMM of DOB is outside a range.
    By DaveBre in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-07-2014, 06:53 PM
  4. [SOLVED] Make a cell forumla equal a text string
    By HeebieGeebie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 07:57 AM
  5. A Google like search of a arbitrary text string in a complete woorkbook
    By Henrikks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2011, 12:26 PM
  6. Replies: 1
    Last Post: 04-18-2005, 05:06 PM
  7. Replies: 1
    Last Post: 04-17-2005, 08:10 PM

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