Forum Discussion

manhuy's avatar
manhuy
Copper Contributor
Mar 14, 2023
Solved

Extract text from Comma Separated Cell to another Comma Separated Cell

Hi Community,   I was wondering if anyone could help me with this problem.  Any method to achieve "Desired Outcome" column would be appreciated. Data Desired Outcome BAR-Barcelona (1), RM-...
  • JosWoolley's avatar
    Mar 14, 2023

    manhuy 

     

    =LET(
        ζ, TEXTSPLIT(A1, "-", " "),
        TEXTJOIN(", ", , FILTER(TAKE(ζ, , 1), 1 - ISNA(TAKE(ζ, , -1))))
    )

     

Resources