+ Reply to Thread
Results 1 to 5 of 5

Afhankelijke validatielijst

  1. #1
    Registered User
    Join Date
    05-18-2023
    Location
    Limburg, Nederland
    MS-Off Ver
    2021
    Posts
    3

    Afhankelijke validatielijst

    Voor een rooster manier die regelmatig veranderd ben ik opzoek naar een afhankelijke validatielijst. In de bijlagen een voorbeeld van de stappen die in het daadwerkelijke bestand genomen worden. Bij "Invoer" worden gegevens ingevuld. Alle grijsgekleurde vakken worden automatisch berekend.
    Bij input wordt de naam van de medewerker ingevoerd. De dienst kan worden geselecteerd en op basis hiervan zou onder het kopje "locatie" een validatielijst moeten komen van de samengevoegde waarden die overeenkomen met die betreffende dienst.
    Tot slot komt er een validatielijst met mogelijke klanten op basis van die betreffende locatie en dienst. Hieronder een voorbeeld van een ingekorte versie.

    VB. afhankelijke gegevensvalidatie.xlsx

    In het daadwerkelijke bestand zijn er veel verschillende voorwaarden en lijsten met een max van 100 regels. De volgende werkende formules staan in het bestand (zodat de functie duidelijk is):

    =ALS.VOORWAARDEN(K17='Beslisboom Validatie'!C13;UNIEK('Beslisboom Validatie'!C14:C112);K17='Beslisboom Validatie'!D13;UNIEK('Beslisboom Validatie'!D14:D112);K17='Beslisboom Validatie'!E13;UNIEK('Beslisboom Validatie'!E14:E112);K17='Beslisboom Validatie'!F13;UNIEK('Beslisboom Validatie'!F14:F112);K17='Beslisboom Validatie'!G13;UNIEK('Beslisboom Validatie'!G14:G112);K17='Beslisboom Validatie'!H13;UNIEK('Beslisboom Validatie'!H14:H18);K17='Beslisboom Validatie'!I13;UNIEK('Beslisboom Validatie'!I14:I18);K17='Beslisboom Validatie'!J13;UNIEK('Beslisboom Validatie'!J14:J18);K17='Beslisboom Validatie'!K13;UNIEK('Beslisboom Validatie'!K14:K16))

    en de ingekorte versie

    =UNIEK(FILTER('Beslisboom Validatie'!C14:K112;'Beslisboom Validatie'!C13:K13=Personeel!K17))

    Het is echter zo dat de onderste formule niet voor een gegevensvalidatielijst gebruikt kan worden. De bovenste formule is te lang om te gebruiken voor een gegevensvalidatielijst.
    Is er iemand die een manier weet om dit geheel werkend te krijgen?
    Last edited by Jarick; 05-18-2023 at 08:00 AM.

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

    Re: Afhankelijke validatielijst

    Welcome to the forum.

    UNIQUE and FILTER were new in Excel 2021, so you cannot have Excel 2019 - please update your profile.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    05-18-2023
    Location
    Limburg, Nederland
    MS-Off Ver
    2021
    Posts
    3

    Re: Afhankelijke validatielijst

    Thanks for the heads-up. I've updated the profile and the post

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Afhankelijke validatielijst

    Did you attach the correct file? The formula does not tally with the sample file.

    What do you expect to see? Where do you expect to see it?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    05-18-2023
    Location
    Limburg, Nederland
    MS-Off Ver
    2021
    Posts
    3

    Re: Afhankelijke validatielijst

    The validation needs to be placed in range E3:F5. Cells E3:E5 will have a validation with data from the range C16:G20, and the data shown in the list will depend on the values selected in D3:D5.
    In cells F3:F5, there will be another validation list depending on the value selected in E3:E5. This validation list will display data from the range C8:I13.

    Please note that the formulas in the post are not provided in this document, as the document itself is too large to be shared. However, the formulas provided give an idea of the functionality that needs to be achieved.

+ 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