Excel의 AND 함수 (수식, 예) | Excel에서 AND 함수를 사용하는 방법

Excel의 AND 함수

Excel의 AND 함수는 논리 함수로 분류됩니다. TRUE 및 FALSE 인 두 값만 반환합니다. 이 AND in excel은 지정된 조건을 테스트하고 조건이 TRUE로 충족되면 TRUE를 반환하고 그렇지 않으면 FALSE를 반환합니다. 이 함수는 다른 Excel 함수와 함께 자주 사용되며 Excel에서는 워크 시트의 기능을 크게 확장 할 수 있습니다.

그리고 Excel의 수식

이 AND 공식은 다음과 같이 작성할 수도 있습니다.

AND (조건 1, [조건 2],…)

Excel의 AND 기능 설명

논리 1은 평가할 첫 번째 조건 또는 논리 값입니다.

논리 2는 선택적 인수이며 평가할 두 번째 조건 또는 논리 값입니다.

상황과 요구 사항에 따라 더 많은 논리식 (조건)을 테스트 할 수 있습니다.

Excel의 AND 함수는 모든 조건이 TRUE 인 경우 TRUE를 반환합니다. 조건이 FALSE이면 FALSE를 반환합니다.

모든 논리식이 TRUE (첫 번째 경우)로 평가되면 Excel의 AND 함수는 TRUE를 반환하고 논리식 중 하나가 FALSE (두 번째, 세 번째 및 네 번째 경우)로 평가되면 Excel의 AND는 FALSE를 반환합니다.

논리식 인수가 부울 논리 값 TRUE / FALSE 대신 숫자로 평가되는 경우 값 0은 FALSE로 처리되고 0이 아닌 값은 모두 TRUE로 처리됩니다.

Excel의 기능은 종종 IF, OR 및 기타 기능과 함께 사용됩니다.

Excel에서 AND 함수를 사용하는 방법

그리고 Excel의 기능은 매우 간단하고 사용하기 쉽습니다. 예제를 통해 Excel에서 AND 함수의 작동을 이해합시다.

여기에서이 AND Function Excel 템플릿을 다운로드 할 수 있습니다 – AND Function Excel 템플릿

AND in Excel 예제 # 1

10 명의 플레이어가 있으며 각각 3 개의 레벨을 모두 클리어해야 승자가됩니다. 즉, 플레이어가 레벨 1, 레벨 2 및 레벨 3을 클리어하면 자신의 레벨 중 하나라도 클리어하지 않으면 다른 레벨을 클리어해야합니다. 그녀는 실패 할 것이며 승자로 선언되지 않을 것입니다.

Excel에서 AND 함수를 사용하여 레벨 중 어느 것이 승자가 아닌지 명확하지 않은지 확인합니다. 따라서 E 열에 AND 공식을 적용하십시오. 

산출:

플레이어 2와 플레이어 10은 모든 레벨을 지웠으므로 모든 논리적 조건이 TRUE이므로 AND Excel 함수는 출력을 TRUE로 제공하고 나머지 세 가지 중 하나의 레벨이 지워지지 않으면 FALSE 및 AND로 평가 된 논리식을 제공합니다. Excel에서 FALSE 출력이 발생했습니다.

AND in Excel 예제 # 2

IF 함수와 함께 AND Excel 함수 사용

백분율이 표시된 학생 목록이 있으며 성적 기준이 아래 표에 나와있는 성적을 찾으려고합니다.

백분율이 90 %보다 크면 A +가되고 백분율이 90 % 이상 80 % 미만이면 A가됩니다. 마찬가지로 백분율을 기준으로 한 다른 학년도 실패하고 학생은 실패입니다. 백분율이 40 % 미만입니다. 

우리가 사용할 공식은

= 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”)))))))

우리는 학생의 성적을 계산하기 위해 여러 AND 엑셀 함수와 함께 Excel에서 중첩 IF를 사용했습니다.

IF 수식은 조건을 테스트하고 출력을 제공하며 TRUE이면 조건 ​​값에 대해 그렇지 않으면 FALSE이면 값을 반환합니다.

= if (논리 _ 테스트, [값 _if_TRUE], [값 _if_FALSE])

이 경우 첫 번째 논리 테스트는 B2> 90입니다 . 이것이 TRUE이면 Grade는 'A +'입니다. 쉼표 뒤의 명령문을 확인하면이 조건이 TRUE가 아니고 다시 다른 if 조건을 입력해야합니다. 비율이 80보다 큰 경우이다 (2 개) 시험 조건 이하의 비율 또는 그래서, 논리 문장은 90와 동일

B280

Since we have to test two conditions together we have used AND Excel function. So, 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. In the last IF statement it checks, percentage 40, hence 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 means using the AND in excel as an argument in the function itself. 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 Army for which there are 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 successfully 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 AND function in Excel to check if age is greater than or equal to 18 and less than 35 years.

We have used AND function in excel inside AND function to check the age criteria.

Output:

Three candidates passed all the selection criteria, Ralph, Alex and Scott. Hence, their eligibility computes out as TRUE using the AND function in Excel and for rest of the candidates FALSE. 

Limitation of AND Function in Excel

The AND function in Excel can test multiple conditions not exceeding more than 255 conditions. In Excel version 2003, the AND in excel could test up to 30 arguments, but in Excel version 2007 and later it can handle up to 255 arguments.

The AND function in excel returns #Value! Error if logical conditions are passed as a text or string.