Works perfectly fine for me here. What is the exact value at the
end? Is it a single space follwed by an A or B (as in your example
data) or is it simply an A or B directly at the end of the title? The
formula I posted looks for a single space followed by an A or B. If
there is no space, use this.
=IF(OR(RIGHT(A5,)="B",RIGHT(A5,)="A"),LEFT(A5,LEN(A5)-1),A5)
> > This will get rid of the A or B at the end along with the space before
> > it. Assuming the value is in A5:
[quoted text clipped - 19 lines]
>
> Thanks, but it didn't work... getting exactly what is in A5.
JW - 06 Sep 2007 19:30 GMT
Oops. Typo in my last post. Use:
=IF(OR(RIGHT(A5,1)="B",RIGHT(A5,1)="A"),LEFT(A5,LEN(A5)-1),A5)
> Works perfectly fine for me here. What is the exact value at the
> end? Is it a single space follwed by an A or B (as in your example
[quoted text clipped - 26 lines]
> >
> > Thanks, but it didn't work... getting exactly what is in A5.
kvc - 06 Sep 2007 19:55 GMT
> Oops. Typo in my last post. Use:
> =IF(OR(RIGHT(A5,1)="B",RIGHT(A5,1)="A"),LEFT(A5,LEN(A5)-1),A5)
[quoted text clipped - 31 lines]
>
> - Show quoted text -
I'm so SORRY.. the first solution WORKED! We exported this list from
another database and every title had about 20 spaces after the title..
so I used trim to clean that up and it worked! Thanks for everyone's
help! Much appreciated!