+ Reply to Thread
Results 1 to 9 of 9

delete value of dependant list automatically when "mother-list" gets manually deleted.

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    5

    delete value of dependant list automatically when "mother-list" gets manually deleted.

    Hi,

    Iīm currently working with 3 dropdown lists depending on each other using data validation and =indirect(). I arranged them like in a top-down approach where you have a mother-list and child-lists (categories-->subCategories-->subCategoryCriteria). The user should easily chose first a category then a subCategory etc... This part works perfectly

    My question is: when a user chose in the dropdown list e.g. a category, a subCategory and a subCategoryCriteria and he now maually deletes the value in the highest level, which is the Category (mother-list), all sub level values like subCategory and subCategoryCriteria will stay. It shouldnīt be that way, because itīs not logical. If you turn a tree upside-down (top-down approach) and cut one of the higher positioned trunks, all lower positioned trunks will fall off as well, right? So, my question is: can I use a conditional formatting or a formular to delete or fade out the value in the lower lists when the higher list value is being deleted?

    I tried to use If-formulars in combination with indirect in data validation, like =IF(A1="";("");INDIRECT(B1))...just and example.

    Would be great if there would be a solution without using VB. As I said before - the value doesnt need to be deleted, it could also be automatically face out like white on white or something. Itīs just confusing for the user if he deletes the highest choice and the lower choices still stay.

    You know, K.I.S.S. - keep it simple stupid ;-)

    Thanks in advance,
    C

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    ...So, my question is: can I use a conditional formatting or a formular to delete or fade out the value in the lower lists
    A simple way could be in CF rules something like this.

    =$A1="" Choose font color white(if your pattern color is white)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    Unfortunately thatīs not working for me.

    category, activity and metric are the different dropdown lists. You go from left to right. If I would maually delete Consumer Advertising now, OOH and Impression would stay. Column J and E are references to the data. the =indirect formular is referencing to them. So if i would delete consumer advertising now maually, OOH and Impression would stay.

    Picture1.png
    Last edited by CHM; 02-08-2013 at 09:30 AM.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    I just used a small exmple and worked.

    Your picture is nice but we can not work on it. If you upload a small workbook maybe will be easier to find a solution.

  5. #5
    Registered User
    Join Date
    02-08-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    Attached youīll find a small cut-out of the workbook. Please note that the third and lowest criteria "metric" has not been completely filled yet. Only the first 2 categories will return any values there.

    TEST.xlsx

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    What i mean is this.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-08-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    Itīs actually working now, thanks. BUT: letīs pretend someone is first chosing all criterias and then deletes the highest criteria which is category. The lower criterias will fade out since we applied CF, but if he choses another category now, the old criterias will fade in again instead of staying faded or just blank.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    I have no suggestion for this. Sorry.

  9. #9
    Registered User
    Join Date
    02-08-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: delete value of dependant list automatically when "mother-list" gets manually deleted.

    Anybody else an idea how to fix this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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