Mar 17, 2020 08:20 PM
I feel like what I’m trying to do is simple, but I just can’t make it work.
I want to remove the text in the brackets. Example below:
[SUPV PROD - STAFF] Doe, John
[SrDesign/Ani - FL] Doe, Alice
[PRO/EDITOR - Ani] Smith, David
I want to remove the all the text in the bracket and the brackets themselves. Desired results below:
Doe, John
Doe, Alice
Smith, David
The Bracketed text is always in the beginning of the string.
Thanks!
Solved! Go to Solution.
Mar 17, 2020 10:54 PM
Hi @Matt_Grzan,
Welcome toi Airtable Community !
I have found this topic answer that might help you
The below modified answer to fit your requirements is working.
IF(FIND("[", MID({Name}, FIND("]", {Name}) + 1, 20)), MID(MID({Name}, FIND("]", {Name}) + 1, 20), 1, FIND("]", MID({Name}, FIND("]", {Name}) + 1, 20)) - 1), MID({Name}, FIND("]", {Name}) + 1, 20))
BR,
Mo
Mar 17, 2020 10:54 PM
Hi @Matt_Grzan,
Welcome toi Airtable Community !
I have found this topic answer that might help you
The below modified answer to fit your requirements is working.
IF(FIND("[", MID({Name}, FIND("]", {Name}) + 1, 20)), MID(MID({Name}, FIND("]", {Name}) + 1, 20), 1, FIND("]", MID({Name}, FIND("]", {Name}) + 1, 20)) - 1), MID({Name}, FIND("]", {Name}) + 1, 20))
BR,
Mo
Mar 18, 2020 06:38 PM
This is Awesome! Works perfectly. Thank you!!
Mar 18, 2020 09:48 PM
This could be greatly simplified. The pattern I see is that you want to keep everything starting with the second character after the closing bracket, which leads me to this formula:
IF(FIND("]", Name), TRIM(RIGHT(Name, LEN(Name) - FIND("]", Name), 50)))
Assuming that you don’t have any names longer than 50 characters, this will do.