+ 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
    2016
    Posts
    13

    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
    2013 / 2016 / 365
    Posts
    6,442

    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)

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