+ Reply to Thread
Results 1 to 2 of 2

Need help with a macro to find two different columns having similar values

  1. #1
    Registered User
    Join Date
    04-06-2017
    Location
    Dunedin
    MS-Off Ver
    Office 365
    Posts
    16

    Need help with a macro to find two different columns having similar values

    Hi,
    First of all, I sincerely apologise if it is not a macro-related problem.
    So I got sets of values in two text values in column A and column B.
    What I am trying to do is to have column C say "yes" or "No" based on a test that sees if cell A1's value is in a cell in column B but at the same time, that cell's value was present in A2. I apologise, I know it is not the best way to explain it, but I am unable to find the words. Hence, I drew the table.
    Basically, I want to know if 'blue lion' is asking for 'purple king' only if 'purple king' is also asking for 'blue lion'. I have around 20,000 items like this, with long text strings in column B, whereas the text in column A is much shorter, like 3 words to 10 words long maximum.

    Thanks in advance, and I apologise for my poor explanation of the problem.


    Blue lion helicopter; purple king Yes
    purple king blue lion; airplane Yes
    red devil helicopter; purple king No
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,908

    Re: Need help with a macro to find two different columns having similar values

    I gave it a half-hearted shot at doing it with formulas, but then gave up and tried VB.

    Here is what I came up with.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Similar Values in two columns
    By yatindatta in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2019, 02:45 AM
  2. [SOLVED] Find similar values in two columns
    By mellopete in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2017, 05:46 PM
  3. Macro to find group of 5 similar values repeating same in one column
    By H_123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2016, 02:51 PM
  4. Match values from two columns having similar values in 1st column if not error
    By csunilkumar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2014, 08:32 AM
  5. Replies: 1
    Last Post: 04-30-2014, 05:49 PM
  6. Replies: 5
    Last Post: 10-26-2013, 01:03 PM
  7. code required to find similar entries in two columns
    By Duguid1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2008, 09:52 AM

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