# Calculating Multiple Conditions in a Formula With The Nested IF Statement

Do you need to calculate multiple conditions in a formula? Similar to the example below where a specific trade discount percentage has been used depending on the quantity purchased? If that is the case then you can use the Nested IF statement.

The Nested IF statement enables one to calculate multiple conditions in a formula. As a result more elaborate tests of data can be constructed.

Process: Excel 2003, 2007 and 2010

The If statement can be used to conduct conditional tests on values and formulas. However if more elaborate testing of data will be carried out then the Nested If Statement can be used.

To calculate the trade discount percentage for clients based on the table below;

 TOTAL PURCHASES DISCOUNT PERCENTAGE >=\$30,000 7% >=\$20,000 5% >=\$10,000 3% <\$10,000 0%

1. Enter the data given below

3. Select cell D2 and type the following formula;

=IF(C2>=30000,”7%”,IF(C2>=20000,”5%”,IF(C2>=10000,”3%”,”0%”)))

4. Press enter and copy the formula down

5. The result will be as below

If you have any suggestions for an Excel Tips & Tricks topic, or you would like help with a particular function, please email [email protected] and yours could be the next Tip of the Week.

Alchemex provides examples of MS Excel procedures for illustration only, without warranty expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The MS Excel procedures on this web site are provided “as is” cannot be guaranteed that they can be used in all situations