advanced excel programming

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

Guest

Help me please. I need to have a statement which says: if (Y13="SL",OR
("AL"),OR... how do I do it especially in the example attached???

=IF(AND((AH13="OK"),(X13="OK"),(Y13="PLUMB"),(AK13=1),(AM13=1),(AO13=1)),"C:
Check in 5 years",IF((X13="REPLACE"),"A: Replace in 9
months",IF(AND((AH13="OK"),(X13="OK"),(Y13="SL"),(AK13=1),(AM13=1),(AO13=1)),"A: Repair in 9 months")))
 
=IF(AND((AH13="OK,X13="OK",Y13="PLUMB",AK13=1,AM13=1,AO13=1),"C: Check in 5
years",IF((X13="REPLACE"),"A: Replace in 9
months",IF(AND((AH13="OK",X13="OK",OR(Y13="SL",Y13="AL"),AK13=1,AM13=1,A13=1
),"A: Repair in 9 months")))
--

HTH

RP
(remove nothere from the email address if mailing direct)


Ralph said:
Help me please. I need to have a statement which says: if (Y13="SL",OR
("AL"),OR... how do I do it especially in the example attached???

=IF(AND((AH13="OK"),(X13="OK"),(Y13="PLUMB"),(AK13=1),(AM13=1),(AO13=1)),"C:
Check in 5 years",IF((X13="REPLACE"),"A: Replace in 9
months",IF(AND((AH13="OK"),(X13="OK"),(Y13="SL"),(AK13=1),(AM13=1),(AO13=1))
,"A: Repair in 9 months")))
 
Ralph:
I had a different interpretation from the one that Bob Phillips had. Here
is my version:
=IF (
AND((AH13="OK"),(X13="OK"),(Y13="PLUMB"),OR((AK13=1),(AM13=1),(AO13=1))),
"C: Check in 5 years",
IF(
(X13="REPLACE"),
"A: Replace in 9 months",
IF (
AND((AH13="OK"),(X13="OK"),(Y13="SL"), OR((AK13=1),(AM13=1),(AO13=1))),
"A: Repair in 9 months")))

Is this what you had in mind?
 
Yes, it's OR( x , y , z ), but your ()s don't match.
[I wonder if these tabs will work]
=IF(
AND(
AH13="OK,
X13="OK",
Y13="PLUMB",
AK13=1,
AM13=1,
AO13=1),
"C: Check in 5 years",
IF(
X13="REPLACE",
"A: Replace in 9 months",
IF(
AND(
AH13="OK",
X13="OK",
OR(
Y13="SL",
Y13="AL"),
AK13=1,
AM13=1,
A13=1),
"A: Repair in 9 months",
"Missing False Value")
)
)
=IF(AND((AH13="OK,X13="OK",Y13="PLUMB",AK13=1,AM13=1,AO13=1),"C: Check in 5
years",IF((X13="REPLACE"),"A: Replace in 9
months",IF(AND((AH13="OK",X13="OK",OR(Y13="SL",Y13="AL"),AK13=1,AM13=1,A13=1
),"A: Repair in 9 months")))


Ralph wrote
 

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