How to combine multi-row, multi-column content into a single cell in Excel
Clearly explain how to merge content from multiple columns in the same row or multiple rows in the same column into a single cell, including the use of the & symbol, CONCAT, and TEXTJOIN functions, as well as how to handle common issues such as delimiters, line breaks, date formats, and data loss when merging cells.
In Excel, the same person’s address might be split across three columns, and a project’s progress could be scattered over a dozen rows, yet reports or data-import systems require all this information to be in a single cell. Many people instinctively click"Merge & Center,"only to find that only the content of the top cell remains, while the other data quietly disappears.
This article is for anyone who needs to concatenate text or numbers from multiple rows or columns into a single cell. By the end, you’ll be able to distinguish three scenarios: concatenating several columns in the same row using & or CONCAT; merging multiple rows in the same column with TEXTJOIN using a delimiter; and configuring settings to preserve line breaks. The formulas in this article are primarily based on Excel 2019 and later versions, with alternative approaches for earlier versions also provided.
How to merge multiple rows and columns into a single cell? One-sentence conclusion
To combine multi-row, multi-column content, use a formula to concatenate the text into a new cell instead of using the"Merge Cells"function. The formula preserves the source data, with the result placed separately in one cell.
| Your situation | Recommended practice | Reason |
|---|---|---|
| Several fixed cells on the same row, such as Name, Province, and City | Use & to connect, with a separator in between. | The formula is intuitive and works in all versions. |
| Multiple columns on the same line, with newer versions, and you want to ignore whitespace. | Use CONCAT or TEXTJOIN | The syntax is shorter, and you can skip whitespace. |
| Multiple rows in the same column, separated by a pause mark or a comma. | Use TEXTJOIN with a delimiter | A single formula handles the entire region; there is no need to write it cell by cell. |
| Multi-line content should be displayed on separate lines within a single cell. | TEXTJOIN combined with CHAR(10), with automatic line breaks enabled | The result is displayed on multiple lines within the cell, making it easier to read. |
| The source data will be continuously updated. | Reference the original table using formulas; do not paste manually. | After the original data changes, the merged result automatically updates accordingly. |
Before You Begin: First, Confirm These Points
Before you start, check the following points to avoid most rework.
- Verify your Excel version. CONCAT and TEXTJOIN require Excel 2019 or later. If you enter a formula and get a #NAME? error, it usually means your version is too old; use the & operator instead.
- Understand merged cells. Merging cells only changes the appearance and retains the value from the top-left cell. Selecting multiple cells and clicking "Merge Cells" deletes the contents of the other cells, so generate results with formulas before merging text.
- Check dates and numbers. Dates in Excel are essentially numbers; when concatenated directly with &, they may appear as serial numbers like 45678. Use the TEXT function to convert them to text before concatenation.
- Watch out for blanks and extra spaces. Cells that appear empty may contain spaces, causing consecutive delimiters in the result. Setting the second argument of TEXTJOIN to TRUE skips truly blank cells but does not skip cells containing only spaces.
- Back up your original data first. Formulas do not modify the source data, but if you plan to convert the results to plain text or delete the original columns, copy the worksheet first and confirm the results are correct before proceeding.
Steps to Merge Multi-Row Content of a Column Using TEXTJOIN in Excel
Below, we take A2 to A8 as 7 rows of product names, with the results placed in C2, as an example.
- Select the source data range. Confirm the content to be merged, such as A2:A8, and note the row number range to avoid missing any rows.
- Enter the formula in the result cell. In C2, enter =TEXTJOIN(", ",TRUE,A2:A8) and press Enter. The first argument is the delimiter; TRUE means skip blank cells; the third argument is the range to be merged.
- Change the delimiter. If you need commas, replace the text inside the quotes with an English comma or a Chinese comma, for example =TEXTJOIN(",",TRUE,A2:A8).
- Display items on separate lines. If you want each entry on its own line, replace the delimiter with CHAR(10), i.e., =TEXTJOIN(CHAR(10),TRUE,A2:A8).
- Enable automatic line wrapping. Select C2, go to Format Cells, check Wrap Text, and adjust the row height accordingly; otherwise, the line break will not be displayed.
- Expand the range when merging multiple columns. To merge three columns in the same row, such as A2:C2, use the formula =TEXTJOIN(", ",TRUE,A2:C2) and then fill it down.
- Handle dates and numbers. If the range contains dates, convert them cell by cell, for example =TEXT(A2,"yyyy-mm-dd"), and then include them in TEXTJOIN.
- Fix the result. After confirming it is correct, select C2, copy it, and use Paste Special > Values. At this point, the result becomes plain text and no longer depends on the original data.
Check each item after completion
After obtaining the results, check the following items one by one.
| Check item | How do you see it? | What should I do if there is a problem? |
|---|---|---|
| Is the content complete? | Compare with the source data and count the number of entries. | The entry is missing mostly because the selected region was too short; please re-select the complete region. |
| Date and number formats | Check whether numbers like 45678 appear in the results. | Use the TEXT function to specify a format for dates. |
| Is the delimiter redundant? | Check whether there are consecutive enumeration commas (、) at the beginning, end, or middle. | First, remove extra spaces from the source data, or apply the TRIM function to the cells. |
| Whether to display line breaks | Check whether the result cell is split across lines. | Enable automatic line wrapping and increase the row height. |
| Whether the original data has been modified | Check whether the source column is still intact | The formula does not modify the original data; if overwritten by mistake, use Undo to restore it. |
| Is the formula available? | Check whether errors such as #NAME? are displayed. | Use the & symbol or CONCATENATE when the version is earlier than 2019. |
📊 Core Comparison
There are four common methods for merging text, each suitable for different scenarios.
| Method | Suitable scenarios | Advantages | Note |
|---|---|---|---|
| & operator | Concatenation of several fixed cells | All versions are available, with clear logic. | When there are many columns, formulas become longer, and blank cells leave extra delimiters. |
| CONCATENATE | Concatenating a small number of cells in older versions | Familiar writing style | No regions are accepted; each cell must be written separately. |
| CONCAT | Concatenate a region in the new version | You can directly reference the region. | Without a delimiter parameter, you need to add delimiters yourself within the region. |
| TEXTJOIN | Multiple rows or columns, requiring delimiters | Once a formula is completed, you can skip the blank space. | Requires Excel 2019 and later versions |
| Flash Fill (Ctrl+E) | A small amount of data with an obvious pattern | No need to write formulas. | When the pattern is unstable, the results are unreliable and must be verified item by item. |
❓ Frequently Asked Questions (FAQ)
1. Why is there only one cell's content after merging cells?
In Excel, merging cells retains only the value in the top-left cell, and the contents of the other cells are permanently deleted. To preserve all content, first use a formula to generate the merged text, then decide whether to apply formatting merge.
2. What if there is no TEXTJOIN?
You can concatenate them one by one using &, or in an auxiliary column, use =previous row's result&separator¤t row to fill down, and finally take the result from the last row. This method works in all versions.
3. Will the merged result change as the original data changes?
Yes. The formula result depends on the source data; it will update if the source data changes. If you need a fixed value, copy the result and use Paste Special to paste it as a value.
4. After merging dates, they are displayed as numbers—how can this be resolved?
Use the TEXT function to specify the format, for example =TEXT(B2,"yyyy year m month d day"), and then concatenate it. When preserving decimal places in numbers, you can also use a format like TEXT(C2,"0.00").
5. Can tables in scanned documents or PDFs be merged?
Yes, but first convert the content into an Excel spreadsheet. For scanned documents, perform OCR recognition first; the results may contain typos or misalignment, so please verify each item individually before merging, especially important data such as amounts and numbers.
📝 Summary
Use & or CONCAT to concatenate multiple columns in the same row, and use TEXTJOIN with a delimiter to combine multiple rows in the same column; handle date, blank cell, and version issues before merging. Using formulas to merge text avoids data loss that can occur with merged cells and makes the results easier to verify.

