Multiple IFS in Excel (Table of Contents)
Multiple IFS in Excel
The IF function in Excel is a logical function that compares logical values and returns a value based on whether the condition is TRUE or FALSE. To use multiple IF functions where we can add multiple logical tests, after the first logical condition and TRUE value, insert another IF Function followed by the different logical values to be compared with the TRUE value result. This allows us to use multiple IFs and any logical value comparison to get the TRUE and FALSE logical results.
Arguments
- Logical _test: This is a logical expression that can be either “TRUE” or “FALSE.”
- Value_if_true: This will return the value as TRUE if the specified condition is met.
- Value_if_false: This will return the value as FALSE if the specified condition is not met.
For example, if we have the formula as =IF(A2=2, “TRUE,” “FALSE”), which means that IF A2=2 if the function will return TRUE, or else it will return FALSE.
How to use IF Function in excel?
Multiple IFS in Excel is very simple and easy. Let’s understand Multiple IFS in Excel, which are as below.
Multiple IFS in Excel – Example #1
In excel, we can find the IF function categorized under the LOGICAL condition group in the FORMULAS menu, shown in the screenshot below.
Using the IF function in Excel
In this example, we will learn how to use the IF function by using a simple example. Consider the example below where we have students’ marks with the subject shown below.
Here we will use the IF condition to find out the student’s PASS or FAIL status by following the below steps.
- First, select cell E2.
- Apply the IF condition as mentioned below
- =IF(D2>C2,”PASS”,”FAIL”)
- Here we used the IF condition by checking if 20>100, then excel will return the status as “FAIL,” or else it will return “PASS.”
- Apply the formula and press enter to get the output as follows.
Result
Using Multiple IFS in excel with TEXT
We can use multiple IFS statements in excel to check two or more conditions at a time using the same IF condition syntax. In the below example, we will see how to apply multiple IFS.
Multiple IFS in Excel – Example #2
In this example, we will learn how to use the multiple IF function by using the simple example. Consider the example below where we have an Online Bus Ticket Booking System and need to know the booking status and whether all the seats are booked. We can use the Multiple IFS function to derive the output in such cases. The online booking status example is shown below.
We will use the Multiple IF function in the status column following the step-by-step procedure.
- First, select cell E4, which is nothing but the Status column.
- Now apply the Multiple IF function by checking the condition if TOTAL SEATS=SEATS SOLD, then we need to get the status as “BUS BOOKED,” or if TOTAL SEATS are less than SEATS SOLD, we need to get the status as “OVERBOOKED,” or else we will mention the status as “SPACE AVAILABLE.”
- We are going to apply the above condition by using Multiple IFS.
- First, insert the IF statement in E4
- Type the Opening bracket and select C4.
- Apply the condition as C4=D4 (TOTAL SEATS=SEATS SOLD); then, in the double quotes, type the text as” BUS BOOKED.”
- Insert a comma after that.
- Now insert another IF condition and open the brackets stating that by checking the condition as C5<D5 (TOTAL SEATS=SEATS SOLD), then in the double quotes, type the text as “OVERBOOKED, “or else we need to mention the status as “SPACE AVAILABLE.”
- Next, close the IF condition bracket for Multiple IFS.
- If we combine the above IF, we will get the Multiple IFS statement shown below.
- =IF(C5=D5, “BUS BOOKED,” IF(C5<D5, “OVERBOOKED,” “SPACE AVAILABLE”)), which is shown in the below screenshot.
- Once we apply the Multiple IFS, we will get the below output status shown below.
- In the above screenshot, we got the status as “SPACE AVAILABLE” because the IF condition will check for the first condition as IF 400=390; the first condition is not true, so excel will check for another IF condition as IF 400<390, then we have to display the status as “SPACE AVAILABLE” here the condition is TRUE so IF condition will display the status as “SPACE AVAILABLE.”
- Drag down the formula for all the cells so that we will get the below output result, which is shown below.
Result
Multiple IFS in Excel – Example #3
In this example, we will see how multiple IFS uses numeric value to display the status.
Using Multiple IFS using the numeric value
Consider the below example, which shows MRP and SELLING PRICE where we need to find out the closing FEE for Amazon; here, we will use the Multiple IFS to get the CLOSING FEE for both the MRP AND SELLING PRICE by following the below steps.
- First, select cell F3
- Apply the Multiple IF condition statement by checking the condition as if IF MRP is less than 250, mention the closing fee as zero or IF MRP is less than 500, mention the closing fee as five(5), or mention the closing fee as ten (10).
- Next, we need to apply the Multiple IF condition for the SELLING PRICE Closing Fee by checking the condition as IF the Selling Price is less than 250, we need to get the closing fee as Zero(0) or IF the Selling Price is less than 500 we need to get the closing fee as five (5) or else we need to get the closing fee as ten (10).
- We will apply the above two conditions by using the Multiple IFS in both columns.
- First, insert the IF statement in F3.
- Type the Opening bracket and select D3.
- Apply the condition as D3<250 MRP<250, then display the closing fee as Zero and Insert a comma after that.
- Now insert another IF condition and open the brackets stating that by checking the condition as D3<500, the display closing fee is 5 or else displays the closing fee as 10.
- Next, close the IF condition bracket for Multiple IFS.
- If we combine the above IF, we will get the Multiple IFS statement shown below.
- =IF (D3<250, 0, IF (D3<500, 5, 10)), which is shown in the below screenshot.
- Once we apply the Multiple IFS, we will get the below output status shown below.
- In the above screenshot, we got the closing fee for MRP as 10; how? Because the first IF condition will check for the first condition as IF 500<250, we will get the closing fee as Zero here, the condition is TRUE, and excel will check for the another IF condition, which states that IF MRP<500, we will get the closing fee as five or else IF condition displays the closing fee as 10.
- In this example, MRP is 500, which checks the condition as 500<500; here, it’s more or less equal to the condition so that the IF condition will display the closing fee as 10.
- Apply another Multiple IF for Selling Price Closing Fee as =IF(E3<250,0, IF(E3<500,5,10))
- Drag down the formula for all the cells to get the result below.
Result
Things to Remember About the Multiple IFS in Excel
- When we use a string in excel, Multiple IFS makes sure that we always enter the text in double quotes, or else the statement will throw the error as #NAME?
- While using Multiple IFS, make sure that we have closed multiple opening and closing parenthesis, or else we will get the error alert stating that the formula applied is wrong.
Recommended Articles
This has been a guide to Multiple IFS in Excel. Here we discuss using Multiple IFS in Excel, practical examples, and a downloadable excel template. You can also go through our other suggested articles –
23 Online Courses | 9 Hands-on Projects | 110+ Hours | Verifiable Certificate of Completion
4.9
View Course
Related Courses