Hi,
I would like to seek you help on how I am going to remove a specific letters at the end of an ID number. The specific letters are _R, _OT and _OTR. For example if I have 123456789_R, the results should be 123456789.
Attaching the data for your reference.
Thanks and looking forward for your assistance.
Kamen
Solved! Go to Solution.
IIF(EndsWith([ID Number], '_R') OR EndsWith([ID Number], '_OT') OR EndsWith([ID Number], '_OTR'),REGEX_Replace([ID Number],'(.+)_(.+)', '$1'),[ID Number])
Thank you guys @atcodedog05 and @binuacs, both solutions work.
Appreciate your response so much.
Kamen
Happy to help : ) @KamenRider
Cheers and have a nice day!
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |