+ Reply to Thread
Results 1 to 3 of 3

Remove duplicates from combo box

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Remove duplicates from combo box

    Hi, I've tried googling to figure this out if I could but I can't work it out.

    I've attached my project file but what I am looking for is to get a list of the periods in B6:B57 to list in the left combo box on sheet 1 without any duplicates.

    So that when I select for example period 3, I get the average result from period 3. But that will be a separate post. For this, just to get a list of Period 1 to 12 without duplicates in combo box.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,822

    Re: Remove duplicates from combo box

    1. I deleted Table4 and replaced it with Table1 which now includes row five headers.
    2. I added a new sheet: "UniqueLists"
    3. To return the (named range: UniquePeriods) from sheet1, use **, column A:
    Please Login or Register  to view this content.
    4. A dynamic list of week numbers corresponding to the chosen period is returned to column B, with **:
    Please Login or Register  to view this content.
    **CSE array formulas



    PeriodCount: =SUMPRODUCT(--(LEFT(UniqueLists!$A:$A,1)="P"))+1
    WeekCount: =SUMPRODUCT(--(LEFT(UniqueLists!$B:$B,4)="Week"))+1

    These are associated with the comboboxes on the graph sheet2.
    Attached Files Attached Files
    Last edited by protonLeah; 05-13-2018 at 12:21 AM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Remove duplicates from combo box

    Thanks for your reply, took me a while to respond as I wanted to make a new workbook adding your suggestions to help me better understand what to do and how it works. I now have a list displaying the results I was looking for.

    Leads me to needing further help on other matters but you helped me fix this issue lol, I'll keep adding new posts relating to new issues.

    Thanks again

+ 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. Remove Duplicates in column and remove blanks
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2015, 07:25 AM
  2. Remove duplicates function not removing duplicates
    By Berilium2 in forum Excel General
    Replies: 3
    Last Post: 04-01-2015, 06:55 AM
  3. [SOLVED] Remove duplicates and blanks from Combo Box Excel Userform?
    By jmotuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 12:22 PM
  4. Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  5. Replies: 5
    Last Post: 02-28-2012, 02:52 PM
  6. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM
  7. Replies: 2
    Last Post: 03-20-2011, 11:19 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