I have a spreadsheet that creates a text string from cells in a row using CONCATENATE. Duplicate entries in the list are common and are used in the spreadsheet for data integrity checking. Blanks are also common. I am looking for a function that would convert the string :
;;;mammal;dog;Rover;;;;black;Rover;;;29/01/2020;Rover;;;
into
mammal;dog;Rover;black;29/01/2020;
or
;mammal;dog;Rover;black;29/01/2020;
(i.e., the leading “;” indicating an empty set member)
To date this was done by search and replace for empty sets and manual deletion for complex fields. As the material has got more extensive I am looking / hoping for a SET function that can be called in a cell, perhaps like
=SET(Range,"delimiter’,IncludeEmptySet)
The Range could be the original cells or the concatenated string. If it’s the string, in my mind the process might be to convert the string to a list, identify a set of list items (optionally with or without the empty set as a list member) and return the set as a similarly delimited string. For my application order is not important, however I can imagine applications where ordering (such as alphabetically, or by length of list item, or by position in the original string) is useful. In Python the set() function offers a (roughly) equivalent functionality.
I have not been able to find a Calc function offering the set() functionality. Can anyone offer a way forward please?