Nested IF functions



Excel 2007 claims to allow up to 64 nested functions, but I am getting an
error in a spread sheet with much less than that (but more than the 10
previously allowed). Excel is indicating that I must use a different file
format, but it is not clear which one I must use - binary, "default" (which I
have tried), macro enabled, etc. Which one of these is the 2007 format that
will allow more nested functions?

The function I am trying to nest is:


Perhaps this would be better served as an array function?



T. Valko

I don't have Excel 2007 so I'm trying to figure this out with the nested
limit of previous versions.

Hard to figure out what you're trying to do with this. You don't need to use
this on every separate condition: *0.05. You can put that outside of the
formula and it will still do the same thing.


If all the cells in the range K4:K14 <>"" then subtract K3 from I3. If any
cell (other than K14, if K14 ="" then 0) is "" then subtract that cell from
the corresponding cell in range I. That's what your formula would do if it
was working but that doesn't make any sense (to me).

Perhaps you should explain it. I'm sure a better formula can be written to
do what you want.

Microsoft Excel MVP

news:D[email protected]...

Roger Govier

Hi Chris

I don't think the problem is with the number of nested functions (you are
using 11), it is the number of arguments to IF that is the problem.

You have all of the tests, followed by 11 possible outcomes.
IF only has 2 outcomes, value if True, value if False.

If the format were
then it would work.
Obviously you could have all 11 of your tests, not just the 2 I have typed

What if all of the K values are <>"", what result do you want?
In the above, the test will start at K14 and work upward, and the first
value found to be <>"" will have the result.
Is that what you want?

If not, post back with what you are trying to achieve, and there may be
better ways to obtain the result.

Roger Govier

news:D[email protected]...



Looks like your trying to substract the last value in K3:K14 from the
matching value in I3:I14 and multiply the result by .05, if that is the case
them try this instead:



T. Valko

If there are duplicate max values in K that will return an incorrect result.

Also, the LOOKUP in MATCH is redundant. Try it like this:


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

Similar Threads