+ Reply to Thread
Results 1 to 51 of 51

unique-distinct-dependent-lists1-three-columns

  1. #1
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    unique-distinct-dependent-lists1-three-columns

    Hi

    Attach is the Test_unique-distinct-dependent-lists1-three-columns.xls

    Need advice under the Remark in the excel :
    If E8 = *, want to lookup to Sheet3 and show dropdown in E8 the list of 3 continents ie. Europe, Asia , US

    Any advice appreciated . Thanks!
    Last edited by Grace Tan; 01-29-2021 at 03:45 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    1. What is Excel 1902?

    2. What does it say in the green rectangle that appears in the middle of your screen, when you launch Excel?

    3. Your sample file is in the elderly .xls format, which went out when Excel 2007 was launched.... 13 years ago. Are you still using a pre-Excel 2007 version? If your Excel version is Excel 2007+... why use .xls?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    1. 1902 is Outlook version
    2. Excel Office O365
    3. Re upload the attachment file

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    OK. Please amend your profile to show 365 as the version.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    I replaced all the formulae in Sheet2 with O365 dynamic arrays:

    A2:
    =UNIQUE(Sheet1!A2:A11)

    B2:
    =FILTER(Sheet1!B2:B11,Sheet1!A2:A11=Sheet1!$E$2)

    C2:
    =LET(a,FILTER(Sheet1!C2:C11,((Sheet1!B2:B11=Sheet1!E5)*(Sheet1!A2:A11=Sheet1!E2))),IF(a="*",UNIQUE(FILTER(Sheet1!C2:C11,Sheet1!C2:C11<>"*")),a))

    see sheet. They are NORMAL formulae (no CTRL-Shift Enter needed in O365)
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Profile amended

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    ... and (hopefully!!) solution provided...

  8. #8
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Thank you very much Glenn for your help.

    But only work for order : 1030.

    Order 1010 & 1020 drop down not working.

    Order 1010,

  9. #9
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    I want to achieve the drop down list as in attach excel. Thanks

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    I think your expected answers for 1030/HDD should have been all 3.... not just Asia (as stated in your last attachment).

    Try current version attached here.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Glenn

    I afraid your current version for 1010, 1020, 1020 does not work.

    Attach is what I hope to achieve. Thanks much.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    You have me COMPLETELY confused. My DDs return EXACTLY what you are showing. You made a comment about the DDs being horizontal... then just move them.


    PLEASE DO NOT post changes /clarifications in your original sheet. Make them in MINE. I am not intereestd in looking at your original sheet any more. Focus on what is in mine.

    Maybe YOU misunderstand what DDs do. If you change something at the 3rd level, the values in the earlier levels WILL NOT change without VBA.

    If this is not what you want tell me EXACTLy which inputs are giving you the WRONG outputs and what the correct outputs should be.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Glenn

    I am sorry that I have make you confused. My apology.

    I have explain in your attach excel : Test_unique-GK3.xlsx what is the input , wrong output and the correct output should be.

    Thank You.

    regard
    Grace
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    I am beginning to think that you do not know how dropdown boxes work...

    IF you have all 3 DDs populated and you change the first one, nothing changes in the 2nd and 3rd ones. YOU have to reselect the 2nd and 3rd DDs, when they WILL show the correct options.


    If you want DD 2 & 3 to empty if you change DD1... you need VBA.


    For 1010, you expect the ONLY choices in column F to be GC & SC. Look at your data table. Row 4. Yellow. 1010 & MB is listed. Therefore when you select 1010 you get all 3 possible options: GC, SC & MB. If you DO NOT want MB... why is it listed in row 4???

    For 1020, same argument. if you DO NOT want KB and mB to be DD choices, WHY are they listed in rows 7 & 8?

    Similarly for 1030... it ONLY shows HD in DD2 and shows all 3 in DD3. See the 3 images, as proof.
    Attached Images Attached Images
    Attached Files Attached Files

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    Last image from 1030 after GC selected.
    Attached Images Attached Images

  16. #16
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Glenn

    Thank you for your explanation.
    If I want to achieve below screenshot, I need to use VBA, cannot use formulae and arrays as you have suggest ?

    regard
    Grace
    Attached Images Attached Images

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    If you want to have the combination of 1010/HDD/USA then you need to include it as an allowable option in the data table. If it is NOT included in the allowable options, you will not be able to select it!

    See yellow row in file. Either use an asterisk in column C, or US... if the only permitted country is US.

    If you want it to be available for 1020 as well, you have to include it as an allowable option.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Glenn

    Understood your above explanation.
    But I want DD 2 & 3 to empty if you change DD1...

    Thank & Regard
    Grace

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    You did not make that clear. Give me 5 minutes.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    Try it now.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Glenn

    Thanks for the file.
    Sorry my poor explanation, yes now DD 2 & 3 is empty if you change DD1...

    But when DD1 select new value, DD2 has no value and DD3 also no value since no value is selected in DD2.
    Need DD1, DD2 & DD3 to be able to select multiple times base on the data list .

    Thank & Regard
    Grace

  22. #22
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Pl see file .
    sheet1 is with worksheet events code.
    Worksheet_Selectionchange and Worksheet_change events are used
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  23. #23
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: unique-distinct-dependent-lists1-three-columns

    You asked for:
    But I want DD 2 & 3 to empty if you change DD1..
    I did that for you.

    Now you say:
    But when DD1 select new value, DD2 has no value and DD3 also no value since no value is selected in DD2. You wanted DD2 and DD3 to be blank if you change DD1. Now you don't want them to be blank.

    Make your mind up!!

    If you change DD1, DD2 and DD3 go blank to prevent incorrect choices. BUT you have to make NEW choices in DD2 and DD3, which will reflect the value in DD1...

    The attachment at my last post works perfectly.

  24. #24
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    May I know which version of excel for the attach file : Test_unique-GK6 ans1.xlsm ?
    I have download the file and my computer excel show =_xlfn. in the formulae.

    When I check in website it say "An _xlfn. prefix is displayed in front of a formulae" is due to
    "The Excel workbook contains a function that is not supported in the version of Excel that you are currently running."

    Attach is the file screen shot.

    Thank & Regard
    Grace
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    Thank you for your confirmation.
    Need to add the following 2 requirements but I not familiar with VBA, don't know where to add the code.

    I) If column B = "*" to look up to Sheet3
    2) Add data to rows 13 to row 999


    Appreciate your kind help.

    Thank & Regard
    Grace

  26. #26
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    1) E1=1010 and F1=Hard Disc ( then "*" is third column ) then Drop down is from sheet 3. Pl see file.

    2) There is no restriction in the number of rows in A column. Depending on data up to last row code works.

    File is available in previous post.

  27. #27
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    1) Yes this is working - E1=1010 and F1=Hard Disc ( then "*" is third column ) then Drop down is from sheet 3

    But my production data has the following data as highlight in attach in YELLOW: which I need to lookup to sheet 3 when F1 ="*"

    Thank & Regard
    Grace
    Attached Files Attached Files

  28. #28
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Quote Originally Posted by Grace Tan View Post
    Hi Murthy
    1) Yes this is working - E1=1010 and F1=Hard Disc ( then "*" is third column ) then Drop down is from sheet 3
    Pl post excel workbook not images and word files.
    Pl see file.For * in second column, then drop down is from Sheet3, it is working.
    Last edited by kvsrinivasamurthy; 02-05-2021 at 05:36 AM.

  29. #29
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    Attach is the excel file.

    Thank & Regard
    Grace
    Attached Files Attached Files

  30. #30
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    your quiries are already solved in my previous posted file. Pl check.

  31. #31
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    Thank you the previous post solution work but when I put in the PRODUCTION data, I encounter error when save and open the xlsm

    Found there is a limit of 256 characters including the separators for data validation drop down list.

    Is there any way to bypass this limit of 256 characters in the data validation drop down list ?

    Thanks & Regard
    Grace

  32. #32
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    in which cell text of of > 256 characters is required. Because we have o in round about route to get text length of >256 .
    Pl see file. I have given Example.

    Validation list H7:H10
    Text list I7:I10
    Validated cells A1:A3
    Required text cells (Result cells) B1:B3

    Formula in B1 then copied down.

    =IFERROR(INDEX($I$7:$I$10,MATCH($A1,$H$7:$H$10,0)),"")
    Last edited by kvsrinivasamurthy; 02-17-2021 at 05:08 AM.

  33. #33
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    All the 3 Cells A, B, C

  34. #34
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Below cells text > 256 characters

    1) Sheet 1: All the 3 cells A, B, C
    2) Sheet 3 : Cell B

  35. #35
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Pl see my previous post and attached file. It may help.

  36. #36
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Pl see file.
    See Range A16:C18
    Attached Files Attached Files

  37. #37
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Below cells text > 256 characters

    1) Sheet 1: All the 3 cells A, B, C
    ** If I add more rows in column A, B, C will exceed 256 chars in Sheet1

    2) Sheet 3 : Cell B
    ** If I add more rows in column A, B will exceed 256 chars in Sheet3

    Attached eg. excel : Test_111c.xlsm
    Attached Files Attached Files

  38. #38
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Restriction of 256 is for the text in single cell and not for the total length of the list.
    Pl see file. I added more rows and it is working.
    Attached Files Attached Files

  39. #39
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Yes added more rows is not a problem but after save and open the file again, will have error " we found a problem with some content in excel xlsm"....
    The file will be corrupted and the dropdown list all disappear

  40. #40
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    I am not finding any problem to save or open file even after adding the additional list.
    Pl copy the file to pen drive and try on another PC.

  41. #41
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    which version of Excel is yours ?
    my version is : Microsoft Excel for Office 365 MSO (16.0.11328.20362) 32 bit.

  42. #42
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Pl see file.
    I have changed the code. No modification required.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  43. #43
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    I select row 11 column A : CLOUD_GENERAL, column E & F dropdown working except column G not looking to Sheet 3

  44. #44
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Select row 11 column A : CLOUD_GENERAL, I am getting in E2 drop down from Sheet3 as there is star in B11. Further F2 will not have any drop down.

  45. #45
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Also have star in C11 for row 11 column A

  46. #46
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    I have changed code. Pl see file.
    Attached Files Attached Files

  47. #47
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Thank you Murthy

  48. #48
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Welcome. Pl mark the thread solved.

  49. #49
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    I like to want to copy row 2 , column E, F , G to subsequent other rows like row3 onward, how to change the macro codes ?

    Thanks & Regards
    Grace
    Attached Files Attached Files

  50. #50
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: unique-distinct-dependent-lists1-three-columns

    Code is revised. it covers the entire columns E, F and G.
    Pl find the code in Work sheet event.
    Attached Files Attached Files

  51. #51
    Registered User
    Join Date
    01-29-2021
    Location
    Singapore
    MS-Off Ver
    365
    Posts
    25

    Re: unique-distinct-dependent-lists1-three-columns

    Hi Murthy

    Thank You.

    regards
    Grace

+ 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. Dependent lists based on multiple not unique table columns
    By jaryszek in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-18-2020, 09:59 AM
  2. [SOLVED] Distinct Dependent Drop Down Lists
    By pbundrant in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2018, 03:20 PM
  3. Replies: 2
    Last Post: 12-04-2014, 04:59 AM
  4. Create a Distinct Unique list for 2 Columns
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-06-2014, 05:10 PM
  5. VBA Dependent Unique Distinct Lists
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2013, 02:42 PM
  6. Replies: 1
    Last Post: 03-02-2011, 04:14 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