Nested IF

Excel is not accepting this formula.

THIS IS MY CURRENT FORMULA
=IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started"),"Not Started",IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started"),"InProgress", IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"), "Completed",IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="InProgress",W2="Not Started","InProgress",IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started"),"Not Started",IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started"),"InProgress", IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"), "Completed",IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started"),"InProgress",IF(AND(T2="Not in Scope",U2="Not in Scope",V2="Not in Scope",W2="Not in Scope"),"Not in Scope","Inappropriate Status Combination")))))))))))))))))

 It throws this message.

THIS IS WHAT EXCEL SAYS
ioechoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Codrut TambuSr. Software Developer EngineerCommented:
Use semicolon (;) instead of comma(,) like:
=IF(1<2;"TRUE";"FALSE")
=IF([logical_condition];[value_if_true];[value_if_false])
0
Saqib Husain, SyedEngineerCommented:
=IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started"),"Not Started",IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started"),"InProgress", IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"), "Completed",IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="InProgress",W2="Not Started"),"InProgress",IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started"),"Not Started",IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started"),"InProgress",IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started"),"InProgress", IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"), "Completed",IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started"),"InProgress",IF(AND(T2="Not in Scope",U2="Not in Scope",V2="Not in Scope",W2="Not in Scope"),"Not in Scope","Inappropriate Status Combination"))))))))))))))))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ioechoAuthor Commented:
Still not working...

=IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started");"Not Started";IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started");"InProgress"; IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"); "Completed";IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Completed",V2="InProgress",W2="Not Started");"InProgress";IF(AND(T2="Not Started",U2="Not Started",V2="Not Started",W2="Not Started");"Not Started";IF(AND(T2="InProgress",U2="Not Started",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Not Started",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Completed",V2="Not Started",W2="Not Started");"InProgress";IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Not Started");"InProgress"; IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="Completed"); "Completed";IF(AND(T2="Completed",U2="InProgress",V2="InProgress",W2="Not Started");"InProgress";IF(AND(T2="Not in Scope",U2="Not in Scope",V2="Not in Scope",W2="Not in Scope");"Not in Scope";"Inappropriate Status Combination"))))))))))))))))
0
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

ioechoAuthor Commented:
Perfect! Thank you so much!
0
zorvek (Kevin Jones)ConsultantCommented:
Here is a shorter and, hopefully, depending on your perspective, more maintainable formula. It works by building a four digit key from the four source cells where each digit represents one cell as "Not Started" = 1, "InProgress" = 2, "Completed" = 3, and "Not in Scope" = 4. The key is then looked up in a table of possible valid keys and the corresponding result returned. If no key is found then "Inappropriate Status Combination" is returned.

=IFERROR(INDEX({"Not Started","In Progress","In Progress","In Progress","In Progress","Completed","In Progress","In Progress","Completed","Not in Scope"},MATCH(MATCH(LEFT(T2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(U2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(V2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(W2,5),{"Not S","InPro","Compl","Not i"},0),{"1111","2111","3111","3311","3331","3333","3221","3321","3333","4444"},0)),"Inappropriate Status Combination")

Kevin
0
ioechoAuthor Commented:
Same as my last question. I appended to the formula and again excel is not accepting. I need a work around.

=IF(AND(T172="Not Started",U172="Not Started",V172="Not Started",W172="Not Started"),"Not Started",IF(AND(T172="InProgress",U172="Not Started",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Not Started",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Completed",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Completed",V172="Completed",W172="Not Started"),"InProgress", IF(AND(T172="Completed",U172="Completed",V172="Completed",W172="Completed"), "Completed",IF(AND(T172="Completed",U172="InProgress",V172="InProgress",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Completed",V172="InProgress",W172="Not Started"),"InProgress",IF(AND(T172="Not Started",U172="Not Started",V172="Not Started",W172="Not Started"),"Not Started",IF(AND(T172="InProgress",U172="Not Started",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Not Started",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Completed",V172="Not Started",W172="Not Started"),"InProgress",IF(AND(T172="Completed",U172="Completed",V172="Completed",W172="Not Started"),"InProgress", IF(AND(T172="Completed",U172="Completed",V172="Completed",W172="Completed"), "Completed",IF(AND(T172="Completed",U172="InProgress",V172="InProgress",W172="Not Started"),"InProgress",IF(AND(T172="Not in Scope",U172="Not in Scope",V172="Not in Scope",W172="Not in Scope"),"Not in Scope", IF(AND(T2="Completed",U2="Completed",V2="Completed",W2="InProgress"),"InProgress","Invalid Combination")))))))))))))))))
0
zorvek (Kevin Jones)ConsultantCommented:
This includes your latest change:

=IFERROR(INDEX({"Not Started","In Progress","In Progress","In Progress","In Progress","Completed","In Progress","In Progress","In Progress","Completed","Not in Scope"},MATCH(MATCH(LEFT(T2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(U2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(V2,5),{"Not S","InPro","Compl","Not i"},0)&MATCH(LEFT(W2,5),{"Not S","InPro","Compl","Not i"},0),{"1111","2111","3111","3311","3331","3333","3221","3321","3332","3333","4444"},0)),"Inappropriate Status Combination")

Kevin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.