+ Reply to Thread
Results 1 to 4 of 4

Filter on Listbox with only unique items

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Post Filter on Listbox with only unique items

    Hi everyone! Hope everyone is great!

    Have a database with birthdays. Some records are repeated, as they are records of birthday parties over the years.

    1.PNG

    In a listbox, I need to get the birthdays from this database filtered by month. In other words, I need to select a month in Combobox and when searching, my Listbox should show only the birthdays of the selected month, but no duplicates.

    2.PNG

    For example, if I search for birthdays in the month of December, I need the Listbox to show only 1 record (Willian in this case)

    I tried a few options, but I've never really done this type of filter with Listbox.
    Would anyone know if this is possible?
    Attached is my spreadsheet. Thanks in advance to anyone who can help me.
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Filter on Listbox with only unique items

    Give the attached solution a try.
    It constructs a second table from the visible rows of the first table onto a hidden sheet.
    Then the duplicates are removed from the second table and this is used to load the listbox list.
    An array could possibly be used instead of the second sheet.
    Any queries post back on this site.
    torachan.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Re: Filter on Listbox with only unique items

    Thank you for your help! This was exactly what I needed.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Filter on Listbox with only unique items

    Thanks for the feedback.
    Glad to have helped.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

+ 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] Unique values for listbox, error when all items are unique
    By chris01395 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2020, 07:29 AM
  2. [SOLVED] Filter Data Based on Unique Column Items and Save the Workbook with Filtered Items
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2019, 03:08 AM
  3. [SOLVED] populate listbox with unique items based on criteria in column C
    By bqheng in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2017, 06:55 PM
  4. [SOLVED] Add unique items in Listbox based on Combobox
    By sunjam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2017, 11:27 PM
  5. [SOLVED] Add unique Items to ListBox Dynamically
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2015, 01:25 AM
  6. [SOLVED] Use Selected Items from ListBox As Filter Criteria
    By FallingDown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2015, 12:13 PM
  7. [SOLVED] Listbox with unique and dependent items - VBA
    By limalf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2014, 02:37 PM

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