Hi team,
I have list of entries in an excel column, see example below
AB203467A1
SC345745BB
KC983434T
HE98765P1
AS456382
I want to have a macro that convert these numbers to the following and paste in the next column
AB203467 (A1 removed)
SC345745 (BB removed)
KC983434 (T removed)
HE98765 (P1 removed)
AS456382 (nothing removed)
In short, I want to remove
last two characters if a number is followed by alphabet or both characters are alphabets
only last character if it is alphabet
nothing is removed if there is no alphabet in last two characters.
Please help me with this. Thanks in advance.
I have list of entries in an excel column, see example below
AB203467A1
SC345745BB
KC983434T
HE98765P1
AS456382
I want to have a macro that convert these numbers to the following and paste in the next column
AB203467 (A1 removed)
SC345745 (BB removed)
KC983434 (T removed)
HE98765 (P1 removed)
AS456382 (nothing removed)
In short, I want to remove
last two characters if a number is followed by alphabet or both characters are alphabets
only last character if it is alphabet
nothing is removed if there is no alphabet in last two characters.
Please help me with this. Thanks in advance.