+ Reply to Thread
Results 1 to 13 of 13

How to generate dynamic, cascade drop down with special characters in the data values

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    How to generate dynamic, cascade drop down with special characters in the data values

    Thermo Fisher/Applied Biosystems Quant Studio 5 (0.1 mL block)
    Thermo Fisher/Applied Biosystems Quant Studio 5 (0.2 mL block)
    Thermo Fisher/Applied Biosystems Quant Studio 6/7
    Thermo Fisher/Applied Biosystems Quant Studio 12K
    Thermo Fisher/Applied Biosystems Quant Studio Dx
    Qiagen Rotorgene Q
    Qiagen Rotorgene QMDx
    Qiagen QIAquant
    Roche LightCycler 96
    Roche LightCycler 480
    Roche LightCycler 2.0
    Last edited by mls_newbee; 09-27-2020 at 11:32 AM. Reason: learned that my question is called cascade dynamic drop down

  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,830

    Re: How to generate multi level drop down with special characters in the data values

    Please give more information and attach a workbook showing what you want. How is anyone supposed to work it out from this???
    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
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: How to generate multi level drop down with special characters in the data values

    Please see the form. I have 3 sections in the form and have 3 sheets with 3 different drop down table to feed these first sheet drop downs.

    Doing some research online and learned that my requirement is called cascade dynamic drop downs with lot of special characters other than underscores and dots. Also my drop down table list is not static it can grow over time so it should by dynamic.

    If a user selects manufacturer then only the instruments related to those should show in the subcategory drop down. I am not familiar with limiting so I attached complete list. For Ex: PCR section start from line 10 and B12 should get data from A column in the pcr Instrument sheet and if a user selected "Qiagen" as Manufacturer the corresponding instruments should show up in C12 ( Rotorgene Q, Rotorgene QMDx, QIAquant). and the catalog number should automatically default to 4406984 (laptop computer) . I don't have complete list of catalogs for each instrument.

    Not sure if I can combine all the sheets into one sheet, for now separated to understanding easily.
    Is this doable with formulas and functions? or do I have to use VBA code because data values has lot of special character like spaces, parenthesis etc?

    Thank you so much in advance for helping me.
    Attached Files Attached Files
    Last edited by mls_newbee; 09-27-2020 at 11:44 AM. Reason: with little more awareness since I posted, thought of mentioning the details

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    From Name Manager in the Data ribbon, create a new named range, e.g., Instrument, and use this formula in the Refers to field:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For the data validation in cell C12 in the Form tab, select list and type this in the Source field:
    =Instrument

    Good luck!
    Last edited by Estevaoba; 09-27-2020 at 05:05 PM.

  5. #5
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    Thank you so much for quick response. It works perfectly for one cell . i.e C12.
    How do I make this dynamic? what changes should I make for the above formula so that what ever is selected from B12 to B16 should dynamically show the corresponding instrument in C12 to C16.

    Also how do I create formula for RNA details as it has multiple levels?

    Thanks again

  6. #6
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    You're welcome. Glad to help!

    For the other cells in tange C12:C16, I'm afraid you'll have to create named ranges, such as the one I created.
    For the next cell, the named range for data validation would be e.g., Instrument2, with this formula:
    =OFFSET(PCRInstrument!$B$2,MATCH(Form!$B$13,PCRInstrument!$A$3:$A$16,0),0,COUNTIF(PCRInstrument!$A$3:$A$16,Form!$B$13),1)
    Note that I change the cell reference only (Form!$B$12 to Form!$B$13), marked in red above.
    Next down would be Form!$B$14, and so on.
    I know that this is too laborious, so I'm trying to find an easier workaround.

    One that might work would be to use only one named range e.g., the existing "Instrument", with the same formula, but not locking the row on the reference to Form!$B12 (without the second $), so it would be like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you use this, follow these steps and you may be fine:
    1. Do data validation as described in my first post
    2. Still on that cell C12, click Name manager in the Formulas ribbon
    3. Select the named range Instrument
    4. Check the formula in the Refers to box below. It MUST read
    =OFFSET(PCRInstrument!$B$2,MATCH(Form!$B$12,PCRInstrument!$A$3:$A$16,0),0,COUNTIF(PCRInstrument!$A$3:$A$16,Form!$B$12),1)
    5. Copy cell down, just as you would copy a formula down. It will replicate the data validation parameters in those cells down to C16.
    6. Click on cell C13 and repeat steps 2, 3 & 4 above. In this case, the Form!$B$12 parts MUST read Form!$B$13.
    At that point, you should be all set.
    I must confess I never used this, so PLEASE DO run some test and make sure it will not fail down the road.

    If I come up with something better, I'll get back here.
    Also, I'm working on the RNA section. The attached file is an unfinished job just to get you started.

    In the meantime, I hope some forum expert will come up with a better solution.

    Take care.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    Second solution for instruments list worked by removing the $ sign to locked the cell.

    Also working on RNAdetails as it has big lists.

    Thank you so much for your time and hard work

  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,830

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    You're welcome. Glad it worked.
    Thanks for the rep points added.

  10. #10
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    Not sure if I can consider this to completely solved. I tried to create list using Name Manager but some how the range for previous Name list are automatically changing when I create new list.
    as per the rules of this forum I cannot ask the same question again so please advice.


    Thank you so much,

  11. #11
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    I decided to do this with formulas and static named ranges instead of dynamic.
    That way, I can create as many named ranges as I want at a time by, for exmple, selecting a range with 8 rows and 9 columns, with a formula-built name on left column from which the ranges will be named. Then on the Formulas ribbon I click on Create from selection, and mark Left column.

    Also, in each data tab I made helper columns to populate with data from selections in the form tab.

    Please run some test and hopefully it'll work better this time.

    The RNA tab has more detail, so maybe you'll need to copy from there to complete the other tabs.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    Estevaoba, Thank you so much for all your time and can imagine you hard work and effort in developing this solution.
    It's above my knowledge level to understand this solution.

    Can you explain the following two formulas so it will be easy for me to update in future to add more drop downs?

    =IFERROR(SUBSTITUTE(MID(@CELL("filename",A1),FIND("]",@CELL("filename",A1))+1,255)," ","_"),MID(@CELL("filename",A1),FIND("]",@CELL("filename",A1))+1,255))

    =$W$1&$B$2&ROW(X1)


    Appreciate all your hard work. thank you
    Last edited by mls_newbee; 09-29-2020 at 12:08 PM.

  13. #13
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: How to generate dynamic, cascade drop down with special characters in the data values

    You`re welcome. Glad to help.

    The first formula you mentioned =MID(@CELL("filename",A1),FIND("]",@CELL("filename",A1))+1,255)
    All it does is to return the sheet name. I use it in a far out column and it can be hidden.
    It's a little trick used, e.g., so formulas using the current sheet name will automatically be updated when copied to the next sheet.
    I wrapped it in IFERROR because not all sheets names include space, so when one does, the space will be replaced by an underline character (_), so as not to mess with named ranges.

    The second formula mentioned, =$W$1&$B$2&ROW(X1)
    It concatenates:
    1. Sheet name from cell w1
    2. column heading from B2
    3. The number 1, from the ROW function, so it will be 2, 3, 4, etc when I copy down.

    That helps automation when creating meaningful named ranges, but not all headings in your sheets are consistent, so some adjusting was required.

    Also, in the Form sheet, not all columns headings are consistent. So I had to make some adjustment in the formulas with INDIRECT function for the data validation formulas.

    The formulas in the helper columns from clolumn H are array formulas, so when you edit, make sure to confirm with Ctrl+Shift+Enter instead of just Enter.

    In case you have more questions, feel free to ask.

    Take care.

+ 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] multi level dependent drop down list
    By (T_T) in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2020, 06:02 AM
  2. Replies: 3
    Last Post: 06-04-2020, 06:12 PM
  3. [SOLVED] Multi Level Dependent Drop Down Lists
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2015, 03:35 PM
  4. Charting data values with special characters
    By xcl27 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-09-2015, 04:09 AM
  5. Multi level dependantly linked drop down boxes
    By MattHutchings in forum Excel General
    Replies: 3
    Last Post: 08-10-2012, 09:57 PM
  6. Multi Level Dependent Drop-down list, Explanation required
    By Shoieb.arshad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-31-2012, 11:36 AM
  7. Drop Down Issue - multi level filter
    By burblecut in forum Excel General
    Replies: 3
    Last Post: 08-19-2010, 04:54 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