A few words of thanks would be greatly appreciated.

Nesting More Than 7 IF Statements in an Excel Function

In normal circumstances, Excel places a limit on the number of nested conditional formulas that you can use. The limit is 7. However, it is possible to circumvent the limitation over the number of nested conditional formulas by cascading them.

Nesting Multiple IF Statements Using Text Data)

Consider cell A2 as the source cell, in which you will either enter a text or numeric value. Take as an example data in text format ranging from "one" to "fifty-six". To facilitate the monitoring data that will be collected in the numeric format and inserted into the formula, they could be located in target cells, in this case referring to the address of each cell.

Simply complete the value if false of each nest by 0 (zero) and restart a new nesting, preceded by +:


Nesting Multiple IF Statements Using Numeric Data)

This time, consider cell A8 as the source cell. The data will be in numeric format, ranging from 1 to 40, and the data in the cell (e.g. D8) in text format.

Simply complete the value if false for each nests by "" (empty), and restart a nesting preceded by an &:


Nesting Multiple IF Statements Using Fields

This method allows you to create fields containing the conditional formula. First, enable the cell that will display the result (e.g cell D5).

Create the first field. In refer to, enter the formula and finish with classical conditional Value if false = FALSE:


Continue by creating a new field named Form2, and enter the following formula to continue the conditional nesting:


In the active cell D5, enter a simple conditional formula referring to named fields:

The possibilities are very important, and we have 7 nested by field X 8 or 56 conditional IF.

It is also possible to relaunch a new cascade nest based on the same criteria, which allows for a very large number of possibilities:




This last method is interesting because it allows you to test multiple cells, including several sheets, or create a cascade of cells, or sheets, or in a defined order.

Nesting Multiple IF Statements Using Masked Cells

This method will allow us to obtain an unlimited number of conditionals using masked cells in a column.

Example, in a first cell (C13), the first of the 6 conditional, completed by the value if false referring to the cell containing the second conditional formula C14:


In cell C14, put the following conditional formula with a value if false pointing to the address of the cell containing the formula (C15):


This can be used as in many cells as needed, without limitation.

Using Single Sheets to Simply a Formula

When all the cells are tested on the same sheet, it is possible to simplify the formula, replacing Sheet1!A2 by cell address A2 or absolute reference $A$2.

Image: © Dzmitry Kliapitski - Shutterstock.com

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled "Nesting More Than 7 IF Statements in an Excel Function," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).