SOLUTION (might be some simpler ones):
- Unpivot the table to create rows which are ID | TYPEOFDATA | VALUE.
- Merge the three columns to create unique values in a NEWCOLUMN
- Dedupe NEWCOLUMN, no merging
- Filter rows with blank values in VALUE
- Pivot
- Merge rows according to ID
- Find double commas and replace with single commas
- Regex to replace /^,* and [*,]$ with nothing.
I wouldn’t have had to do this if there was an “ignore blank” and “don’t merge identical values” in the dedupe step. Might be a good feature, but I already asked for a new feature yesterday.
[/quote]