Ga naar hoofdinhoud

 Hoe kan ik meerdere gegevensvalidatie toepassen in één cel in het Excel-werkblad?

In een Excel-werkblad kan het toepassen van één gegevensvalidatie op een cel voor ons gebruikelijk zijn, maar heeft u ooit geprobeerd om meerdere gegevensvalidatie in één cel te gebruiken? In dit artikel zal ik het hebben over enkele verschillende voorbeelden voor het oplossen van deze taak in Excel.

Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 1)

Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 2)

Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 3)


Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 1)

Ik wil bijvoorbeeld gegevensvalidatie instellen voor cellen met deze criteria: als een getal wordt ingevoerd, moet dit kleiner zijn dan 100, als er tekst wordt ingevoerd, moet het in de lijst van D2 tot D7 staan ​​zoals in het volgende screenshot:

1. Selecteer de cellen waarop u meerdere gegevensvalidatie wilt toepassen en klik op Data > Data Validation > Data Validation, zie screenshot:

2. In de Data Validation dialoogvenster onder het Instellingen tabblad, voer de volgende bewerkingen uit:

(1.) Kies Eigen van het Allow keuzelijst;

(2.) Voer deze formule in: =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) in de Formule tekstvak.

Note: In de bovenstaande formule, A2 is de cel waarop u de gegevensvalidatie wilt toepassen, C2 en D2: D7 zijn de criteria waarop u de gegevensvalidatie moet toepassen op basis van.

3. Dan klikken OK, vanaf nu kunnen alleen de waarden die overeenkomen met de criteria in de cellen worden ingevoerd, zo niet, dan verschijnt er een waarschuwingsvenster om u eraan te herinneren, zie screenshot:


Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 2)

In dit voorbeeld zal ik alleen de tekst "Kutools for Excel" toestaan ​​of de datum tussen 12-1-2017 en 12-31-2017 kan in de specifieke cellen worden ingevoerd zoals onderstaand screenshot. Ga als volgt te werk om deze taak op te lossen:

1. Naar de Data Validation dialoogvenster en voer in het dialoogvenster de volgende bewerkingen uit:

(1.) Klik Instellingen tab;

(2.) Selecteer Eigen optie van de Allow keuzelijst;

(3.) Typ deze formule: =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) in de Formule tekstvak.

Note: In de bovenstaande formule, A2 is de cel waarop u de gegevensvalidatie wilt toepassen, C2, 2017,12,1 en 2017,12,31 zijn de criteria waarop u de gegevensvalidatie moet toepassen op basis van.

2. Dan klikken OK knop, nu kunnen alleen de waarden die overeenkomen met de criteria worden toegestaan ​​om in te typen, andere zullen worden beperkt zoals in de volgende schermafbeelding:


Pas meerdere gegevensvalidatie toe in één cel (voorbeeld 3)

Het derde voorbeeld, ik wil dat de tekstreeks moet worden gestart met "KTE" of "www", en als deze begint met "KTE", kunnen slechts 6 tekens worden toegestaan; als het begint met "www", kunnen slechts 10 tekens worden toegestaan, zie screenshot:

De volgende formule in de gegevensvalidatie kan u helpen hiermee om te gaan.

1. Ga naar de Data Validation dialoogvenster, voer in het dialoogvenster de volgende bewerkingen uit:

(1.) Klik Instellingen tab;

(2.) Selecteer Eigen optie van de Allow keuzelijst;

(3.) Typ deze formule: =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) in de Formule tekstvak.

Note: In de bovenstaande formule, A2 is de cel waarop u de gegevensvalidatie wilt toepassen, en u kunt de criteria in de formule wijzigen in uw eigen criteria.

2. Dan klikken OK knop, en nu mogen alleen de tekstwaarden die overeenkomen met de door u opgegeven criteria worden ingevoerd, zie screenshot:

Note: Mogelijk zijn er andere verschillende gegevensvalidatiecriteria die moeten worden toegepast, u kunt uw eigen formules maken voor verschillende criteria zoals u wilt.

Beste Office-productiviteitstools

🤖 Kutools AI-assistent: Een revolutie teweegbrengen in de data-analyse op basis van: Intelligente uitvoering   |  Genereer code  |  Aangepaste formules maken  |  Analyseer gegevens en genereer grafieken  |  Roep Kutools-functies aan...
Populaire functies: Zoek, markeer of identificeer duplicaten   |  Verwijder lege rijen   |  Combineer kolommen of cellen zonder gegevens te verliezen   |   Ronde zonder formule ...
Super opzoeken: Meerdere criteria VLookup    VLookup met meerdere waarden  |   VOpzoeken over meerdere bladen   |   Fuzzy opzoeken ....
Geavanceerde vervolgkeuzelijst: Maak snel een vervolgkeuzelijst   |  Afhankelijke vervolgkeuzelijst   |  Multi-select vervolgkeuzelijst ....
Kolom Beheerder: Voeg een specifiek aantal kolommen toe  |  Kolommen verplaatsen  |  Schakel de zichtbaarheidsstatus van verborgen kolommen in  |  Vergelijk bereiken en kolommen ...
Uitgelichte functies: Raster focus   |  Ontwerpweergave   |   Grote formulebalk    Werkmap- en bladbeheer   |  resource Library (Auto-tekst)   |  Datumkiezer   |  Combineer werkbladen   |  Cellen coderen/decoderen    Stuur e-mails per lijst   |  Super filter   |   Speciaal filter (filter vet/cursief/doorhalen...) ...
Top 15 gereedschapsets12 Tekst Tools (toe te voegen tekst, Tekens verwijderen, ...)   |   50+ tabel Types (Gantt Chart, ...)   |   40+ Praktisch Formules (Bereken leeftijd op basis van verjaardag, ...)   |   19 Invoeging Tools (QR-code invoegen, Afbeelding invoegen vanaf pad, ...)   |   12 Camper ombouw Tools (Getallen naar woorden, Currency Conversion, ...)   |   7 Samenvoegen en splitsen Tools (Geavanceerd Combineer rijen, Gespleten cellen, ...)   |   ... en meer

