I have the following table:
Part Number | Pass\Fail\Ignore
_____________________
NMS123 | P, F
NMS221 | P, P, P
NMS678 | I, P, F
NMS666 | F, F, I, F
NMS890 | F, F, P
I want in a 3rd column to get value according the characters contained in the 2nd column ("Pass\Fail\Ignore):
If all the characters in the 2nd col are "P", the value in the 3rd column will be: "Fully Passed".
If at least one of the characters in the 2nd col is "P" and there is other characters in addition to "P", the value in the 3rd column will be: "Partially Passed".
If the 2nd col contains other characters ("F" and\or "I") and not "P" at all - the value in the 3rd column will be "Failed".
So, the example table will look like:
Part Number | Pass\Fail\Ignore | Test Result
_____________________
NMS123 | P, F | Partially Passed
NMS221 | P, P, P | Fully Passed
NMS678 | I, P, F | Partially Passed
NMS666 | F, F, I, F | Failed
NMS890 | F, F, P | Partially Passed
How to do that?
Thanks a lot
Part Number | Pass\Fail\Ignore
_____________________
NMS123 | P, F
NMS221 | P, P, P
NMS678 | I, P, F
NMS666 | F, F, I, F
NMS890 | F, F, P
I want in a 3rd column to get value according the characters contained in the 2nd column ("Pass\Fail\Ignore):
If all the characters in the 2nd col are "P", the value in the 3rd column will be: "Fully Passed".
If at least one of the characters in the 2nd col is "P" and there is other characters in addition to "P", the value in the 3rd column will be: "Partially Passed".
If the 2nd col contains other characters ("F" and\or "I") and not "P" at all - the value in the 3rd column will be "Failed".
So, the example table will look like:
Part Number | Pass\Fail\Ignore | Test Result
_____________________
NMS123 | P, F | Partially Passed
NMS221 | P, P, P | Fully Passed
NMS678 | I, P, F | Partially Passed
NMS666 | F, F, I, F | Failed
NMS890 | F, F, P | Partially Passed
How to do that?
Thanks a lot