Compare two Lists

  • Hi all,


    Am trying to compare a column range ("B2:B500") from sheet with listbox items and display items which are not in listbox. I want to copy the items which are not present in listbox1 but present in column range in sheet4 to another listbox i.e, listbox2. Someone please help me here


    I will not be able to share data, but my code is as below which is giving considering only first item in a listbox1


    Edited once, last by Carim ().

  • Carim

    Changed the title of the thread from “I want to get data which is present in the column range of sheet4 but not present in listbox (listbox1) in listbox2” to “Compare two Lists”.
  • Hi and Welcome to the Forum :)


    If you are interested in a generic solution to compare two Columns and return differences, see following link :

    Compare two columns and return differences


    If you are looking for a customized solution adapted to your situation, thanks for attaching a small sample file

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • You are welcome :)

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!