Concatenates multiple ranges or arrays and removes duplicates
=TEXTJOIN(delimiter, TRUE, UNIQUE(TOCOL(range, 1)))This function is particularly useful for combining lists from different sources into a single, deduplicated list of unique items. It helps streamline data by removing redundancies and provides a clean, easy-to-read output. To use this function, simply place your desired range within the "CONCAT_UNIQUE" function such as "CONCAT_UNIQUE(A1:A30) to see all unique items from your specified range neatly concatenated into one string. This function is ideal for managing inventory lists, consolidating responses from forms, or any situation where merging and deduplicating data is necessary.
Use the inputs below to create CONCAT_UNIQUE as a reusable custom function in Google Sheets.
Learn how to add custom functions to Google SheetsCONCAT_UNIQUE
Concatenates multiple ranges or arrays and removes duplicates
=TEXTJOIN(delimiter, TRUE, UNIQUE(TOCOL(range, 1)))
range
delimiter
The values you want to join together
A1:A10
The text you want to use to separate the concatenated values
", "
Other functions in the same categories: List & Array Operations, Text Manipulation & Formatting
Returns the first non-blank value in a range
Compare two ranges and list the elements that are in the first but not in the second
Counts the total number of words within a cell or range of cells
Return uppercase initials from a name or phrase
Normalize whitespace without altering punctuation or letter casing
Removes diacritics from text (for example é to e, ü to u)
Named functions enable the creation of custom, reusable formulas that mimic built-in functions, streamlining calculations and data manipulations. These functions simplify complex formulas, making spreadsheets more readable and less prone to errors. By encapsulating intricate logic within a single function call, they enhance consistency across your data. Utilizing named functions reduces the need to write lengthy formulas repeatedly, thereby improving workflow efficiency and productivity in data analysis and management.
Download and import — fastest way to add the function but does not include argument descriptions and examples
Follow these simple steps to download and import a function into your spreadsheet. This method is the quickest and easiest way to add the named function to your Google Sheets document, but will not include the argument description and examples.
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.
Copy and paste — copy and paste each property one at a time
Follow these simple steps to integrate a custom named function into your spreadsheet:
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.