Function Problems

How to Insert Commas Between Excel Cell Values Using TEXTJOIN

Algirdas JasaitisAlgirdas Jasaitis Oct 26, 2026 868 views

Question details

The user needs to combine numbers or text from multiple separate cells into one single cell, formatted as a comma-separated list.

How to Insert Commas Between Excel Cell Values
Product
Excel
Device & OS
not provided
Scenario
Consolidating and formatting data spread across multiple cells into a single string for easier copying, exporting, or reporting.
Observed behavior
Values exist in separate cells (e.g., A1:A3) and need to be merged into one continuous comma-separated list without having to type commas and combine them manually.
Before you start

Identify the exact range of cells you want to merge, and check if your computer's regional settings use commas or semicolons as decimal marks, as this affects the required syntax for formulas.

Solution 1Recommended

Use the TEXTJOIN Function to Combine Cells

The TEXTJOIN function is the most efficient method for merging multiple cell values with a specific delimiter while automatically skipping empty cells.

By specifying a comma as your delimiter, TEXTJOIN merges an entire range of cells into one string effortlessly. It also features a built-in argument to ignore blank cells, preventing awkward double commas in your final text.

1
Select a destination cell

Click on an empty cell in your spreadsheet (for example, C1) where you want the final comma-separated list to be displayed.

2
Enter the TEXTJOIN formula

Type the formula `=TEXTJOIN(",", TRUE, A1:A3)` into the formula bar, replacing A1:A3 with the actual range of cells you want to combine.

3
Apply the formula

Press the Enter key on your keyboard to execute the formula and instantly view the combined, comma-separated values.

Use the TEXTJOIN Function to Combine Cells
Regional Setting Adjustments: If your computer's regional settings use a comma as the decimal separator (common in European countries), you must use semicolons between the formula arguments instead: `=TEXTJOIN(","; TRUE; A1:A3)`.
Simplify Data Tasks

Combine Excel Cell Values Effortlessly with WPS Spreadsheet

WPS Spreadsheet offers full support for advanced data functions like TEXTJOIN, making it incredibly simple to combine and format multiple cell values with commas automatically.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing the data you wish to merge.
  2. 2. Input the formula: Select a blank cell and type `=TEXTJOIN(",", TRUE, A1:A3)`, adjusting the formula to highlight your specific data range.
  3. 3. Get instant results: Press Enter to instantly merge the cells into a clean, comma-separated list.
Fully compatible with Microsoft Excel formulas and file formats (.xlsx), ensuring seamless file migration.Built-in support for the TEXTJOIN function to handle complex data manipulation without manual editing.Free, lightweight software with an intuitive, user-friendly interface for maximum productivity.
microsoft office alternative - wps office

Frequently Asked Questions

What does the 'TRUE' argument in the TEXTJOIN formula do?

The 'TRUE' argument instructs the function to ignore any blank cells within your selected range. This ensures your final text doesn't end up with consecutive commas if a cell in the middle of your data happens to be empty.

Why am I getting an error when typing the TEXTJOIN formula?

This is often due to regional format settings on your computer. If your system uses a comma as a decimal point, you must use semicolons to separate formula arguments. Try writing your formula as `=TEXTJOIN(","; TRUE; A1:A3)` instead.

How can I add a space after the comma in the combined list?

To add a space after the comma, simply include a space inside the quotation marks of the delimiter argument. Your formula should look like `=TEXTJOIN(", ", TRUE, A1:A3)`.

Can I use TEXTJOIN to combine text from non-adjacent cells?

Yes, you can select multiple non-adjacent cells or ranges by separating them with a comma (or semicolon, depending on your region) in the formula, such as `=TEXTJOIN(",", TRUE, A1, B3, C5)`.