+ Reply to Thread
Results 1 to 8 of 8

Cascading Data Validated Dropdown Lists or Tables - help!!

  1. #1
    Registered User
    Join Date
    10-06-2021
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365
    Posts
    5

    Cascading Data Validated Dropdown Lists or Tables - help!!

    Hello team,

    I'm a newbie at the more complicated formulas and functions of Excel. I hope I can explain what I'm after.

    So I have a table of data which Column B contains a selection. When you select one of these options in Coumn B..Column C needs to reflect what matches the selection. Then when Column C is selected, Column D needs to refelct what options Column C alows.

    I'm also curious if there is a way to add a "+" button that can copy and insert a row underneath an existing row without having to right click copy, insert row, and paste. I want to make the user not worry about too many clicks etc. I'm not even sure that it is possible.

    I've atttached my file with my display tabe and my data tab.

    Thanks heaps if you can help.

    Regards

    Adam (Flightless Kiwi)
    Attached Files Attached Files
    Last edited by Flightless Kiwi; 10-06-2021 at 01:22 AM.

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

    Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Simple Userform with cascading comboboxes - self maintaining - there are no on-sheet formula to corrupt or expand.
    Simple VBA/macro driven - 3 click choices + save.
    Please, please do not use merged cells when data handling - they should never have been invented - designed by MS to bite the bum of the unwary.
    Attached Files Attached Files
    Torachan,

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

  3. #3
    Registered User
    Join Date
    10-06-2021
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365
    Posts
    5

    Thumbs up Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Thank you so much torachan

    Sorry yes I should have unmerged to cells. This should do the trick. I'll combine this with the rest of my worksheet.

    Regards

    Flightless Kiwi

  4. #4
    Registered User
    Join Date
    10-06-2021
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365
    Posts
    5

    Question Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Hello again,

    I'm so impressed with the button solution you provided.

    I just realised with my ever expanding worksheet that I needed to be able to insert the whole row. I got myself in a jam trying to copy & paste and move cells around.

    Is it possble that when you add those cells with the button, that I can populate the whole row with the cell format and formulas in my example (blue cells)?

    The data can still be left zero (ready for user entry). I don't knwo VBA - I tried to decipher the VBA in the module you supplied but I got lost...very quickly!

    Thanks again for your help.

    Regards

    Flightless Kiwi
    Attached Files Attached Files

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

    Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Try the attached - the sheet has a 'proper table' from row 2 down
    to expand the table just make your first entry in column 'A' in the first vacant row under the table.
    This is the beauty of 'proper tables' all your formula & data validation will dynamically expand with the table expansion.
    After the first step you can then select the 'hazard' entries and they will populate the new row.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-06-2021
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Wow - thanks torachan,

    I had no idea excel can do this type of functionality. I guess thats the power of knowing how to do VBA?? The worksheet works a treat.

    I don't suppose you know of any VBA for dummies tutorials you can advise?

    Once again - thanks you.

    Regards

    Flightless Kiwi

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

    Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    It can be difficult to recommend tutorial matter as we all have different levels of knowledge intake.
    I have been programming for over fifty years using many differing platforms and still have difficulty taking in certain methods especially those presented on 'YouTube'
    My preference is by 'Google' search - I find most queries can be answered if you construct your question logically.
    Developing an address book is a good starting point - first do some reading (on Google) use of tables - then label your headers (firstname,lastname,address etc., etc.,)
    then open up the VB editor and insert a userform - on to this place a label and textbox for each column - then four command buttons - Clear,Add,Update,Delete.
    These will cover the basics of an elementary pseudo database. On the attached there should be enough sample code to help you along.
    To overcome begineers pitfalls - always start your code - first line - 'Option Explicit' - this forces you to declare (Dim) your variables and will help highlight errors when debugging - debug at every stage this stops you having a mass of errors to troubleshoot at the end - simple syntax errors are sometimes the most frustrating - such as a missing full stop or comma - it is like opening 'Pandora's Box' the more you practice and read the more you will learn and develop.
    Happy coding
    Attached Files Attached Files
    Last edited by torachan; 10-09-2021 at 05:17 AM. Reason: forgot to attach file - due to old age

  8. #8
    Registered User
    Join Date
    10-06-2021
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365
    Posts
    5

    Smile Re: Cascading Data Validated Dropdown Lists or Tables - help!!

    Holy smoke!!! I was looing at your code lol. I have LOOONNNGGG way to go. I can understand parts of it but then get lost....I wouldn't know where to start from scratch.

    I have found a reasonable (so far - for me anyway) on line VBA for beginners, intermediate and advanced levels. The tutor is very clear with examples and sample files and code to do examples on ...and to debug.
    I'm working my way through teh beginner one.

    Again - thanks heaps for your advice and work on my example.

    Regards,

    Flightless Kiwi

+ 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. Depending Cascading Dropdown Lists with Wildcards
    By mkhk in forum Excel General
    Replies: 9
    Last Post: 01-05-2019, 07:39 AM
  2. Replies: 0
    Last Post: 04-13-2016, 08:21 PM
  3. [SOLVED] Data Validated Cells' Lists reduce but only in one column
    By batador in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2013, 04:00 PM
  4. [SOLVED] Cascading dropdown lists all tied to first dropdown
    By ruthl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2012, 08:03 PM
  5. auto update or resync values in data validated lists
    By gdallas in forum Excel General
    Replies: 10
    Last Post: 02-15-2010, 11:39 AM
  6. Cascading Dynamic Dropdown Lists
    By choop in forum Excel General
    Replies: 4
    Last Post: 06-14-2006, 12:30 PM
  7. How to validate data in already list dropdown validated.
    By Rao Ratan Singh in forum Excel General
    Replies: 2
    Last Post: 06-14-2005, 09:05 AM

Tags for this Thread

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