+ Reply to Thread
Results 1 to 4 of 4

Error in a existing Macro used for compare the Comma Separated Values present in 2 columns

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Error in a existing Macro used for compare the Comma Separated Values present in 2 columns

    Hello Guys,

    I need help in removing an error in an existing Macro. I am using a Macro which compares the Comma Separated Values present in 2 different columns.

    There are 2 sheets in attached file. In Sheet 1 macro is comparing the comma separated values present in Column C with Column A and if value is same then it will generate 0 and if value is unique then it will generate 1 in Column D. The macro is working fine in Sheet1.

    But, if I run the same macro in Sheet2 for same purpose the macro is generating “Type Mismatch - Run Time 13” error.

    I need help to modify the macro which works in both conditions either of Sheet1 or Sheet2.

    Thanks,
    MG
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Error in a existing Macro used for compare the Comma Separated Values present in 2 col

    Manish,
    You have not got any value in column A to concacnate if the range start from A2

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Error in a existing Macro used for compare the Comma Separated Values present in 2 col

    Hello AB33,

    Thanks for reply.

    I had tried to run your suggested Macro but it is throwing result in wrong rows of Volumn D.

    Please find the attached file for seeing the result.

    Thanks,
    MG
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Error in a existing Macro used for compare the Comma Separated Values present in 2 col

    MG,
    I have not tested the code as you did not have any data to test it on. Please add some output data, so that I can see what is the issue.

+ 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] Compare comma separated values in a cell to a list
    By SMB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-03-2019, 01:10 AM
  2. [SOLVED] Facing problem in a Macro which compares 2 columns having comma separated / single values
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2014, 11:18 PM
  3. [SOLVED] Macro to give the count of unique values after comparing the comma separated values
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 12:41 AM
  4. Comma Separated values in Rows and columns
    By abhijeet_gole in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2013, 12:45 AM
  5. [SOLVED] Macro to match values in cells separated by semicolon and comma
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 11:00 PM

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