kym.wong@yahoo.com
New Member
Dear all,
how to shorten this formula?
=IF(OR(RIGHT(V2,1)="1",RIGHT(V2,2)="1N",RIGHT(V2,2)="AP",RIGHT(V2,2)="SH",RIGHT(V2,2)="MG"),1,2)
As you see, I am trying to put a value of 1 to any stock ID where the last 2 count from the right are any alphabets. There are many stock IDs with different alphabets and I can't possibly list them down in the formula. How do I do it? Is there a wildcard that I can add?
thanks
how to shorten this formula?
=IF(OR(RIGHT(V2,1)="1",RIGHT(V2,2)="1N",RIGHT(V2,2)="AP",RIGHT(V2,2)="SH",RIGHT(V2,2)="MG"),1,2)
As you see, I am trying to put a value of 1 to any stock ID where the last 2 count from the right are any alphabets. There are many stock IDs with different alphabets and I can't possibly list them down in the formula. How do I do it? Is there a wildcard that I can add?
thanks