• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula error

deb45

New Member
Hello,
Trying to enter on formula but could not.
Sample file is attached with descriptions.

Can anyone help?


Regards,
Deb
 

Attachments

  • Sample File - Copy.xlsx
    13.6 KB · Views: 3
Deb

I suspect you have a few )'s in the wrong spot
Does this work ?
=IF(AND(B4="F",C4="B",A4="PLATE",(D4-E4)>=0),0,IF(AND(B4="F",C4="0",A4="PLATE",(D4-E4)>=0),(D4-E4),IF(AND(B4="0",C4="0",A4="PLATE",(D4-E4)>=0),(D4-E4),IF(AND(B4="F",C4="0",A4="CN",(D4-E4)>=0),(D4-E4),IF(AND(B4=0,C4=0,A4="CN",(D4-E4)>=0),(D4-E4),0)))))

If not can you explain the logic ?
 
Hello Hui,

Logic is given in attached file.

Regards,
Deb
 

Attachments

  • Sample File - Copy.xlsx
    14.4 KB · Views: 4
Hello John,

Thanks. What if new items are added?

Sample file attached.

Regards,
Deb
 

Attachments

  • Sample File - Copy.xlsx
    14.7 KB · Views: 0
Hello John,

I mean to say if new item "LDN" is added and whether it satisfies either or both of conditions , target production will be 0.

What will be the formula?

Regards,
Deb
 
Hello,

I am uploading file afresh with logic given.

Pls look into.


Regards,
Deb
 

Attachments

  • Sample File1.xlsx
    14.1 KB · Views: 1
I mean to say if new item "LDN" is added and whether it satisfies either or both of conditions , target production will be 0.

What will be the formula?

Regards,
Deb

With new logic, just little change in formulae:
=IF(AND(B4="F",C4="B",A4="PLATE",D4-E4>=0),0,IF(AND(OR(B4={"F";0}),C4=0,OR(A4={"PLATE";"CN"}),D4-E4>=0),D4-E4,0))

Maybe can be shortened like this:
=IF(AND(OR(B4={"F";0}),C4=0,OR(A4={"PLATE";"CN"}),D4-E4>=0),D4-E4,0)

Blessings!
 
Back
Top