I'm stuck making a sheet in which I want to delete a series of words that I have in 2 different cells.
En la celda A1 tendría GLUTEN, SOJA,
En la celda A2 tendría SOJA, GLUTEN, SESAMO, PESCADO,
I would like to get in a 3rd cell, A3: SÉSAMO, PESCADO,
only. That is, eliminate the words, delimited by commas and spaces, that are repeated in both cells (in the example "SOJA", "GLUTEN") even if they are disordered within the text string.
The formula I have tried to use is:
= TRIM(SUBSTITUTE(A2;A1;""))
But I get SOJA
, GLUTEN
, SESAMO
, PESCADO
. Since I do not have the words "GLUTEN" and "SOYA" in the same order, when making the formula, it leaves all the words, without eliminating any of the ones that are repeated.
Could someone suggest some formula or effective macro to get the words out, even if they are disordered within a text string?
Thank you very much