How to use IF function in Microsoft Excel

If Function is very helpful formula and used 

vitally. This function is categorized as logical function. Here we

 will learn how to use IF Function with examples.

What is If function?

Using if function returns with a result if condition met TRUE, or another value FALSE. We will also learn some advance uses of “If Function”.

Let’s see some basic uses:

if function

Example 1 :

Sometimes, we have a list of students having marks of their exams and want to know result the list of passed student. In this condition this formula is very helpful.

  1. Type =if(select condition,”Pass”,”Fail)

if functions PASS FAIL

Later using filter command we can list out passed or failed students.

Example 2 :

In another condition, where we are selecting students having marks above 50%  and want to mark with “Selected” and lesser marks with “Not Selected”, we can do this too.

if functions SELECTED NOT SELECTED

If, we go some more advance in this formula, and want to select a value if it is equal or less than a specific value, and want to replace greater value with a specific value

Example 3 : 

Suppose, in the below given table we want to have a result, if amount is equal or less than 1800, should be placed, as it is, other wise it should be replaced with 1800.

if functions equal or less than

These were some basic formulas, you can go more advance and can edit the formula as per your requirements.

We hope this tutorial will be a helpful tool for you.

Explore More

Count cells between two dates

countcells

The COUNTIFS formula is used to count number of cells in a specific criteria. Here we will learn how to count cells between two dates using COUNTIFS formula. Sometimes we

COUNT CELLS EQUAL TO

count if cell equals another cell

Count celsl equal too is part of COUNIT formula. There is a lot of formulas under countif category. In count cells equal to formula we will learn how to count cells cantainig

Count cells between two number

count cells between to numbers

The COUNTIFS formula is used to count cells between two numbers in a specific criteria. Here we will learn how to count cells between two numbers using COUNTIFS formula. To count cells