Nested function limit

S

Scott

I've noticed that the limit for nested IF statements is
8. I've also noticed this is true for other functions
than IF as well. Is this true for all function? The only
way I can get around it is to put some of the inside
stuff in another cell, and the reference it. Any ideas?
Scott
 
F

Frank Kabel

Hi
this limit applies to all formulas (only 7 nested formulas are
allowed). For IF clauses you may create a lookup table and use VLOOKUP
to get the respective value for a search criteria
 
S

Scott

Okay, but most of my IF's refer to the cells around them,
and those references change accordingly down the column.
I think I'm just going to have to insert another column,
and have each do half of the work, as I don't think the
table applies here, unless you think it does.
Scott
 
F

Frank Kabel

Hi
Okay, but most of my IF's refer to the cells around them,
and those references change accordingly down the column.
I think I'm just going to have to insert another column,
and have each do half of the work, as I don't think the
table applies here, unless you think it does.

You're right: In this case the table solution probably won't work. You
may have a look if you can combine criteria or arrange them differently
(depends on your specific issue). So if you like, post your specific
problem and maybe we can find a shorter/better solution

Frank
 
J

JE McGimpsey

As an "entertainment", your example is interesting. For real world use,
it is, IMO, of no utility.

Your explanation that
An extra set of brackets around all the arguments
makes SUM think of them as one argument.

is only true if the arguments within the parentheses refer to ranges.
Replace one of the range references with a constant or a function, and I
get a "This formula contains an error" message. Replace one of the range
references with a named constant or a range reference from a different
worksheet, and the formula returns #VALUE!

So it's not simply a matter of making "SUM think of them as one
argument".

When using the technique with a function can have 3 different results
for 3 otherwise valid input arguments, it makes the technique unusable
in any application that needs to be auditable/traceable.

In addition, while unlikely, using that type of non-standard technique
may not be supported in future versions of XL.

But it's a neat trick.
 
H

Harlan Grove

JE McGimpsey said:
Your explanation that


is only true if the arguments within the parentheses refer to ranges.
....

Semantics! Well, in this case syntax.

The 'extra' set of parentheses makes them *one* multiple area range
reference. It's a semantic anomaly that the multiple areas may overlap. In
any case, it's no mystery nor any ingenious discovery that such multiple
area range references give the superficial impression of multiple arguments.

And it's not just SUM that 'thinks of them as one argument'. All functions
that can accept general range references (so including COUNT and NPV, but
not including SUMIF or COUNTIF) accept multiple area ranges.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top