×

Excel Nested IF’s Function

Excel Nested IF’s Function

This function in excel helps in checking multiple conditions together by using IF conditions within the IF condition.

Syntax

if(Logical_Test, [value_if_true], if(Logical_Test, 
[value_if_true]

, [value_if_false]))

Parameter

Logical_Test (required)- This parameter represents the condition which you want to check (greater than, less than or equal to signs can be used for numbers). When you want to evaluate a condition based on text value, then use double quotes ('') with equal to signs.

value_if_true (optional)- This parameter represents the logical test value, and if it holds the value, then excel will return this value.

value_if_false (optional)- If the logical test does not hold, then excel will return this value.

Nested IF – It represents the various if conditions. From Excel 2007 onwards, we can use 64 IF conditions in one formula.

Category

Logical

Return

The function returns one value if the condition is TRUE and another value if it's FALSE.

Example 1

Objective: Return result of students based on the Criterion given on the right side

Criteria Status
0 – 99 Fail
100 – 150 Pass
150+ Excellent
Name Final Score Result Formula Text
Thomas E. Edison 143 Pass =IF(C178>150,"Excellent",IF(C178<99,"Fail","Pass"))
Shoaib Aktar 91 Fail =IF(C179>150,"Excellent",IF(C179<99,"Fail","Pass"))
Gerard Das 107 Pass =IF(C180>150,"Excellent",IF(C180<99,"Fail","Pass"))
Itrat Sheen 150 Pass =IF(C181>150,"Excellent",IF(C181<99,"Fail","Pass"))
Jack gill 151 Excellent =IF(C182>150,"Excellent",IF(C182<99,"Fail","Pass"))
Willian Stone 139 Pass =IF(C183>150,"Excellent",IF(C183<99,"Fail","Pass"))
Joe Whiteson 178 Excellent =IF(C184>150,"Excellent",IF(C184<99,"Fail","Pass"))
Ronald J. Carlson 120 Pass =IF(C185>150,"Excellent",IF(C185<99,"Fail","Pass"))
Anie Jack 79 Fail =IF(C186>150,"Excellent",IF(C186<99,"Fail","Pass"))
Elmer C. Laslo 128 Pass =IF(C187>150,"Excellent",IF(C187<99,"Fail","Pass"))

Example 2

Objective: Use Nested IF to put the grade a student gets in an exam. Score Ranges for different grades are given in criteria.

Criteria Grade
> 75 A
41-75 B
< 40 C
Student ID Marks Grade Formula
S001 90 A  =IF(E26< 41,"C",IF(E26< 75,"B","A"))
S002 70 B  =IF(E27< 41,"C",IF(E27< 75,"B","A"))
S003 20 C  =IF(E28< 41,"C",IF(E28< 75,"B","A"))
S004 41 B  =IF(E29< 41,"C",IF(E29< 75,"B","A"))

Related Topics

Basics of Excel

Different ways to open an excel file There are various ways to open an excel file, some of them are listed below - From Start Menu:Go to the start menu and search for Ms-Excel...

5 minutes read.

Check Marks in Excel

What is a Check Mark? Among various characters checkmark is one of the characters used to indicate that the item or product in the list is correct, chosen or selected. A...

5 minutes read.

Excel WORKDAY() Function

Excel WORKDAY() Function The WORKDAY() function in excel returns the serial number of the date before or after a specified number of workdays. Syntax WORKDAY (START_DAY, DAYS, [HOLIDAYS]) Parameter START_DAY (required)- This parameter represents the...

1 minute read.

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

Copying formula in Excel

Copy a formula in Excel While working with statistical calculations in Microsoft Excel, the user uses formulas to calculate the mathematical operations. Implementing these formulas manually for each data is a...

3 minutes read.

Excel OR() Function

The OR() function in excel tests the multiple sets of conditions and returns TRUE if any of the arguments are TRUE and FALSE if all the arguments supplied do not meet the...

2 minutes read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Multiplication in Excel

Multiplication plays a vital role in Mathematics. Usually, the calculations are performed manually and automatically. Manual calculations take time and sometimes leads to error, and it is a challenging process...

5 minutes read.

Excel IFERROR() Function

The IFERROR() function in excel returns the specified value if initially supplied the argument or formula returns an error, otherwise returns the result of the formula supplied in the first argument. When...

2 minutes read.

Excel Tutorial for Beginners

What is Excel? Microsoft Excel is a software program included in the Microsoft Office suite. It is a commercial spreadsheet application developed by Microsoft for Windows, macOS, Android, and iOS. It...

5 minutes read.

How to import Microsoft Access data into the Microsoft Excel

Microsoft Access is primarily considered vital and the primary tool for individuals who want to create and manage the respective type of Database efficiently. This tutorial will discuss how to import...

5 minutes read.

Paste Options in Excel

Excel spreadsheet is a combination of numeric values, alphabets which is used for calculation purposes. While performing the calculations, there is a need to repeat the data for further process....

6 minutes read.

Excel Nested IF’s Function

Excel Nested IF’s Function This function in excel helps in checking multiple conditions together by using IF conditions within the IF condition. Syntax if(Logical_Test, [value_if_true], if(Logical_Test, [value_if_true] , [value_if_false])) Parameter Logical_Test (required)- This parameter represents the condition which...

2 minutes read.

Cells and Ranges in Excel

Cells and Ranges Each cell is identified by its cell address, which is a combination of the column and row on which that cell is situated. A group of cells together are called ‘Range’. When...

5 minutes read.

Square Root Function in Excel

The concept of Mathematical calculations includes a large number of numbers and calculations are based on the numbers present in the data. Likewise, Square Root is a function used to...

3 minutes read.

Excel MID() Function

The MID() function in excel is used to return a specific number of characters from a text string starting at the position you specify. One can change the start of the string, thus...

1 minute read.

Excel SUBSTITUTE() Function

The SUBSTITUTE() function in excel substitutes/replaces the old text with the new text in a string. SUBSTITUTE function is used to clean data. This function is case-sensitive. Syntax SUBSTITUTE(Text, Old_Text, New_Text, [instance_number]) Parameter Text (required)- This...

2 minutes read.

Excel AVERAGE() Function

Excel AVERAGE() Function The AVERAGE() function returns the average of its arguments, which can be number or names, arrays, or references that contain numbers. It ignores text values and blank cells. Syntax AVERAGE(Number1,Number2, ...) Parameter Number1(required)- This parameter...

1 minute read.

Notes in Excel

Notes in Excel Notes are used to include additional information to the cell and explain formulas calculation, any modification made to the cell, providing necessary information on data that is entered or to provide any...

3 minutes read.

How to apply Advanced Filter in Excel

It was known that the advanced filter in Microsoft Excel is termed to be the next level filter option that is available in the particular "Data Menu Tab", which is...

7 minutes read.