I am trying to remove characters enclosed in parenthesis from anywhere in the string, and add them to the end. If they are not present in the cell, just copy the cell as is.
=IF(FIND("(",A2),SUBSTITUTE(A2,"(Non Emp) ","") & " (Non Emp)", A2)
So if "(" is found, remove it and add " (Non Emp) on the end. If not, just copy what is in A2.
If the IF statement is True, it returns fine. (Example A1. has "John (Non Emp) Jones", and returns "John Jones (Non Emp)"
If the IF statement is False, it returns #VALUE!, saying a value used in the formula is of the wrong data type. (Example, A2 has "Jack Jones" and returns #VALUE!
I can't figure out why.
any help would be appreciated.
Bookmarks