+ Reply to Thread
Results 1 to 8 of 8

Similar Values in two columns

  1. #1
    Registered User
    Join Date
    06-26-2017
    Location
    Ny, USA
    MS-Off Ver
    2011
    Posts
    16

    Similar Values in two columns

    Hi Forum Members,

    Seeking your help for an issue I am facing.

    I have two columns having names of companies. I have to find the common names in both the columns and get in column C

    Problem is name format is not same in both columns. For example if the company name is written as ABC International in column A it is written as ABC Intl or ABC in Column B.

    Thank you

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Similar Values in two columns

    Please try uploading a workbook sample. It will be easier to identify workable patterns if any exist.

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),

    be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”
    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Registered User
    Join Date
    06-26-2017
    Location
    Ny, USA
    MS-Off Ver
    2011
    Posts
    16

    Re: Similar Values in two columns

    Attaching Sample data
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Similar Values in two columns

    If you wish to return the column A data that "matches" the column B data array enter this in cell C1 as in the attached and fill down.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you wish to do it the other way around as in the attached array enter this in G1 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    F
    G
    1
    ABC International
    Walmart Inc.
    Walmart
    ABC International
    Walmart Inc.
    ABC Intl
    2
    KFC
    Swiss Intl Airlines
    Swiss Air
    KFC
    Swiss Intl Airlines
    KFC International
    3
    Walmart
    Pizza Hut Inc
    Pizza Hut
    Walmart
    Pizza Hut Inc
    Walmart Inc.
    4
    Mc Donalds
    Mc D
    Mc Donalds
    Mc Donalds
    Mc D
    Mc D
    5
    Swiss Air
    KFC International
    KFC
    Swiss Air
    KFC International
    Swiss Intl Airlines
    6
    Pizza Hut
    Adobe International
    Adobe Intl
    Pizza Hut
    Adobe International
    Pizza Hut Inc
    7
    Adobe Intl
    ABC Intl
    ABC International
    Adobe Intl
    ABC Intl
    Adobe International
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-26-2017
    Location
    Ny, USA
    MS-Off Ver
    2011
    Posts
    16

    Re: Similar Values in two columns

    Thank You Falemretired.

    But I tried the same with actual data. I have 248 in column A and 400 in column B. So I modified your formula to and dragged down for all 248 entries.

    =INDEX($A$1:$A$248,INDEX(MATCH(LEFT($B$1:$B$400&" ",4),LEFT($A$1:$A$248&" ",4),0),ROWS(C$1:C1)))

    None of it worked. All am I getting is #Value

    Thanks

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Similar Values in two columns

    Did you use Ctrl+Shift+Enter when entering the first formula as per Post #4?

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Similar Values in two columns

    Try this, using array formulas



    Azumi
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-26-2017
    Location
    Ny, USA
    MS-Off Ver
    2011
    Posts
    16
    Thank you. Worked

+ 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. [SOLVED] How to return lowest value for similar sets of values across columns?
    By eleine in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2018, 09:21 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. 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
  4. Replies: 5
    Last Post: 10-26-2013, 01:03 PM
  5. Replies: 0
    Last Post: 07-24-2013, 11:13 AM
  6. Search columns with similar values
    By vijay2482 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2010, 08:18 AM
  7. Compare columns for similar values
    By uncleslinky in forum Excel General
    Replies: 1
    Last Post: 04-07-2009, 02:08 AM

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