+ Reply to Thread
Results 1 to 3 of 3

Comparing a certain number of text in a different worksheet

  1. #1
    Registered User
    Join Date
    06-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Comparing a certain number of text in a different worksheet

    Hi Guys,

    I'm practically new to excel formulas, I just want to make my life easier and found out that excel is the one i'm looking for, so here goes.

    I have a certain number of companies in column A, sheet 1 that i would like to find in column A, sheet 2, here's the hard part. i would like to compare let's say the first 5 letters of every company rather than checking the exact text in the cell. is this doable? thanks

    i have attached a sample

    sample.xlsx

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Comparing a certain number of text in a different worksheet

    If your aim is to match up entries in the two lists then you might try the attached.

    Column 1 is a copy of column 2 with common words (INC, LTD etc.) removed with the normal replace functionality. Run the macro TEST to populate column 4.

    You will get a few false matches and you might need to remove extra common terms for column 1 to improve this.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Comparing a certain number of text in a different worksheet

    the propblem with only searching 5 charicters is you may get an error as i have highlighted in red.

    as for the you can do what i have done there

    why did you only want to check 5 charicters?

    sample (1).xlsx

    i just noticed the ABBOT one is incorect to as it will return the first value that matches the 5 chars

    you would be better to search the whole

    as in

    sample (1) (1).xlsx
    Last edited by twiggywales; 06-07-2012 at 05:06 AM.
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

+ 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