• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Remove last two letters from a name

ranaray

Member
Hi,


I have a coloumn of names and these names are spellet like

MarkMR, SteveMR etc.

However I also have there names without the MR at the end ( Mark, Steve etc). What formula can I use to look at the last two characters and if 'MR' then remove MR and give me the name else simply return the value as is.


Thanks Rana
 
Rana

Assuming your data is in Column A

=IF(RIGHT(A1,2)="MR",LEFT(A1,LEN(A1)-2),A1)

Copy down

Adjust column Accordingly
 
Back
Top