Geef uw Excel-vaardigheden een boost met Kutools voor Excel en ervaar efficiëntie als nooit tevoren. Kutools voor Excel biedt meer dan 300 geavanceerde functies om de productiviteit te verhogen en tijd te besparen.  Klik hier om de functie te krijgen die u het meest nodig heeft...

Omschrijving


Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert honderden muisklikken voor u elke dag!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,
I am capturing department (10 departments), rating (5,4,3,2 & 1)and reward type criteria (X, Y and Z) of which i calculate the overall callibration based on certain %. Eg. i have 10 departments having each department 15-20 employees. Now i need a formula wherein in the table against the particular department, lets say department1 to populate the % of employees (only with rating 5 and criteria X) against the total employee of (criteria X and Z).
This comment was minimized by the moderator on the site
I have data in two different columns and i have to apply this with two different criteria. For example, first criteria shows result if a particular cell contains a text "Highlighter" and second criteria show when the cell contain text "Pointer".
Highlighter test results are different than the pointer results and we make separate validation of both data. Is this possible to extract the validation of each criteria in a single cell with no overlapping?
This comment was minimized by the moderator on the site
Hey I want a parent child relationship sort of multiple drop down lists.
For example, if in column one some selects 'a' among the list of a, b & c
Then in the second column the child category of 'a' which is x, y & z should appear
How can that be done?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Team, I failed to build example no.1. I copied and pasted the formula:  =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) and failed. Where is the bug ? Can you please assist ? THX a lot.
This comment was minimized by the moderator on the site
Hello Frank,
Glad to help. The reason why the data validation failed is that you probably didn't choose the data validation cell range. Please select the cell range first (say A2:A10), then click Data > Data Validation > Data Validation to input the formula =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1). Please see the screenshots I uploaded here. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
How can I apply a data validation to multiple columns?
This comment was minimized by the moderator on the site
Hello Fabian,To apple a data validation to multiple columns, the trick is almost identical to the ways we mentioned above. The most important thing is that you select the columns first, then you can set up the rules in the Data Validation dialog box. Plesase have a try. Any question, please feel free to contact us. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
i am confuse
This comment was minimized by the moderator on the site
Hi,
I need to validate multiple columns before entering a value into cell. please find my requirement below,
I have 3 columns for example,

A1-Total Credit limit (Mandatory field)
Should have a minimum amount of 100 and multiples of 100:
=AND(ISNUMBER(A1),A1>=100, MOD(A1,100)=0) - Solved!
B1- Weekly Credit limit (Optional filed)
User should be able to input a value only when A1 is filled, Should not be greater than A1, Minimum amount 100 and multiples of 100
=AND(A1<>"",ISNUMBER(B1),B1<=A1, MOD(B1,100=0) - Solved!
C1-Daily Credit limit (Optional field)
User should be able to input a value only when A1 is filled, Should not be greater than A1&B1, Minimum amount 100 and multiples of 100

I need to add following validation, Please Help
I have to check if A1 is filled or not, then C1 shouldn't be greater than A1 and C1 min value should be 100 and multiples of 100 - I have answer to this
How can add a validation on B1 because B1 is optional it can have value and cannot. so if there's a value I have to make sure C1 is not greater than B1 else ignore B1?

How can i have this in data validation?

Thanks once again for the help
This comment was minimized by the moderator on the site
how can I add another Data validation function with this list function. for example I added a list of "yes" and "no". but I also want to add an OR function to this so that if "yes" is selected in one column then others only have to be "no".
This comment was minimized by the moderator on the site
Is it possible to apply data validation on the calcuated column attribute?
This comment was minimized by the moderator on the site
i'm looking for the ability to have a data validation which allows the user to select multiple choices. I.e. the list pops up and user can select Apple, grape, and/or banana. If they select all three, it shows in cell as: "apple, grade, banana". if only 1: "grape" etc... any ideas?
This comment was minimized by the moderator on the site
Hello, jeffe,
Maybe the below article can help you to deal with your problem, please check it:
https://www.extendoffice.com/documents/excel/2448-excel-drop-down-list-multiple-selection.html
This comment was minimized by the moderator on the site
Any idea how to have multiple data validation and a drop down. Drop down uses "List" and this example uses "Custom". Basically if the correct data is present in another column, I want the drop down to be able to be selected to input data. Otherwise if the dropdown is selected the error message appears.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations