Excel Office

Excel How Tos, Tutorials, Tips & Tricks, Shortcuts

Tag: IF function

If cell is not blank in Excel

This tutorial shows how to calculate If cell is not blank in Excel using the example below; Formula =IF(A1<>””,”Not blank”,”Blank”) Explanation If you want to test a cell and take some action if the cell is not blank (not empty), you can use a simple formula based on the IF function. In the example shown, we have a simple task list with…

If cell is greater than in Excel

This tutorial shows how to calculate If cell is greater than in Excel using the example below; Formula =IF(A1>30,”Yes”,”No”) Explanation If you want to take an action when a cell value is greater than a certain value, you can use the IF function to test a value and return one value if the test is true, and another if the…

If cell equals in Excel

This tutorial shows how to calculate If cell equals in Excel using the example below; Formula =IF(A1=”red”,true result,false result) Explanation If you want to do something specific when a cell equals a certain value, you can use the IF function to test the value, then do something if the result is TRUE, and (optionally) do something else if the result of the…

If cell contains in Excel

This tutorial shows how to calculate If cell contains in Excel using the example below; If you want to copy cells that contain certain text, you can use a formula that uses the IF function together with the SEARCH and ISNUMBER functions. Formula =IF(ISNUMBER(SEARCH(“abc”,A1)),A1,””) Explanation Once you find a value you’re looking for you can copy it to another location,…

Win loss points calculation in Excel

This tutorial shows how to work Win loss points calculation in Excel using the example below; To assign points based on win/loss/tie results for a team, you can use a simple VLOOKUP formula, or a nested IF formula, as explained below. Formula =VLOOKUP(result,points_table,2,0) Explanation In the example shown, the formula in D5 is: =VLOOKUP(C5,points_table,2,0) How this formula works This is a…

Smaller of two values in Excel

This tutorial shows how to calculate Smaller of two values in Excel using the example below; To get the smaller, or lesser, of two values, you can use the MIN function. Formula =MIN(value1,value2) Explanation In the example shown, the formula in D5 is: =MIN(B5,C5) How this formula works The MIN function is fully automatic – it returns the smallest value…

nth smallest value with criteria in Excel

This tutorial shows how to calculate nth smallest value with criteria in Excel using the example below; To get the 2nd smallest value, 3rd smallest value, 4th smallest value, and so on, where each value matches supplied criteria, you can use an array formula that uses the SMALL and IF functions. Formula {=SMALL(IF(criteria,values),n)} Explanation In the example shown, the formula…

nth largest value with criteria in Excel

This tutorial shows how to calculate nth largest value with criteria in Excel using the example below; To get the 2nd largest value, 3rd largest value, 4th largest value, and so on, where each value matches supplied criteria, you can use an array formula that uses the LARGE and IF functions. Formula {=LARGE(IF(range=criteria,values),n)} Explanation In the example shown, the formula…

Sum bottom n values with criteria in Excel

This tutorial shows how to Sum bottom n values with criteria in Excel. You can use a combination of SUM function, SMALL function and IF function to get the sum bottom in the example below; Formula {=SUM(SMALL(IF(range1=criteria,range2),{1,2,3,N}))} Explanation To sum the bottom n values in a range matching criteria, you can use an array formula based on the SMALL function, wrapped inside the…

OR function Examples in Excel

The OR function in Excel returns TRUE if any of the conditions are TRUE and returns FALSE if all conditions are false. Combine the OR function with other functions and become an Excel expert. 1. For example, take a look at the OR function in cell D2 below. Explanation: the OR function returns TRUE if the first score is greater than 70 or the…

How to Check If A Cell Contains Specific Text in Excel

To check if a cell contains specific text, you can use the ISNUMBER and the SEARCH function in Excel. The ISNUMBER functions is used to check for a numeric value and the  SEARCH function returns the location of a substring in a string. There’s no CONTAINS function in Excel. 1. To find the position of a substring in a text string, use the SEARCH function.…

Even and Odd function in Excel

This example illustrates the EVEN and the ODD function in Excel. It also shows you how to determine if a number is even or odd. Even 1. Rounds a positive number up to the nearest even integer. 2. Rounds a negative number down to the nearest even integer. Odd 1. Rounds a positive number up to the nearest odd integer. 2. Rounds a negative number…

Count Errors in Excel

IF function and ISERROR function are used to check for an error in Excel. This example shows you how to create an array formula that counts the number of errors in a range. 1. We use the IF function and the ISERROR function to check for an error in the record below: Explanation: the IF function returns 1, if an error is found. If not,…

Example of Count with Or Criteria in Excel

How to count data based upon multiple criteria? Counting with Or criteria in Excel can be tricky. This article shows several easy to follow examples. 1. We start simple. For example, we want to count the number of cells that contain Google or Facebook (one column). 2a. However, if we want to count the number of rows that contain Google or Stanford (two columns), we cannot simply…

Not Equal To ‘<>‘ operator in Excel

In Excel, <> means not equal to. The <> operator in Excel checks if two values are not equal to each other. Let’s take a look at a few examples. 1. The formula in cell C1 below returns TRUE because the text value in cell A1 is not equal to the text value in cell B1. 2. The formula in cell C1…

How to create Checklist in Excel

This example teaches you how to  insert checkbox to create a checklist in Excel. First, turn on the Developer tab. Next, you can create a checklist. You can also insert a check mark symbol. To create this checklist, execute the following steps. 1. On the Developer tab, in the Controls group, click Insert. 2. Click Check Box in the Form Controls section. 3. Draw a check box in…

Excel If, Nested If, And/Or Criteria Examples

IF function is one of the most used functions in Excel. This page contains many easy to follow IF examples. Simple If Examples The IF function checks whether a condition is met, and returns one value if true and another value if false. 1a. For example, take a look at the IF function in cell B2 below. Explanation: if the price is…

IF, AND, OR and NOT Functions Examples in Excel

Learn how to use Excel’s logical functions such as the IF, AND, OR and NOT function. If The IF function checks whether a condition is met, and returns one value if true and another value if false. 1. For example, take a look at the IF function in cell C2 below. Above Case Study Explanation: if the score is greater than or…