When I import a string to paste I want to check the end of the string and if
the last 2 letters match one from a list then I want to delete them before I
pastea the string.
oldjay
I'm not sure how you are "importing" without "pasting". Can you explain?
If you have a string in a cell, you can check to see if the last two characters
are in a "SuffixList" with this **array** formula:
=LEFT(A1,LEN(A1)-2*OR(RIGHT(A1,2)=SuffixList))
where SuffixList is the range where you have your list.
To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl><shift> while hitting <enter>. If you did this
correctly, Excel will place braces {...} around the formula.
You can then edit/copy Edit/Paste Special -- Values and then delete the
original import.
--ron