2.2) Logical Functions in excel || IF, AND, OR, NOT, IFERROR, IFS functions in excel

Logical functions in Excel are crucial for decision-making and data analysis. Here are some commonly used and important logical functions:


1) IF: Performs a specified action based on a logical test.

Example: =IF(B2>35, "Pass", "Fail") returns "Pass" if B2 is greater than 35, otherwise, it returns "Fail".


2) AND: Returns TRUE if all conditions are met.

Example: =AND(B2>35, C2>35) returns 'TRUE' if both conditions are satisfied.


3) OR: Returns TRUE if at least one condition is met.

Example: =OR(A1>5, B1<10) returns TRUE if either condition is true.



4) NOT: Reverses the logical value of a statement.

Example: =NOT(B2>35) returns TRUE if B2 is not greater than 35.


5) IFERROR: Returns a value if a formula results in an error, and a different value if there's no error.

Example: =IFERROR(B2/C2, "Error") returns "Error" if there's a division by zero error.


6) IFS: Checks multiple conditions and returns a value corresponding to the first true condition.

Example: =IFS(A1>10, "High", A1>5, "Medium", TRUE, "Low") returns "High" if A1 is greater than 10, "Medium" if A1 is greater than 5, and "Low" otherwise.


These logical functions are essential for creating decision-based formulas and conducting various types of data analysis. They play a crucial role in automating tasks and making informed decisions in our day-to-day use of Excel. 

No comments:

Post a Comment