Skip to main content

How to convert column list to comma-separated list in Excel?

Author: Sun Last Modified: 2025-07-03

When working with Excel data, you may often need to transform a vertical list of items into a single, comma-separated string. Whether you’re preparing input for a database, crafting a report, or simply tidying up your worksheet, there are multiple ways to achieve this. Below, we’ll explore four optimized methods:

Convert column list to comma-separated list with formulas

Convert column list to comma-separated list with Kutools for Excel

Convert column list to comma-separated list with VBA code

convert a column list to a comma-separated list


Convert column list to comma-separated list with formulas

Excel doesn’t include a column-to-comma list function, but you can achieve it easily: use TEXTJOIN in Office 365/2019+, or CONCAT+IF in any version to streamline your data.

Formula 1: TEXTJOIN function (Excel 2019 and later versions, Office 365)

As Excel's most advanced concatenation function, TEXTJOIN streamlines the process with its dual functionality - flexible delimiter selection and automatic empty cell management - providing the simplest solution for contemporary Excel users.

1. Select the cell where you want the comma-separated list to appear, enter the following formula:

=TEXTJOIN(", ", TRUE, A2:A10)

2. Press Enter to get the comma-separated value.

convert a column list to a comma-separated list with textjoin function

Explanation of this formula:
  • ", " is the delimiter (comma plus space).
  • TRUE tells Excel to skip empty cells.
  • A2:A10 is your source range.
Pro Tip: If you want unique items only, you can nest UNIQUE:
=TEXTJOIN(", ", TRUE, UNIQUE(A2:A10))
Pros:
  • 🔹Simple implementation: Just one function needed.
  • 🔹Flexible delimiter: Can use ", " (comma+space) or just "," as needed.
  • 🔹Automatic handling: Skips blank cells when TRUE is set for ignore_empty.
Cons:
  • 🔸Requires Excel 2019 and later versions / Office 365.

Formula 2: CONCAT and IF functions (All Excel versions)

Before TEXTJOIN, you could combine CONCAT with IF function to assemble a list and then strip off the leading delimiter.

1. Select the cell where you want the comma-separated list to appear, enter the following formula:

=CONCAT(IF(A2:A10<>"", A2:A10 & ", ", ""))

2. Press Ctrl + Shift + Enter keys together to get the result.

convert a column list to a comma-separated list with CONCAT function

Explanation of this formula:
  • IF(A2:A100<>"", A2:A100 & ",", ""): Checks each cell in A2:A100. If a cell isn’t empty, returns its value plus a comma; otherwise returns an empty string.
  • CONCAT(...): Concatenates all elements of that array into one continuous string.
Pros:
  • 🔹Broad compatibility: Works in any Excel version that supports array formulas, without relying on newer functions.
  • 🔹Ignores blank cells: The IF check automatically skips over empty cells.
Cons:
  • 🔸Cumbersome operation: Must be entered as an array formula, requiring users to press Ctrl + Shift + Enter—something many beginners forget.
  • 🔸Poor performance: Calculation can slow down significantly or even hang when handling large datasets (tens of thousands of rows).
  • 🔸Fixed result: You need extra steps to remove the trailing comma if you want to strip the last delimiter.

Convert column list to comma-separated list with Kutools for Excel

Kutools for Excel includes a powerful Combine Rows, Columns or Cells without Losing Data utility that lets you merge the contents of an entire column into a single cell in just a few clicks. By selecting your source range and specifying a delimiter—whether it’s a comma, semicolon, space, or any custom symbol—you can instantly produce a consolidated, delimited list without manually copying and pasting each item. The tool also offers options to ignore blank cells, preserve original formatting, making it an ideal solution for quickly transforming vertical data into tidy, comma-separated lists.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the column list that you will convert to a comma-separated list, and click Kutools > Merge & Split > Combine Rows, Columns or Cells without Losing Data.

click Combine Rows, Columns or Cells without Losing Data feature of kutools

2. In the opening Combine Columns or Rows dialog box, you need to:

  • (1) Check the Combine into single cell option in the To combine selected cells according to following options section.
  • (2) In the Specify a separator section, check the Other separator option, and type comma ", ".
  • (3.) Choose how to handle the original cells data. (You can keep the contents of the original cells, or delete the contents from the original cells.)
  • (4.) Specify the output cell, under the Place the results to section, select Other Cell option and click to select a cell to output the result.
  • (5.) Finally, click OK button.
    set options in the dialog box

The result is inserted in your specified target cell.

convert a column list to a comma-separated list with kutools

Pros:
  • 🔹Extremely user-friendly.
  • 🔹No formulas or code.
  • 🔹Handles large ranges smoothly.
  • 🔹Merge rows, columns, or ranges with any delimiter, preserve formatting, and choose the output location.
Cons:
  • 🔸Requires installation.

Convert column list to comma-separated list with VBA code

Alternatively, if you’d rather automate the task or need to handle larger, dynamically changing ranges, you can write a VBA macro that loops through each cell in your specified column, appends its non-empty value followed by a comma (or any delimiter you choose), trims off the extra delimiter at the end, and then outputs the fully concatenated, comma-separated string into a target cell.

1. Hold  Alt and F11 keys on the keyboard to open a Microsoft Visual Basic for Application window.

2. Click Insert > Module, and copy the VBA into the module.

VBA: Convert column list to comma-separated list

Sub ChangeRange()
    ' Updateby Extendoffice
    Dim rng As Range
    Dim InputRng As Range, OutRng As Range
    Dim outStr As String
    Dim xTitleId As String
    xTitleId = "KutoolsforExcel"
    Set InputRng = Application.Selection
    Set InputRng = Application.InputBox("Select source range:", xTitleId, InputRng.Address, Type:=8)
    Set OutRng = Application.InputBox("Output to (single cell):", xTitleId, Type:=8)
    outStr = ""
    For Each rng In InputRng
        If Len(Trim(rng.Value)) > 0 Then
            If outStr = "" Then
                outStr = rng.Value
            Else
                outStr = outStr & ", " & rng.Value
            End If
        End If
    Next rng
    OutRng.Value = outStr
End Sub

3. Click Run button or press F5 to run the VBA. A dialog displayed on the screen, and you can select the column list you want to convert. See screenshot:

vba code to select the column list you want to convert

4. Click OK, then another dialog popped up for you to select a cell. See screenshot:

vba code to select a cell for putting the result

5. Click OK, and all values in the column list have been converted to a list separated by comma in a cell.

convert a column list to a comma-separated list with vba code


Conclusion:

  • For simplicity and performance, use TEXTJOIN in Excel 2019/365.
  • For compatibility, the CONCAT + IF array method works in all versions.
  • For one-off tasks without formulas, Kutools delivers a point-and-click solution.
  • For full automation or complex rules, a VBA macro is the most flexible.

Choose the method that aligns with your Excel version, frequency of the task, and comfort with add-ins or VBA. With these optimized techniques in your toolkit, converting any column into a neat, comma-separated list becomes a breeze. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials to help you master Excel.


Related Articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!