ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Nested IF Statements - Worksheet Function (https://www.excelbanter.com/excel-programming/294288-nested-if-statements-worksheet-function.html)

Shorty[_2_]

Nested IF Statements - Worksheet Function
 
How many IF Statements can be nested together on a
worksheet?

For instance, the Syntax is:
IF(logical_test, value_if_true, value_if_false), then what
I need to do is nest the IF States similar to the
following:

IF(IF(IF(IF(IF(IF(logical_test, value_if_true,
value_if_false), , value_if_true, value_if_false),
value_if_true, value_if_false), value_if_true,
value_if_false), value_if_true, value_if_false))

I also need to nest in the "value_if_true"
and "value_if_false" positions.

TIA,

Shorty


Frank Kabel

Nested IF Statements - Worksheet Function
 
Hi
7 nested functions is the max.
If you need so many comparisons in most cases a lookup table and using
VLOOKUP is a better alternative

--
Regards
Frank Kabel
Frankfurt, Germany

"Shorty" schrieb im Newsbeitrag
...
How many IF Statements can be nested together on a
worksheet?

For instance, the Syntax is:
IF(logical_test, value_if_true, value_if_false), then what
I need to do is nest the IF States similar to the
following:

IF(IF(IF(IF(IF(IF(logical_test, value_if_true,
value_if_false), , value_if_true, value_if_false),
value_if_true, value_if_false), value_if_true,
value_if_false), value_if_true, value_if_false))

I also need to nest in the "value_if_true"
and "value_if_false" positions.

TIA,

Shorty



Shorty[_2_]

Nested IF Statements - Worksheet Function
 
Frank,

Thanks for the quick response. I'll also investigate
VLookup.

Regards,

Shorty

-----Original Message-----
Hi
7 nested functions is the max.
If you need so many comparisons in most cases a lookup

table and using
VLOOKUP is a better alternative

--
Regards
Frank Kabel
Frankfurt, Germany

"Shorty" schrieb im

Newsbeitrag
...
How many IF Statements can be nested together on a
worksheet?

For instance, the Syntax is:
IF(logical_test, value_if_true, value_if_false), then

what
I need to do is nest the IF States similar to the
following:

IF(IF(IF(IF(IF(IF(logical_test, value_if_true,
value_if_false), , value_if_true, value_if_false),
value_if_true, value_if_false), value_if_true,
value_if_false), value_if_true, value_if_false))

I also need to nest in the "value_if_true"
and "value_if_false" positions.

TIA,

Shorty


.



All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com