Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Jul 11, 2022 01:00 PM
I’m looking for a formula that knows how to filter one field from another field and find what’s left.
Would appreciate help
Jul 11, 2022 02:03 PM
In what way does the field need to filter? You may be able to use SUBSTITUTE() or REGEX to remove certain strings.
Jul 11, 2022 02:19 PM
Thanks, but I have already tried with this formula, without success.
Because I want to filter fields that I have in the table, and not certain words.
Jul 11, 2022 02:37 PM
I don’t quite understand what you’d like to accomplish. Is it “Field A contains some or all of the text from Field B, return all the text that’s not in Field B?” What types of fields are these?
Jul 11, 2022 02:58 PM
I have now corrected the formula
SUBSTITUTE ({more details}, {more details}, {details received})
Because I want to download from the “More Details” list the “Details Received”.
But it still does not work.
From the list of additional details:
“Area of residence, type of treatment, gender, field of treatment, language”
I am interested in downloading the “details received” - area of residence, gender, language
To get the missing details.
And the formula does not work for me.
I get in this formula the list of “details received” - area of residence, gender, language
(And not the missing details)
Jul 11, 2022 03:17 PM
The example text from your post doesn’t match the options I see in your screenshot so I just sorta guessed what you want.
If you use a formula like the one below, it will remove any option selected in the {Details received} field from the list in the {More details} field.
REGEX_REPLACE(
{More details},
SUBSTITUTE({Details received}, ", ", "|"),
""
)
^ that’s going to end up with some extra commas but confirm that it does what you’re looking for.
The reason I’m replacing commas with pipes is because in regex a pipe means “or”, so this method lets you replace multiple items with the same thing (in this case, that thing is “empty space”).
Jul 11, 2022 03:58 PM
Amazing, it works.
Thank you very much