+ Reply to Thread
Results 1 to 17 of 17

Four cascading data validation lists that can be used on multiple rows

  1. #1
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Question Four cascading data validation lists that can be used on multiple rows

    I've been struggling for days playing with different potential solutions for this. On my first sheet I'm trying to display data that is organized by the four data validation lists. The data set the validation lists are based on is on the second sheet. The data set on the second sheet contains exclusively names (first/last, and locations). It's regional data so the first data validation is easy - I use a unique function to provide that data - but I need it to filter the second list, the second list to filter the third, and the third to filter the fourth - I need to be able to do this within each row on the first sheet. Here is an example:

    I've found that Kutools is able to do this but as soon as someone else without Kutools opens it - it breaks. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Four cascading data validation lists that can be used on multiple rows

    Often in Kutools they offer a MS Excel/formula based way to accomplish the same.

  3. #3
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Question Re: Four cascading data validation lists that can be used on multiple rows

    I'm not sure if there is some coding that Kutools puts in the background that goes away when it's not present but when I sent the file to a colleague that did not have Kutools the dropdown and formulas were there but none of them worked. When I tried to edit the formula on a separate machine it gave me the "the source currently evaluates to an error" - something Kutools does bypasses this...

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Four cascading data validation lists that can be used on multiple rows

    see if the attached works for you - the source data and work data are contained 'structured tables'
    the dropdowns only work within the confines of the table - there is no need for on-sheet formula or data validation - all action is within the sheet code module.
    to extend your work table type a character in 'A3' - move to 'B3' then back to 'A3' you should now have a dropdown and a new table row.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  5. #5
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    thank you for the response

    I seem to be having trouble with it. The drop downs are acting like buttons? I'd like to better understand what you mean by structured tables and the sheet code module - and understand what I'm looking at when I open the file. Any chance there's a quick way to explain it?

  6. #6
    Registered User
    Join Date
    02-09-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office Home and Business 2021
    Posts
    19

    Re: Four cascading data validation lists that can be used on multiple rows

    Hello! I am learning as well and worked on a project similar to this one recently.

    You will see duplicate names in the drop-down lists if the name appears more than once in a column. I hope this helps!

    CascadeDataValExample - Data Validation Formulas.jpg

  7. #7
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    That certainly does. Any way to insert unique in there so the final list does not have duplicates? I'm going through each piece of the formula but it's not clear to me where I might be able to stick a unique modifyer

  8. #8
    Registered User
    Join Date
    02-09-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office Home and Business 2021
    Posts
    19

    Re: Four cascading data validation lists that can be used on multiple rows

    I've been trying to figure that out as well! I created unique lists of names from your original data but the OFFSET formula isn't displaying the full unique list in my result. So sorry I couldn't assist more. If I figure it out, I'll let you know.

  9. #9
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    I got it! Just put unique ahead of the formula and add an extra ) at the end...

    brought to you by ChatGPT lol...that thing was spot on

    One question: using your formula I'm getting an extra data cell that is outside the reference value (in your example A11, I'm getting the data in J9 included in the list) - looking through the formula I'm not seeing why this would be. It's a single cell it's returning that it shouldn't so I wonder if I did something wrong...

    edit: it looks like it's grabbing the next cell down from the last value that matches the reference - not sure why
    Last edited by kickassduke; 03-09-2023 at 10:47 AM.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Four cascading data validation lists that can be used on multiple rows

    as your data as presented is more in keeping with a 'database' the use of Excel > insert > table is also more appropriate as it makes for easier data manipulation.

    for the sheet to work you must have 'macros' enabled (not quite sure what you mean when you say dropdowns acting like buttons - the comboboxes should look similar to normal data validation dropdowns)
    if you right mouse click on Sheet1 tab > from dropdown menu > select view code, this will open the Sheet1 code module, the code you are then viewing is what drives the process that filters down each combobox.
    Ku-tools would use similar procedures - possibly written in C++ but only available to the subscriber whereas VBA/macro is already built in to MS Office and interacts throughout each element within Office making it a very powerful tool for data integration across the platform.

  11. #11
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    When I opened your file the drop downs acted more like inserted shapes and didn't actually "dropdown" for me.

  12. #12
    Registered User
    Join Date
    02-09-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office Home and Business 2021
    Posts
    19

    Re: Four cascading data validation lists that can be used on multiple rows

    I'm attaching the workbook I worked on (your original data plus my own). That way you can play around with it.

    This is my first attempt at attaching an Excel file... I hope this works. LOL

  13. #13
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Four cascading data validation lists that can be used on multiple rows

    @kickassduke - are you using a Mac or possibly using Excel 64 bit ????? does it ask you to enable macros ?????

  14. #14
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    PC and using Office 365 locally - might be 64 bit? But it did not ask me to enable macros

  15. #15
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Four cascading data validation lists that can be used on multiple rows

    it should work if macros are enabled - with the new attached file you can check this - when you click into 'A2' a message box should appear asking if you want to proceed - if it does not appear then macros are not enabled - you will have to do this in Excell settings if needed.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    03-08-2023
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Four cascading data validation lists that can be used on multiple rows

    Thank you. That one worked.

    Problem is it asks if you want to proceed everytime you click the dropdown and if you say yes it erases what was in there. Thank you for that suggestion though.

  17. #17
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Four cascading data validation lists that can be used on multiple rows

    with that established - the attached file has the message box removed and works OK for me.
    Attached Files Attached Files

+ 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: 12
    Last Post: 11-07-2017, 10:30 AM
  2. Replies: 5
    Last Post: 10-11-2017, 07:27 PM
  3. [SOLVED] Creating dependent data validation lists in multiple rows
    By Renildrah in forum Excel General
    Replies: 3
    Last Post: 01-06-2017, 12:28 PM
  4. Cascading Dependent Validation Lists needs macro
    By HelpMeToExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2014, 02:25 AM
  5. Replies: 3
    Last Post: 07-28-2014, 03:16 PM
  6. [SOLVED] Cascading Validation Lists
    By lyla22 in forum Excel General
    Replies: 10
    Last Post: 07-21-2014, 02:30 PM
  7. Excel 2007 : Cascading Validation lists
    By ellsworth2000 in forum Excel General
    Replies: 7
    Last Post: 05-03-2011, 07:00 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