## How to use IF function with AND, OR, and NOT in Excel?

In Excel, the IF function is quite useful to check whether a cell meets a condition and return different values based on evaluated results (True and False). And combining the IF function and AND, OR, NOT functions, it will vary conditions to check cells. Here I will introduce how to use IF and AND functions, IF and OR functions, and combine multiple IF functions in Excel.

**How to use IF function in Excel****How to use If function and AND function in Excel****How to use IF function and OR function in Excel****How to combine multiple IF functions in one formula in Excel**

Supposing we have a sales table as the following screen shot shown, and now we want to evaluate the sale values and group them as "* Unordinary*", "

*", "*

**Low***", and "*

**Middle****".**

*High*And Now copy the row headers and column headers into a blank range (Range A16:E28 in our example) as the following screen shot shown.

#### How to use IF function in Excel

The basic form of IF function in Excel is shown as: =IF(logic_test, value_if true, value_if_false)

In our case we want to check the sale volumes are Low or not. If the value in Cell B2 is equal or less than 80, return the text of "Low", if the value in Cell B2 is bigger than 80, return blank.

Enter the formula =IF(B2<=80,"Low","") into the Cell B17, and then drag the Fill Handle to the Range B17:E28. See screen shot below:

#### Easily combine multiple worksheets/workbooks/CSV files into one worksheet/workbook

It may be tedious to combine dozens of sheets from different workbooks into one sheet. But with Kutools for Excel’s **Combine (worksheets and workbooks) **utility, you can get it done with just several clicks!

#### How to use If function and AND function in Excel

If you want to check if a cell meets several conditions at the same time, you can combine the IF function and AND function in Excel.

The basic form of AND function in Excel is =AND(Logical 1, Logical 2, Logical 3, …, etc.)

Now in our case we want to check a sale volume is more than 80 and less than 160 simultaneously, if yes returns the text of "Middle", and if no returns blank.

Enter the formula =IF(AND(B2>80,B2<160),"Middle","") into Cell B17, and then drag the Fill Handle to the Range B17:E28. See screen shot below:

#### How to use IF function and OR function in Excel

If you want to check if a cell meets one of multiple conditions, you can combine the IF function and OR function in Excel.

The basic form of OR function in Excel is =OR(Logical 1, Logical 2, Logical 3, …, etc.)

In our example, we want to find out the unordinary sale volumes which are bigger than 180 or less than 20. If the sale volumes are unordinary, return the text of "Unordinary", if no return blank.

Enter the formula =IF(OR(B2>180,B2<20),"Unordinary","") into Cell B17, and then drag the Fill Handle to the Range B17:E28. See screen shot below:

#### How to combine multiple IF functions into one formula in Excel

In our example, if you want to evaluate all sale volumes with one formula, you can apply a complex IF function.

If the sale volume is equal or less than 20, return text of "Unordinary"; if the sale volume is equal or less than 80, return text of "Low"; if equal or less than 160, return text of "Middle", and if equal or less than 200, return text of "High".

Enter the formula =IF(B2<=20,"Unordinary",IF(B2<=80, "Low", IF(B2<=160, "Middle", IF(B2<=200, "High", "")))) into Cell B17, and then drag the Fill Handle to the Range B17:E28. See screen shot below:

Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future! Read more… Free trial |

### Best Office Productivity Tools

**Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. ** **Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...**

#### Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!