Excel allows up to seven levels of nesting in its formulas for versions 2003 and older. Meanwhile, for versions 2007 and newer, you can nest up to 64 IF functions in a single formula.