+ Reply to Thread
Results 1 to 6 of 6

Need Vba Code to find Same Text comparing two columns

  1. #1
    Registered User
    Join Date
    12-28-2015
    Location
    Karachi
    MS-Off Ver
    2010 and 2013
    Posts
    6

    Question Need Vba Code to find Same Text comparing two columns

    Hi,

    I Need a vba code that will compare "Specific text" in two columns and will return "Ok" in a new column

    for example:

    Column
    A1: Notebook Computer
    B1: Notebook Computer BC3453

    Column
    A2: Desktop Computer
    B2: Desktop Computer 902483

    here it will match the text Notebook Computer in A1 and B1 and Desktop Computer in A2 and B2


    Required result

    in Column C it should return
    C1: Match OK
    C2: Match Ok

  2. #2
    Forum Contributor
    Join Date
    12-06-2012
    Location
    sacramento,calif
    MS-Off Ver
    Excel 2010
    Posts
    217

    Re: Need Vba Code to find Same Text comparing two columns

    Assuming the data stays consistent in the format provided, maybe this could work:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Need Vba Code to find Same Text comparing two columns

    USE THIS CODE
    Please Login or Register  to view this content.
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  4. #4
    Forum Contributor
    Join Date
    12-06-2012
    Location
    sacramento,calif
    MS-Off Ver
    Excel 2010
    Posts
    217

    Re: Need Vba Code to find Same Text comparing two columns

    Quote Originally Posted by Kamboj View Post
    USE THIS CODE
    Please Login or Register  to view this content.
    Hello Kamboj,
    Your code works but limited for use in sheet1 only?

  5. #5
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Need Vba Code to find Same Text comparing two columns

    use activesheet in place of sheet1
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need Vba Code to find Same Text comparing two columns

    Another:

    Please Login or Register  to view this content.

+ 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. Find Missing Entries when comparing two columns
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-31-2013, 12:35 AM
  2. Find duplicates by comparing 3 columns
    By nethravathik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2013, 07:40 AM
  3. [SOLVED] Comparing two columns of words to find out missing
    By Karnik in forum Excel General
    Replies: 4
    Last Post: 10-29-2012, 10:12 PM
  4. [SOLVED] IF AND or SUMIFS comparing Months from 2 date columns and text from 2 other columns
    By jrochet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-22-2012, 11:06 AM
  5. Comparing two columns in two different sheets to find duplicate
    By bmuum3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2012, 01:03 PM
  6. Comparing Columns Between Worksheets to Find a Value
    By jimmy_nora in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2010, 07:42 AM
  7. Comparing 3 or more columns to find matches
    By Spinnel in forum Excel General
    Replies: 7
    Last Post: 01-19-2009, 08:50 AM
  8. Comparing Columns to Find Matches
    By cultavix in forum Excel General
    Replies: 1
    Last Post: 11-07-2008, 11:06 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