EN-functie in Excel
EN-functie in Excel is gecategoriseerd als een logische functie; het retourneert alleen twee waarden die TRUE en FALSE zijn. Deze EN in Excel test de opgegeven voorwaarde en retourneert WAAR, als aan de voorwaarden wordt voldaan als WAAR, anders wordt ONWAAR geretourneerd. Deze functie wordt vaak gebruikt met andere Excel-functies, EN in Excel kan de mogelijkheden van het werkblad aanzienlijk vergroten.

En formule in Excel

EN-formule wordt geschreven als
AND (voorwaarde1, (voorwaarde2), …)
Uitleg van AND-functie in Excel
logisch 1 is de eerste voorwaarde of de logische waarde die moet worden geëvalueerd
logisch 2 is het optionele argument, is de tweede voorwaarde of logische waarde om te evalueren
Er kunnen meer logische uitdrukkingen (voorwaarden) zijn om te testen, afhankelijk van de situaties en vereisten.
EN-functie in Excel retourneert WAAR als alle voorwaarden WAAR zijn. Het retourneert FALSE als een van de voorwaarden FALSE is.

Als alle logische expressies TRUE opleveren (eerste geval), retourneert de EN-functie in Excel TRUE. Als een van de logische uitdrukkingen resulteert in FALSE (tweede, derde en vierde hoofdletter), retourneert AND in Excel FALSE.
Als het argument van de logische uitdrukking getallen evalueert, wordt in plaats van de Booleaanse logische waarde TRUE / FALSE de waarde nul behandeld als FALSE en alle niet-nul waarden als TRUE.

En een functie in Excel wordt vaak gebruikt met functies zoals IF, OR en andere functies.
Hoe de AND-functie in Excel te gebruiken
EN-functie in Excel is eenvoudig en gemakkelijk te gebruiken. Laten we de werking van AND-functie in Excel begrijpen met voorbeelden.
EN in Excel Voorbeeld # 1
Er zijn tien spelers, en elk moet alle 3 de niveaus voltooien om een winnaar te zijn; dat wil zeggen, als de speler niveau 1, niveau 2 en niveau 3 wist, zal hij / zij een winnaar zijn, anders zal hij / zij niet slagen in een van de niveaus, zal hij / zij niet slagen en zal hij / zij niet als winnaar worden verklaard.

We zullen de EN-functie op Excel gebruiken om te controleren of een van de niveaus niet duidelijk is. Hij / zij is dan geen winnaar. Dus, het toepassen van de EN-formule in de E-kolom.
Uitgang:
Speler 2 en speler 10 hebben alle niveaus gehaald. Daarom zijn alle logische voorwaarden WAAR. Daarom gaven de AND Excel-functies de uitvoer WAAR. Voor de rest, als een van de drie niveaus niet werd gewist, werd de logische uitdrukking geëvalueerd als FALSE, en de AND in Excel resulteerde in FALSE-uitvoer.

EN in Excel Voorbeeld # 2
AND Excel-functie gebruiken met ALS-functie
Er is een lijst met studenten met hun percentages, en we willen de cijfers weten, waarbij de cijfercriteria hieronder in de tabel worden weergegeven:
Als het percentage groter is dan 90%, dan is het cijfer A + als het percentage groter is dan of gelijk is aan 80% en kleiner dan 90%, dan is het cijfer A, en evenzo andere cijfers op basis van percentage en indien een student is Fail, het percentage is minder dan 40%.

De formule die we zullen gebruiken is
=IF(B2>90,”A+”,IF(AND(B280),”A”,IF(AND(B275),”B+”,IF(AND(B270),”B”,IF(AND(B260),”C+”,IF(AND(B250),”C”,IF(AND(B240),”D”,”FAIL”)))))))
We have used Nested IF’s in excel with multiple AND excel functions to compute the Grade of the student.
IF formula tests the condition and gives the output as TRUE if the condition matches else return FALSE.
=if(logical_test, (value_if_TRUE),(value_if_FALSE))
The first logical test, in this case, is B2>90, if this is TRUE, then the grade is ‘A+’ if this condition is not TRUE if checks for the statement after the comma and it again entered another if condition, in which we have to test 2 conditions that are if the percentage is greater than 80 and less than or equal to 90 so, logical statements are
B280
Since we have to test two conditions together, we have used the AND Excel function. If B280, is TRUE, the grade will be ‘A,’ if this condition is not TRUE, IF checks for the statement after the comma, and it again enters another IF condition and will continue to check each statement till the last bracket closes. The last IF statement checks, percentage 40, hence the last IF statement evaluates Grade ‘D’ else evaluate ‘FAIL.’

AND in Excel Example #3
Using AND excel function with IF function
There is a list of employees and the sale amount in Column B; on the basis of their sale amount, the incentives are allotted to each employee. Sale incentive criteria are

We need to calculate the incentive of each employee based on his performance for cracking the sale base on the criteria mentioned above in the table

Roman made a sale of $3000, he will receive an incentive amount of $400, and David and Tom were not able to even crack $1000 sale, the bare minimum sale criteria for an incentive. Hence they will not get any incentive.
Formula that we will use is
=IF(AND(B2>=3000),400,IF(AND(B2>=2000,B2=1500,B2=1000,B2<1500),100,0))))
We have again used Nested IF in excel conditions with multiple AND excel function testing the all the logical conditions together in the formula above to compute the sale incentive of the employee based on the sale amount that he/she made.


David and Tom were not able to meet the incentive criteria; hence their incentive amount is $0.
Nesting of AND Function in Excel
Nesting functions in Excel refer to using one function inside another function. Excel allows you to nest up to 64 levels of functions.
AND in Excel Example #4
There is a list of candidates who appeared for posting in the Army for certain selection conditions.
Eligibility Criteria: Age has to be greater than or equal to 18, but less than 35 years with a height greater than 167 cms, eyesight has to be normal and has completed the long-run task

Here, we will be using the Nested AND in Excel to check the eligibility criteria.
Formula that we will use is
=AND(B2=”Normal”,C2>167,D2=”Successful”,AND(E2>=18,E2<35))
As you can see we have, used multiple logical conditions to check if they evaluate to be TRUE, and for age, we have again used the AND function in Excel to check if age is greater than or equal to 18 and less than 35 years.
We have used the AND function in excel inside the AND function to check the age criteria.
Output:
Drie kandidaten voldeden aan alle selectiecriteria: Ralph, Alex en Scott. Daarom wordt hun geschiktheid berekend als WAAR met behulp van de EN-functie in Excel en voor de rest van de kandidaten, ONWAAR.

Beperking van EN-functie in Excel
De EN-functie in Excel kan meerdere condities testen, niet meer dan 255 condities. In Excel-versie 2003 kon de AND in Excel maximaal 30 argumenten testen, maar in Excel-versie 2007 en later kan het 255 argumenten verwerken.
De AND-functie in Excel retourneert #Value! Fout als logische voorwaarden worden doorgegeven als tekst of tekenreeks.
