## Use IF + COUNTIF to perform numerous conditions

*Article updated on March 25, 2018*

The COUNTIF function allows you to construct a small IF formula that carries out plenty of logical expressions.

Combining the IF and COUNTIF functions also let you have more than 254 logical expressions and the effort to type the formula is minimal.

The example shown in above picture checks if the country in cell B3 is equal to one of the countries in cell range B23:D25.

In other words, the COUNTIF function counts how many times a specific value is found in a cell range.

If the value exists at least once in the cell range the IF function adds 100 to the value in C3. If FALSE the formula returns a blank.

becomes

**Cambodia**", "Sri Lanka", "Japan"; "Mongolia", "Bangladesh", "Philippines"; "Laos", "India", "Indonesia"}, "

**Cambodia**")

and returns 1. The criteria value is found once in the array (bolded).

The IF function interprets 1 as TRUE and carrys out the value_if_true argument, C3+100.

C3 is 99 and 99 + 100 equals 199, the IF function returns 199 in cell D3.

### Download excel *.xlsx file

Use IF + COUNTIF to perform multiple conditions

### Related post

If cell equals value from list

The array formula in cell C3 checks if cell B3 is equal to any of the values in E3:E5, the […]

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

## Share this article