View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier Roger Govier is offline
external usenet poster
 
Posts: 2,886
Default Function Arguments

Hi Jessica

The answer is Yes. You can nest up to 7 levels of IF statement in a
single test.
There are also methods of overcoming this limit, and other better
methods if your requirement approaches or exceeds 7.
I many circumstances, the use of AND or OR will provide your result, but
you can also combine IF with AND or with OR statements.

An example of 4 levels of nesting would be
=IF(A1<4,TRUE,IF(A19,TRUE,IF(B1<5,TRUE,IF(B114,T RUE,FALSE))))
would return True if any of the 4 conditions are met.

This could also be written (more simply) with only one level of nesting
as
=IF(OR(A1<4,A19,B1<5,B114),TRUE,FALSE)
or even more simply as
=OR(A1<4,A19,B1<5,B114)
which does not use IF at all and returns True or False as its result

Alternatively, if all 4 conditions had to be met to return True, then
again, without any IF's
=AND(A13,A1<10,B15,B1<15)

Clearly if your answer needs to be something other than True or False,
then an IF statement needs to be included
=IF(A190,"Excellent",IF(A170,"Very Good",IF(A150,"Good","Try
Harder")))

It all depends what you are trying to achieve as to which method you use

I hope this helps

--
Regards

Roger Govier


"Jessica" wrote in message
...
Is there any way of having more than one scenario in an arguement so
that the
"TRUE" answer will depend on more than one "IF"