+ Reply to Thread
Results 1 to 5 of 5

How to compare and search columns for text?

  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    lancashire
    MS-Off Ver
    Excel 2002
    Posts
    18

    How to compare and search columns for text?

    Hi All,

    I recently posted a similar thread which was very well supported but I couldn’t get a solution because my requirements were not clear enough. I would like to try again with a slightly easier and clearer requirement.

    I would like a spreadsheet that compares and searches columns for text and returns true if a duplicate is found.

    It is similar to a lottery checker except the lines being checked could be a string instead of a single character.

    I have attached a spreadsheet which helps explain what I’m trying to achieve.

    Basically, a user can sequentially enter a single character to cells F1:F5. These values are then compared to columns A:C. If one of the columns contain the values in column F then return true to G1.

    I hope this makes sense and thanks for your interest.

    Cheers,
    tomlini
    Attached Files Attached Files
    Last edited by tomlini; 04-15-2009 at 05:21 AM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,873

    Re: How to compare and search columns for text?

    G1 =IF(MAX(MMULT({1,1,1,1,1},IF(ISERROR(FIND(F1:F5,A1:C5)),0,1)))=5,"exists","non-exists")

    Remember to press Ctrl+Shift+Enter after inputing formula.

  3. #3
    Registered User
    Join Date
    04-07-2009
    Location
    lancashire
    MS-Off Ver
    Excel 2002
    Posts
    18

    Re: How to compare and search columns for text?

    Quote Originally Posted by windknife View Post
    G1 =IF(MAX(MMULT({1,1,1,1,1},IF(ISERROR(FIND(F1:F5,A1:C5)),0,1)))=5,"exists","non-exists")

    Remember to press Ctrl+Shift+Enter after inputing formula.
    Windknife - that is exactly what I'm looking for:-)

    Thanks very much, it has helped me a great deal and is much appreciated.

  4. #4
    Registered User
    Join Date
    12-16-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to compare and search columns for text?

    What can be done to make this forula case insensitive?

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: How to compare and search columns for text?

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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