To perform complicated and powerful data analysis, you need to test various conditions at a single point in time.
The data analysis might require logical tests also within these multiple conditions.
For this, you need to perform Excel if statement with multiple conditions or ranges that include various If functions in a single formula.
Those who use Excel daily are well versed with Excel If statement as it is one of the most-used formulas.
Here you can check various Excel If Or statement, Nested If, AND function, Excel IF statements, and how to use them. We have also provided a VIDEO TUTORIAL for different If Statements.
Table of Contents
There are various If statements available in Excel. You have to know which of the Excel If you will work at what condition.
Here you can check multiple conditions where you can use Excel If statement.
If you want to test a condition to get two outcomes then you can use this Excel If statement.
=If(Marks>=40, “Pass”)
Let’s take an example that met the below-mentioned condition
Then to test the condition the syntax of the formula becomes,
=If(B53) Excel If with Logical Test
There are 2 different types of conditions AND and OR. You can use the IF statement in excel between two values in both these conditions to perform the logical test.
AND Function: If you are performing the logical test based on AND function, then excel will give you TRUE as an outcome in every condition else it will return false.
OR Function: If you are using OR condition for the logical test, then excel will give you an outcome as TRUE if any of the situations match else it returns false.
For this, multiple testing is to be done using AND and OR function, you should gain expertise in using either or both of these with IF statement. Here we have used if the function with 3 conditions.
How to apply IF & AND function in Excel
To use If and Or statement excel, you need to apply a similar formula as you have applied for If & And with the only difference is that if any of the condition is true then it will show you True.
To apply the formula, you have to follow the above process. The formula is =IF((OR(D2>=20, E2>=60)), “Pass”, “Fail”). If the score is equal or greater than 20 for column D or the second score is equal or greater than 60 then the person is the pass.
If you want to test data based on several multiple conditions then you have to apply both And & Or functions at a single point in time. For example,
Situation 1: If column D>=20 and column E>=60
Situation 2: If column D>=15 and column E>=60
If any of the situations met, then the candidate is passed, else failed. The formula is
=IF(OR(AND(D2>=20, E2>=60), AND(D2>=20, E2>=60)), “Pass”, “Fail”).
Above we have learned how to use excel if statement multiple conditions range with And/Or functions. Now we will be going to learn Excel If Statement with other excel functions.
Let’s take an example where we want to calculate the performance of any student with Poor, Satisfactory, and Good.
If the data set has a predefined structure that will not allow any of the modifications. Then you can add values with this If formula:
=If((A2+B2)>=50, “Good”, If((A2+B2)=>30, “Satisfactory”, “Poor”))
Using the Sum function,
=If(Sum(A2:B2)>=120, “Good”, If(Sum(A2:B2)>=100, “Satisfactory”, “Poor”))
Using the Average function,
=If(Average(A2:B2)>=40, “Good”, If(Average(A2:B2)>=25, “Satisfactory”, “Poor”))
Using Max/Min,
If you want to find out the highest scores, using the Max function. You can also find the lowest scores using the Min function.
=If(C2=Max($C$2:$C$10), “Best result”, “ “)
You can also find the lowest scores using the Min function.
=If(C2=Min($C$2:$C$10), “Worst result”, “ “)
If we combine both these formulas together, then we get
=If(C2=Max($C$2:$C$10), “Best result”, If(C2=Min($C$2:$C$10), “Worst result”, “ “))
You can also call it as nested if functions with other excel functions. To get a result, you can use these if functions with various different functions that are used in excel.
So there are four different ways and types of excel if statements, that you can use according to the situation or condition. Start using it today.
So this is all about Excel If statement multiple conditions ranges, you can also check how to add bullets in excel in our next post.
I hope you found this tutorial useful
You may also like the following Excel tutorials:
I am a huge fan of Microsoft Excel and love sharing my knowledge through articles and tutorials. I work as a business analyst and use Microsoft Excel extensively in my daily tasks. My aim is to help you unleash the full potential of Excel and become a data-slaying wizard yourself.
Hi, I have multiple functions want to apply, unfortunately it doesn’t work I don’t know why, please see below and advise where is the error: =(IF(AND(E17=3,AU4=”Single”),AX39,AX42)),(IF(AND(E17=3,AU4=”Double”),AX40,AX43)),(IF(AND(E17=3,AU4=”Triple”),AX41,AX44)) Reply
You are using the wrong IF construct. It should be =IF(Condition_to_check,Value_If_True,Value_if_false). In your example, you have used IF(AND(E17=3,AU4=”Single”),AX39,AX42), which is fine. But then you have a comma and then the next IF condition. That won’t work. To create nested IF, it should be like =IF(AND(E17=3,AU4=”Single”),AX39,IF(AND(E17=3,AU4=”Double”),AX40,AX43)) Reply
Rand Concepcionif I want to score age groups, how would you do it:
Age Score
18-64 1
65-74 2
75+ 3
>85 4
what would be the formula please. Thanks in advance. Reply
I want to get information from chart:
=IF(AND(B=Sally,I=Spreadsheets)=SUM(G2:G414))
In other words, I want a sum of the money column if [a certain person] and if [a certain task]. I’m not getting a result or a comment. Thanks! Reply
MOST POPULAR ARTICLES