I need to sperate strings in a Google spreadsheet. The extraction target is a string in [] brackets at the end of the cell. A string in [] brackets at the beginning or in the middle of the cell has to be ignored. Is there a possibility to target the cells from the right side?
The extraction with RegexExtract like
=IFERROR(REGEXEXTRACT(A1;"\[(.*?)\]");"")
works only for cells with one bracket and copies the content of the brackets, I want to split it off.
Otherwise for example
=SPLIT(CHANGE(A1;"[";"^");"^")
does not ignore the irrelvant brackets.
Example
Original Cell Content:
[irrelevant] Lore [irrelevant] Ipsum 123 [relevant String]
I want to have one cell with:
[irrelevant] Lore [irrelevant] Ipsum 123
And another cell with:
[relevant String]