Mini-editor for nested IF's in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would say I'm a low-level Excel poweruser (say, 8 on a scale of 10). I have
no problem writing an IF statement, andsometimes I even write nested IF
statements. But they are HELL to debug. Ioften find myself wishing that Excel
had a rudimentary editor to show them asindented and blocked for human
readability.
 
If you're making a suggestion to MS, this isn't the right place - send a
message to (e-mail address removed) instead (this is a peer-to-peer
newsgroup).

Generally, if you're having to nest more than 2, possibly 3, deep, there
are better ways to handle the situation - either through math (for
strictly numeric solutions) or via lookup tables. Most "power users" I
know severely limit their nested IF() functions, other than, say,
wrapper functions that test initial conditions, e.g.:
IF(A1="","",IF(...)).

Nested IF's are notorious for making spreadsheets difficult to
debug/modify, since they often hard-code data that will change from time
to time. And, as you've stated, they can be typographically confusing.
 
A laudable idea... But, why don't try to re-express those lengthy
IF-formulas in terms of other functions? More often than not, such
formulas are re-writeable as lookup formulas.
 
Excel is very forgiving.
Try putting some alt-enters and extra spaces into your formula (before the
commas that separate the parms is nice).

You may be pleasantly surprised how it looks.

I put this simple formula in a cell and excel parsed it ok:

=IF(A1=B1,
C1,
D1)
 

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

Nested "If Statement" 4
Nested IF 2
Nested If 2
Nested IF Statements 1
Nested If 3
Formula nesting with IF statements 2
Nested IF statement 3
A mini review of Iphone 12 mini 4

Back
Top