Avatar of Euro5
Euro5
Flag for United States of America asked on

Nested if error

I have tried to modify this formula, but now getting error - I know I'm using wrong number of parenthesis or something simple, but can't figure it out!
Can anyone help??

=IF(OR(K2="SPOZ",K2="SPOZDEF"),AB2,ROUNDUP(IF(AND(OR($K2={"SPLB","SPLBDEF","SPLBHW","SPLBDEFHW"}),'Enter Data'!$B$4=""),$G2/'Enter Data'!$A$4,IF(AND(OR($K2={"SPLB","SPLBDEF","SPLBHW","SPLBDEFHW"}),$G2>=('Enter Data'!$B$4*1728)),$G2/'Enter Data'!$C$4,IF(AND(OR($K2={"SPLB","SPLBDEF","SPLBHW","SPLBDEFHW"}), $G2/'Enter Data'!$A$4, IF(AND(OR($A2={"E2","ESP","FO","PO","SO","E2AM","F1","F2","F3"}),'Enter Data'!$B$2=""),$G2/'Enter Data'!$A$2, IF(AND(OR($A2={"E2","ESP","FO","PO","SO","E2AM","F1","F2","F3"}),$G2>=('Enter Data'!$B$2*1728)),$G2/'Enter Data'!$A$2, IF(AND(OR($A2={"E2","ESP","FO","PO","SO","E2AM","F1","F2","F3"}),$G2<('Enter Data'!$B$2*1728)),$G2/'Enter Data'!$C$2, IF(AND($A2="HD",'Enter Data'!$B$7=""),$G2/'Enter Data'!$A$7,IF(AND($A2="HD",$G2>=('Enter Data'!$B$7*1728)),$G2/'Enter Data'!$A$7, IF(AND($A2="HD",$G2<('Enter Data'!$B$4*1728)),$G2/'Enter Data'!$C$7, IF(AND(OR($A2={"GR","PRP"}),'Enter Data'!$B$4=""),$G2/'Enter Data'!$A$4, IF(AND(OR($A2={"GR","PRP"}),$G2>=('Enter Data'!$B$4*1728)),$G2/'Enter Data'!$A$4,IF(AND(OR($A2={"GR","PRP"}), $G2<('Enter Data'!$B$4*1728)),$G2/'Enter Data'!$C$4,IF($E2="PR",$G2/'Enter Data'!$A$2,IF(AND(OR($A2={"IP","IE","IPF","IEF"}), 'Enter Data'!$B$10="",D2="Exp"),$G2/'Enter Data'!$A$10,IF(AND(OR($A2={"IP","IE","IPF","IEF"}),$G2>=('Enter Data'!$B$10*1728),D2="Exp"), $G2/'Enter Data'!$A$10,IF(AND(OR($A2={"IP","IE","IPF","IEF"}),$G2<('Enter Data'!$B$10*1728),D2="Exp"), $G2/'Enter Data'!$C$10,IF(AND(OR($A2={"IP","IE","IPF","IEF"}),'Enter Data'!$B$13="",D2="Imp"),$G2/'Enter Data'!$A$13, IF(AND(OR($A2={"IP","IE","IPF","IEF"}),$G2>=('Enter Data'!$B$13*1728),D2="Imp"),$G2/'Enter Data'!$A$13, IF(AND(OR($A2={"IP","IE","IPF","IEF"}),$G2<('Enter Data'!$B$13*1728),D2="Imp"),$G2/'Enter Data'!$C$13,0)))))))))))))))))))),0))

Open in new window

Microsoft OfficeMicrosoft Excel

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Subodh Tiwari (Neeraj)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Euro5

ASKER
THANK YOU!!!
Subodh Tiwari (Neeraj)

You'r welcome!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck