Consolidating Ad Campaign Keywords
A marketing analyst needs to efficiently combine a list of individual keywords from a spreadsheet into a single, comma-separated string. This consolidated string is then used for bulk uploads to advertising platforms like Google Ads or Facebook Ads. Manually copying and pasting or typing each keyword with a delimiter is time-consuming and prone to errors, especially with large keyword lists.
=TEXTJOIN(", ",TRUE,B2:B5) How it works: The `TEXTJOIN` function concatenates text from multiple ranges or strings. The first argument `", "` specifies the delimiter (a comma followed by a space) to be placed between each keyword. The second argument `TRUE` tells Excel to ignore any empty cells within the specified range, preventing extra delimiters. The third argument `B2:B5` is the range containing the keywords to be joined.
Data Setup
| Keyword Category | Keyword |
|---|---|
| Electronics | laptops |
| Electronics | smartphones |
| Electronics | tablets |
| Electronics | wearables |
Step-by-Step Guide
Identify the range of cells containing the keywords you want to combine (e.g., B2:B5).
Choose an empty cell where you want the combined string to appear.
Enter the formula `=TEXTJOIN(", ",TRUE,B2:B5)`.
Press Enter to see the consolidated keyword string.