Site icon Best Excel Tutorial

How to Use IF Function in Excel

You can learn here, what IF function is and how to use it.

IF Function Basics

IF function is one which are used the most often in Excel. IF is a logical function. But you can not only check TRUE / FALSE values.

IF Function contains from 3 parts:

  1. Logical test – IF function checks if this test is true or false in the cell
  2. Value if true – you can use it if logical test is true
  3. Value if false – put the argument here for the failed test

Pass/Fail Evaluation

Consider a scenario where you have a table of exam results, and you want Excel to determine if a student passed or failed the exam automatically.

You can use the IF function for this purpose. Here’s the formula:


In this formula:

Grading System

Now, let’s tackle a more complex scenario where you want to assign grades to students based on their scores.

The grading criteria are as follows:

You can use nested IF functions to achieve this. Here’s the formula:


This formula checks multiple logical tests sequentially to determine the appropriate grade for the student based on their score.

Exit mobile version