+ Reply to Thread
Results 1 to 40 of 40

Removing Duplicates from Dropdown List

  1. #1
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Removing Duplicates from Dropdown List

    Long story short! I work for a small electronics company and the previous engineer locked our files and recently passed away from a heart-attack, I'm having to reconstruct our spreadsheets. I have no knowledge of excel and i have been fumbling my way through it. Any help would be very much appreciated! So, Thank you in advance.

    What i have: i have B1 on the FormTable sheet set as a dropdown box to select an item from Column B on the RoutingTable sheet.

    What im looking for: I need to remove duplicates out of the dropdown box. After selecting from the dropdown box in B1 on the FormTable Sheet, i need Column B5 and C5 on the FormTable Sheet to match the data on the RoutingTable's corresponding cells.
    Also, i need exact returns such as... Loc 1 matches Loc 1, if there is no Loc match then leave it blank and move on to the next match.
    Attached Files Attached Files
    Last edited by AliGW; 04-06-2021 at 12:22 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: please help me you smart people!

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I will attempt to do it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    yes ma'am i would, but unfortunately as you can see if you read my post.. that i do not have enough knowledge of excel to properly title my post by what function i need help with. Sorry for the inconvenience and if you further insist.. perhaps you can help me accurately title this post by reading it and telling me what you think it should be titled based on my needs.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Removing Duplicates from Dropdown List

    Are you really using Excel 2007?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Removing Duplicates from Dropdown List

    Quote Originally Posted by bashscript View Post
    yes ma'am i would, but unfortunately as you can see if you read my post.. that i do not have enough knowledge of excel to properly title my post by what function i need help with. Sorry for the inconvenience and if you further insist.. perhaps you can help me accurately title this post by reading it and telling me what you think it should be titled based on my needs.
    Did you read my post in its entirety?

  6. #6
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    I thought i had, but some of it was cutoff my screen. Thank you for doing the title for me.

  7. #7
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Quote Originally Posted by AliGW View Post
    Are you really using Excel 2007?
    yes.... im really using 2007.... sorry

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Removing Duplicates from Dropdown List

    OK. So, a quick question: the list that feeds the drop-down - will this ever change and/or grow?

  9. #9
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    yes ma'am, it will.
    all of the data on RoutingTable will constantly be changing.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Removing Duplicates from Dropdown List

    OK. I'm about to log off for the evening, but if nobody else chimes in, I'll have another look in the morning. It's a shame you don't have a more recent version of Excel.

  11. #11
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    i agree, i wish i did too!

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Okay, so when you pick, for example, USB Outlet from your dropdown box, Excel won't know which "USB Outlet" you've chosen, so you've narrowed your choices down to, for Wire #
    USB PWR
    USB GND
    USB DATA+
    USB DATA-
    Do you want those 4 values to appear in B5 to B8?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  13. #13
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    That is correct. When i select USB INPUT, i need B5 and on to popluate with the correct wire based on the Loc to the left. Any result that doesnt have an LOC should be skipped and left blank.

    sorry for the late reply... i was on lunch break. Thank you for responding!

    So, let's say i picked USB INPUT and it has a return for 4 wires that are not in ascending or descending order. Like Loc of 2, 4, 6, and 8. i would need loc 1, 3, 5,7 to be skipped while the rows on 2, 4, 6, 8 being populated with the correct wires.
    Last edited by bashscript; 04-06-2021 at 01:50 PM. Reason: better description

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    First, to address your title and removing duplicates from the dropdown
    You need to create a new list without duplicates and reference that. Easiest way is to copy and paste the list somewhere else and then use Excel's "Remove Duplicates" functionality (on the Data Tab). I think Excel 2007 has this.
    However, since your data is expanding, we can do this with formulas.
    In F2 of RoutingTable tab, I entered this formula copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can hide this column if you like for esthetics.

    Now to fill in Col C of FormTable
    I used this Arrayed Formula copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

    See attachment
    Attached Files Attached Files
    Last edited by ChemistB; 04-06-2021 at 04:03 PM.

  15. #15
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Thank you so much, this is working nearly perfect.. i noticed a couple issues, but those can be fixed manually. I also noticed that i accidentally uploaded the incorrect workbook lol. so im trying to figure out how it all translates over. Will you be available if i still require your help?

  16. #16
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Im getting random lockups and then crashes. i will give you more detail on that later if you care to assist me.

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    I'm here all week.

  18. #18
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Quote Originally Posted by ChemistB View Post
    I'm here all week.
    Awesome.. well i found an older workbook that i tried moving your work into... but of course it didnt translate over. i will show you the workbook so you might assist me in transferring everything over.. if you wouldnt mind

  19. #19
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    i highlighted the same areas that were on the workbook that i was making... but i will be using this workbook since it was an older backup, but still missing some features.
    Attached Files Attached Files

  20. #20
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Okay, in this workbook, you don't have the dropdown (I'm looking at "Form Board Tables"). Instead you have a table for each "From Conn". Is that the way you are going to go? So you want each table filled in as per the previous request?

  21. #21
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    i will need a dropdown without duplicates on each one of the tables like i had it setup before. sorry, i forgot to add that before uploading... sorry for being noobish here

  22. #22
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Quote Originally Posted by ChemistB View Post
    Okay, in this workbook, you don't have the dropdown (I'm looking at "Form Board Tables"). Instead you have a table for each "From Conn". Is that the way you are going to go? So you want each table filled in as per the previous request?

    Some additional information.... The Routing Chart can reach 400+ rows, i dont know if this will change things, but i thought i would offer up the info so we dont have to adjust it later!

  23. #23
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Okay, similar to post #14. In U2 copied down on "Routing Chart"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then I created a dynamic named range called "MyList"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I used MyList in the Data Validation > List to create the dropdown menus. (I just did the one in cell A1)
    Lastly, in Form Board Tables B2 copied down, this Arrayed formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    See attachment.
    Any questions?
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    about to run it through its paces. I know the other sheet was crashing when i would alter the Column F or the column B on the routingtable sheet. also, it crashed once before when trying to save it.

    Fingers crossed that it doesnt happen this time!

    Thank you for all of your hardwork that you put into this for me... it if very much appreciated.

    PS: We should Fire Chemist A and promote you!

  25. #25
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    renamed the file to test008. it crashed when changing the data in column B, then i opened the file again.. changed some data in the same column with no crash, but when i went to change update the list on column U2 of the Routing Chart.. it crashed again.

    also there are some error messages popping up when opening the file.
    Attachment 727285Attachment 727287

    Crashed when deleting merged cell A40 on the Routing Chart Sheet
    Last edited by bashscript; 04-07-2021 at 02:42 PM. Reason: Additional Crash

  26. #26
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Not sure what that Attachment Error is. I'll ask around. The list in Col U is automated based on what's in B. What were you trying to change in Column U?
    Your data is not that large. It shouldn't crash.

  27. #27
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73
    Quote Originally Posted by ChemistB View Post
    Not sure what that Attachment Error is. I'll ask around. The list in Col U is automated based on what's in B. What were you trying to change in Column U?
    Your data is not that large. It shouldn't crash.

    When I attempted to add another entry at the bottom of the column B it crashed. When I changed an already existing entry... It crashed. After the restart it didn't crash when changing the same entry but crashed when I deleted row A40. I will see if it crashes when I add additional rows to that table.

    I thought I had to add more rows to Column U to accommodate the new entry at the end of column B.

  28. #28
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    I had dragged the formula down to U21 so there's room for up to 12 new unique entries before you'd need to modify it. I cannot reproduce the crashing. I posted a request for someone else to assist. Hopefully someone has an answer.

  29. #29
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    i did a computer restart and the crash has not come back... however.. the U column is not updating with the new entries into column B. is there something that i should be doing that i am not?

    [update] it crashed again.. this time i dont know why.. i will be testing it on another workstation here in a few minutes.

    [update] had a co-worker try it on their station and when adding rows to the Routing Chart; it crashes every time. Perhaps, there is some bit of code here conflicting with our version of excel?
    Last edited by bashscript; 04-08-2021 at 10:03 AM. Reason: new information

  30. #30
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    I added "New Type" into Routing Chart B39 and it automatically appeared in U10. I assume your calculations are set to "automatic". Try clicking F9 which will force a calculation.

  31. #31
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    yeah, something must be conflicting between our versions.. F9 didnt update anything and when i selected Column U and dragged the formula down from U3 to U20 it crashed.

    This time i was able to add Rows to the Routing Chart without a crash. Entered data into the new fields without a crash.. but when i did what i stated above it crashed.


    [troubleshoot update]
    opened the file and saved it with no changes = no crash
    tried saving after adding rows in the middle of the table with no data = crash
    tried saving after adding rows to the end of the table with no data = crash
    tried saving after adding rows in the middle of the table with data = crash
    tried saving after adding rows to the end of the table with data = crash.

    [update] Set my calculations to manual.. Column U updated with F9, but crashed at save after adding new row to the bottom of the routing chart and entering the new data.
    [update] Tried selecting my new entry from the dropdown box and after the selection, it crashed. I think something funky is going on with column U??
    Last edited by bashscript; 04-08-2021 at 11:50 AM. Reason: narrowing it down.

  32. #32
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Found a computer here in the office running 2016 and it worked with no issues at all... Thank you for your help and i consider this all to be resolved. if encounter any issues will open a new thread. thank you so much for your time and patience, Chemist... you have been excellent to me.

  33. #33
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Removing Duplicates from Dropdown List

    Time to update???

  34. #34
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    yep, i just talked to the boss man, and he will be updating the software on all the computers to 2016!

  35. #35
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Glad to help. Good luck with your updates.

  36. #36
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Here you go Chemist.. on the Form Board Table , In Cell A1 (drop down list), you will see that all the selections work except for the last three... and i cant figure-out why!

    Scratching my head here!!
    Attached Files Attached Files

  37. #37
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    I am not sure what you expect the results to be. I modified the formula in B5 to read
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is an arrayed function and needs to be entered with CNTRL SHFT ENTER. It looks in both B and F of Routing Chart for matches to A1. It returns only 1 and 3 as "F1-2" and "F3-2" aren't listed in your locations col A. As I have no idea what any of this means in practicality, I can't really know what is expected or why you list certain locations and not others.
    Attached Files Attached Files

  38. #38
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    Sorry for not being more descriptive... F1-2 and F3-2 are Fuse locations.. they are normally inputted manually on the Form Board Table.
    What we are attempting to accomplish with all this is, for example: We Select our "From Connector" in the drop down list, which then populates the Wires that come from that Connector and applies them to the appropriate Pin locations on the selected Connector.

    Sometimes, a company will input things backwards which is why i needed the F Column "To Connector" to also show in the drop down list.
    Last edited by bashscript; 04-21-2021 at 09:48 AM.

  39. #39
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing Duplicates from Dropdown List

    Okay, so does my formula fix the issue? IF not, what do you expect to populate?

  40. #40
    Registered User
    Join Date
    04-06-2021
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    73

    Re: Removing Duplicates from Dropdown List

    i will apply it to a larger data-set and get back with you on that! Sorry, it is a rather hectic day on the assembly floor today. i have been back and forth from my desk to the floor.

+ 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. Smart Randomisation
    By archiplexus in forum Excel General
    Replies: 1
    Last Post: 11-14-2018, 01:12 PM
  2. Replies: 6
    Last Post: 10-07-2015, 04:29 PM
  3. Organize 35 people into groups of 5 over 9 days; minimize same people together
    By LuluPearl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2015, 07:12 AM
  4. hi every one!!!!!! is good to be part of this forum lots of smart people
    By MARIOV1 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-28-2015, 03:03 AM
  5. I need help from you smart people.
    By Pipestew in forum Excel General
    Replies: 7
    Last Post: 11-27-2006, 04:53 AM
  6. [SOLVED] Smart Report
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  7. Smart SUM
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 02-02-2005, 08:49 AM

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