Nested IF error

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

Guest

Any suggestion on this would be greatly appreciated.
I am getting an error while running this formula, can't figure out where am
I missing.

=if(L2="I",if(L2="R","B",IF(L2="F","Ro",if(L2="SCA","Ri",if(or(S2="IA",N2="GBS"),"GN",if(AND(L2="HC",or(N2="Fi",N2="In",N2="XC")),"OM",if(OR(N2="Ex",S2<>"IA"),N2="COS",N2="CO",S2="L"),"D","W")))))))

Thanks.
KD
 
I think the formula has suffered from line-wrap on the newsgroups, and
this sometimes inserts hyphens where they are not needed - where you
have

N2="Ex",S-

at the end of the second line and it then continues the next line with

2<>"IA"),

these should be combined without a hyphen between them, like so

N2="Ex",S2<>"IA"),

and so on.

Hope this helps.

Pete
 
you are missing the true responce for the initial "L2="I"" statement
and in the the last if statement, you may need another "and" or "or" in the
logical statement or you may need to get rid of the ")" after "IA"
 
I think you have one too many closed brackets ')' and you are going over the
limit of 7 nested functions

--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)
 

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

Back
Top