+ Reply to Thread
Results 1 to 5 of 5

Excel Macro or Functions to Read Mismatch string between two cells

  1. #1
    Registered User
    Join Date
    09-29-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel Macro or Functions to Read Mismatch string between two cells

    I need help to read mismatch string between two cells it may custom UDF (User Defined Function) or Macro to find.

    For Ex. Input is A1 = C1,C2,C3,C5 and B1=C1,C4,C2
    Expected O/P is C1 = C3,C5,C4


    Regards,
    Venkateswaran K

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Macro or Functions to Read Mismatch string between two cells

    Here's the UDF for you:
    Please Login or Register  to view this content.
    Put it into a standard module (Insert > Module), then use in a cell like so:

    =CompareLists(A1, B1, ",")

    You can use any delimiter you want in the 3rd paramater, if you leave it out it will default to comma.
    Last edited by JBeaucaire; 09-29-2012 at 12:15 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel Macro or Functions to Read Mismatch string between two cells

    Please Login or Register  to view this content.
    don't ask me comments, it's not mine
    Last edited by patel45; 09-29-2012 at 12:21 PM.
    If solved remember to mark Thread as solved

  4. #4
    Registered User
    Join Date
    09-29-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Excel Macro or Functions to Read Mismatch string between two cells

    Excellent Thanks its solved my problem.

    Regards,
    Venkateswaran K



    MODERATOR'S NOTE: Please do not quote entire posts into your posts. Thanks.
    Last edited by JBeaucaire; 09-29-2012 at 02:11 PM. Reason: Removed unnecessary whole-post quotation.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Macro or Functions to Read Mismatch string between two cells

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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