Calculated Column with IF OR AND
I have a column say "Name" with values "XXX" "YYY" and "ZZZ" and another column say "Status " with values as "Approve" and "Reject". i should create a calculated column to show the result as "approved" only if Name="XXX" or "YYY" and Status = "Approve". else it should show "rejected". Tried this and seems to be not working. =IF(AND([Status]="Approve", (IF(OR([name]="XXX","YYY")))),"approved","rejected") Pls help !!!
May 10th, 2011 1:46pm

Try the following. =IF(OR([Status]="Approve",[Title]="XXX",[Title]="YYY"),"approved","rejected") It worked for me.V
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2011 5:05pm

Thanks for the reply. But i have a concern that the result should be approved only if the status is "approve". Else it should be "rejected" if the status is "Reject" and even though the name are "XXX" or "YYY". In the above solution it gives the result as "approved" even if the status is "Reject". Pls let me know if i am not clear.
May 11th, 2011 2:58am

Saidinesh, Try this. =IF(AND([Status]="Approve",OR([Title]="XXX",[Title]="YYY")),"approved","rejected") Let us know if you were able to solve your problem or not. V
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2011 10:58am

Saidinesh, Try this. =IF(AND([Status]="Approve",OR([Title]="XXX",[Title]="YYY")),"approved","rejected") Let us know if you were able to solve your problem or not. V
May 11th, 2011 10:58am

Saidinesh, Try this. =IF(AND(Status="Approve",OR(Title="XXX",Title="YYY")),"approved","rejected") Let us know if you are still having problem achieving the desired result.V
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2011 10:59am

Hi, According to your description, I suggest that you should have a try this: IF(AND([Status]="Approve",OR([Name]="XXX",[Name]="YYY")),"approved","rejected") Best Regards David Hu
May 11th, 2011 9:25pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics