Excel: 7th Nested IF in Formula Can't Contain AND and ORLast reviewed: November 30, 1994Article ID: Q89790 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, if a formula contains seven nested IF statements (the maximum allowable in Microsoft Excel), the seventh IF statement cannot contain both an AND and an OR statement. Attempting to enter an AND and an OR in the seventh IF statement results in the following message:
Error in formula MORE INFORMATIONMicrosoft Excel allows a maximum of seven nested IF statements within a single formula. However, the presence of both an AND and an OR within the seventh IF statement causes Microsoft Excel to behave as if the formula contains eight nested IF statements. The presence of an AND and OR is allowed in the first six IF statements.
WorkaroundThe only available workaround for this error is to not use both an AND and an OR statement in the seventh nested IF statement.
Examples of Incorrect and Correct Formulas
REFERENCES"Online Help," version 5.0 "Function Reference," version 4.0, pages 225-228 "Function Reference," version 3.0, pages 125-127
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |