Search code examples
google-sheets

Google Sheets: Get all unique names but sometimes there are 2 names in a row


I have a spreadsheet where I am trying to grab all unique names in Column "presenters". The issue is that sometimes there are 2 or more presenters with a plus symbol in between.

My attempt: =UNIQUE((QUERY(importrange("1RmRiI-nG_Dy_zWO1XdJfcRIxAhllvMIPj9RdV79xi1g", "data!C2:C"))))

Google Sheet Example.


Solution

  • You can try this formula for your desired result

    Sheets Formula:

    =UNIQUE(ARRAYFORMULA(TRIM(TRANSPOSE(SPLIT(JOIN("+", data!C2:C), "+")))))
    

    Result:

    image

    References:

    UNIQUE

    SPLIT

    JOIN

    TRANSPOSE