Hello all,
I am using the following formula to detect and remove brackets and the text within it however I need it to loop as some fields have more than one instance of bracketed text. The formula is:
IF INSTR({EstDescription.Description}, "(") = 0 THEN {EstDescription.Description}
ELSE
LEFT
({EstDescription.Description}, INSTR({EstDescription.Description}, "(") - 1)
+
IF INSTR({EstDescription.Description}, ")") = 0 OR INSTR({EstDescription.Description}, ")") = LEN({EstDescription.Description}) THEN
""
ELSE
RIGHT
({EstDescription.Description}, LEN({EstDescription.Description}) - INSTR({EstDescription.Description}, ")") - 0)
Can anyone advise the best way to loop the above formula?
Thanks in advance
J
I am using the following formula to detect and remove brackets and the text within it however I need it to loop as some fields have more than one instance of bracketed text. The formula is:
IF INSTR({EstDescription.Description}, "(") = 0 THEN {EstDescription.Description}
ELSE
LEFT
({EstDescription.Description}, INSTR({EstDescription.Description}, "(") - 1)
+
IF INSTR({EstDescription.Description}, ")") = 0 OR INSTR({EstDescription.Description}, ")") = LEN({EstDescription.Description}) THEN
""
ELSE
RIGHT
({EstDescription.Description}, LEN({EstDescription.Description}) - INSTR({EstDescription.Description}, ")") - 0)
Can anyone advise the best way to loop the above formula?
Thanks in advance
J