How to merge cells in excel and keep all text
Tutor 5 (69 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Merging cells in Excel usually combines multiple cells into one. Standard merging removes all content except the upper-left cell. To merge cells and keep all text, follow these methods.
Method 1: Using the CONCATENATE or TEXTJOIN Function
-
Select a blank cell where you want the combined text to appear.
-
Use the formula to combine the contents of multiple cells. For example, if you want to merge cells A1, B1, and C1:
For Excel 2016 and earlier:
=CONCATENATE(A1, " ", B1, " ", C1)
For Excel 2019 and later / Excel 365:
=TEXTJOIN(" ", TRUE, A1:C1)
-
The first argument
" "adds a space between cell contents. -
TRUEignores empty cells.
-
Press Enter. The cell now contains all text from the selected cells.
-
Copy the result and paste it as values if you need to replace the original cells.
Method 2: Using Flash Fill
-
In a blank cell next to your data, type the combined text manually for the first row.
-
Start typing the second row. Excel will suggest the merged result.
-
Press Enter to accept the Flash Fill suggestion.
Method 3: Using VBA Macro (for multiple merges quickly)
-
Press
Alt + F11to open the VBA editor. -
Go to Insert → Module and paste the code:
Sub MergeKeepAllText()
Dim Rng As Range, Cell As Range
Dim CombinedText As String
Set Rng = Selection
CombinedText = ""
For Each Cell In Rng
If Cell.Value <> "" Then
CombinedText = CombinedText & Cell.Value & " "
End If
Next Cell
Rng.Merge
Rng.Value = Trim(CombinedText)
End Sub
-
Close the editor.
-
Select the cells you want to merge.
-
Press
Alt + F8, selectMergeKeepAllText, and click Run.
Notes
-
Standard Merge & Center removes all data except the top-left cell.
-
Using formulas or VBA ensures no data is lost.
-
Flash Fill works well for small ranges but not for large datasets.
This method allows keeping all text while merging, preventing accidental data loss.
Do you want me to show a method that merges cells and preserves formatting as well?
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to merge excel files into one file
Answers · 1
How to merge excel files into one
Answers · 1
How to mail merge from excel to email
Answers · 1
How to mail merge from excel to pdf
Answers · 1