+ Reply to Thread
Results 1 to 12 of 12

display unique list in dropdown in each subsequent cell

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    display unique list in dropdown in each subsequent cell

    Hi,

    I am looking to get a list of unique data without any duplicates to be displayed in dropdown in G column and in gets update with new data in subsequent cells as well in previous cells.But the data so displayed in G column should be unique to F column.For eg.

    if I type in F12 = Ram Kapoor,then it will search all the Ram Kapoor corresponding list of data in G column and display in dropdown without any duplicates in G12.
    But if in F12,if the data is new type and does not exist then it will allow one to do entry in G column that will be updated in next cells and previous G column cells.

    Hope I could be able to make it understand.

    Code is included from http://www.excelforum.com/showthread.php?t=1148579

    Hope modification in it will ease.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: display unique list in dropdown in each subsequent cell

    With helper sheet called unique, you can hide
    With dynamic named range on this sheet

    and this code

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: display unique list in dropdown in each subsequent cell

    Thanx for the kind reply.

    But this is not what is expected.

    Let me explain more in detail -

    Condition 1
    If I type data in F12,as "Ram Kapoor",the corresponding lists available from G4:G11 column to "Ram Kapoor" of F column are-

    Complan
    Horlicks
    Horlicks

    So,in G12 it must display unique value excluding duplicates in dropdown as

    Complan
    Horlicks (1 duplicate removed)

    This must gets updated automatically.

    Condition 2
    Also,if a user don't want to select either of these options then it will allow to type a new data in G12 and gets updated in next list.

    Condition 3
    If a data is completely new in F12 (as no data exists from F4:F12),then it will allow an user to type a new data in G12 and gets updated for dropdown in the next list.

    Condition 4
    If any of the G column data is modified then it must make changes in dropdown in next time displaying the list.

    Hope this would clarify further.
    Last edited by paradise2sr; 12-30-2016 at 12:05 AM.

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: display unique list in dropdown in each subsequent cell

    Maybe

    Please Login or Register  to view this content.
    Kind regards
    Leo

  5. #5
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: display unique list in dropdown in each subsequent cell

    also little cange on dynamic named range
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: display unique list in dropdown in each subsequent cell

    No,you have misunderstood what I mean to say.Kindly refer post 1 attachment once again & post 3 detail explanation.
    Last edited by paradise2sr; 12-30-2016 at 07:32 AM.

  7. #7
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: display unique list in dropdown in each subsequent cell

    Hi paradise2sr,

    Try the following code included in the attached modified copy of your file. This works on Sheet1 only.

    In the Sheet 1 Code module:
    Please Login or Register  to view this content.
    In ordinary code module ModDataValidation:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: display unique list in dropdown in each subsequent cell

    Thanx LJMetzger

    Fantastic,it is displaying as expected.Few more things I would like to request in addition to above your post Post 7.

    1.I want in more than one specific sheet.
    2.Can the data be in alphabetical order rather than displaying randomly in dropdown as my data is very large.
    3.In actual I am operating more than 4000 rows and will go on increasing,the above code gets slow to perform,however you code are no doubt fantastic.In this case how to speedup.

    I thank you for the pain you have taken for me to solve my issue.
    Last edited by paradise2sr; 12-30-2016 at 10:44 PM.

  9. #9
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: display unique list in dropdown in each subsequent cell

    Hi,

    I implemented all your requests. There are now 3 main routines to do the processing:
    a. CreateDataValidationForOneNameController() - This process a one cell change in Column 'F'. It actually has to do two passes. The first pass puts the 'Data Validation' in Column 'G' for the 'New Name' in the Cell in Column 'F'. The second pass puts 'Data Validation in Column 'G' for the name in Column 'F' that was just deleted (it it still exists in other cells in Column 'F').
    b. NewNameInColumnGDataEntry() - This puts the 'Data Validation' in Column 'G' for the 'Name' in the Cell in Column 'F'.
    c. CreateTheEntireDataValidationList() - This is similar to the routine in the previous version, and calculates 'Data Validation' for every non-blank cell in Column F. This still takes a long time. It is only activated when more than one cell changes value (e.g. when a cut and paste is done).

    In the Sheet Code module (for each sheet you want to run the software):
    Please Login or Register  to view this content.
    Lewis

    Code is too long for one post - will be continued in next post.

  10. #10
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: display unique list in dropdown in each subsequent cell

    Code from previous post - continued

    In ordinary code module ModDataValidation:
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: display unique list in dropdown in each subsequent cell

    Code from previous post - continued

    In ordinary code module ModDataValidation:
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: display unique list in dropdown in each subsequent cell

    That's awesome and fantastic !

    For a long time I was looking for this type of issue and ultimately you have solved it.

    Thanx a lot and I am really grateful to you for the pain you have taken to resolve my 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. Replies: 7
    Last Post: 11-21-2016, 04:40 PM
  2. Replies: 7
    Last Post: 12-23-2015, 07:43 AM
  3. Create dropdown list in Excel that will only list unique entries
    By MissAudrey in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-22-2015, 04:56 PM
  4. [SOLVED] Display a dropdown list or populate a cell with single value based on other cells' values
    By filla_dilla in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2014, 09:47 AM
  5. Display Cell Data from a cell after selecting option from dropdown list.
    By RoyalleSky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2014, 06:04 AM
  6. Display dropdown list in cell if condition is met
    By markiz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2013, 03:12 AM
  7. Need help moving multiple lines of data in single cell to unique subsequent rows
    By brettmburns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2012, 03:04 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