I want to take a column of Data (example 145J) and use a RIGHT cmd to create a new column output that only keeps the last digit, in this example J.
I was thinking of using an IF/THEN statement for the same thing above. The column data I am analyzing has 3 digits followed by a letter (another example 145H), I thought by trunicating the data to just the letter, I could then write an expression that only keeps the J/H's all else would be NULL.
Any help would be great!
Regards!
Darin
Solved! Go to Solution.
Hi @dgcolby ,
You can use data cleansing tool to remove any digit from your cells.
See if that works for you.
Best,
Fernando Vizcaino
You could also use the Regex Tool which has a bit more nuance and allows for a more...stringent rule than 'right()'. For instance, keep only the 4th character if it is a *letter* (something like "...(\u)" which would return null for anything that didnt have a patter of . (single character) . (single character) . (single character) \u (uppercase letter).