+ Reply to Thread
Results 1 to 4 of 4

Need data val. dependent dropdowns that recalculate/reset when initial dropdown changes.

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1

    Thumbs up Need data val. dependent dropdowns that recalculate/reset when initial dropdown changes.

    Hello,

    I've made simple dependent dropdowns using data validation and named ranges.

    The problem I have is that once the dependent dropdown is chosen, it is possible to then go back to the first dropdown and choose whatever you want, leaving the dependent dropdown unchanged.

    For example, in the attached workbook, one can choose 'Berries' as a fruit, which will allow them to choose 'Black' as a colour. If they were then to change the fruit to 'Bananas', I would need the colour to not remain as 'Black'.

    Is there a solution (not using developer tools)?

    Jason
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need data val. dependent dropdowns that recalculate/reset when initial dropdown change

    This does not prevent it from happening, but the user is made aware.

    One option
    - warn the user that the combination is invalid with conditional formatting in either (or both cells)
    - conditional formatting formula:
    =COUNTIF(INDIRECT($A$11),$B$11)=0

    Another option
    - warn the user with a formula in an adjacent cell:
    =IF(COUNTIF(INDIRECT(A11),B11)=0,"INVALID","")
    Last edited by kev_; 03-13-2018 at 07:33 AM.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need data val. dependent dropdowns that recalculate/reset when initial dropdown change

    Again - this does not prevent the invalid combination, but it's a different way to handle it.


    Use data validation on another cell to prevent the user moving forward
    In cell A13 data validation formula
    =COUNTIF(INDIRECT(A11),B11)=1

    See attached workbook (which also contains both post#2 options)
    - any value can be placed in A13 but ONLY if there is a valid combination in A11/B11

    .
    Combo Invalid.jpg
    Attached Files Attached Files
    Last edited by kev_; 03-13-2018 at 07:35 AM.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need data val. dependent dropdowns that recalculate/reset when initial dropdown change

    You asked for a non-VBA solution but others may be interested in a simple option

    This clears the values in both cells when A11 is selected

    Place in sheet module:
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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] Dependent dropdown validation - dependent data is string
    By jnewby in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 07:50 PM
  2. Pivot table, reset dropdowns to all
    By SLJswamp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2013, 10:49 AM
  3. [SOLVED] Dependent Dropdowns, clearing dependent value when parent value changes
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 01:52 PM
  4. Need a Macro to Reset Dependent Data Validation.
    By pavan5183 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 08:23 AM
  5. [SOLVED] Dependent Drop Down Lists, Data Validation, Reset Dependents
    By daxlyon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 11:15 AM
  6. Reset Dependent Dropdown List if Change Occurs
    By zdg8188 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2013, 08:55 AM
  7. Reset Dependent Data Validation selections without macros?
    By Eric09 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2012, 07:52 AM
  8. Replies: 4
    Last Post: 03-20-2011, 05:52 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