You can merge cells by selecting them and clicking Merge & Center on the Home tab, or combine text data using the CONCAT function.
Excel users often face confusion when they ask “how do you merge in Excel?” because the term applies to two different actions. You might want to combine two empty cells to create a header, or you might need to combine the text from two different columns (like First Name and Last Name) into one.
This guide covers both. We will walk through the visual tools for formatting headers and the formulas required to combine data without losing text.
Using The Merge And Center Button
The most common form of merging involves taking two or more adjacent cells and turning them into one larger cell. This is standard practice for creating main headers that span across multiple columns of data.
The primary tool for this is the Merge & Center button found in the ribbon.
- Select your cells — Click and drag your mouse over the adjacent cells you want to combine.
- Locate the Home tab — Look for the Alignment group in the main ribbon at the top of the window.
- Click Merge & Center — The cells will join, and any text in the top-left cell will center itself in the new space.
If you click the drop-down arrow next to this button, you will see other options. Each serves a specific layout purpose.
Merge Across
This option is useful when you have multiple rows selected. Instead of creating one giant block, it merges the cells in each row individually.
For example, if you select A1 through C1 and A2 through C2, clicking Merge Across creates two separate merged bars—one for row 1 and one for row 2. This keeps your rows distinct while joining the columns.
Merge Cells
This command combines the selected cells but does not change the text alignment. If your text was aligned to the left before the merge, it remains on the left. This is helpful when you want the structural change without the automatic formatting that comes with the standard “Center” option.
Why Can’t I Merge Data With The Button?
A frequent frustration occurs when users try to combine cells that both contain text. If you have “John” in cell A1 and “Smith” in cell B1, selecting them and clicking Merge & Center will trigger a warning.
Excel will state: “Merging cells only keeps the upper-left value and discards the other values.”
If you proceed, you will end up with one cell that just says “John.” The “Smith” data is deleted. This happens because the Merge button is a formatting tool, not a data processing tool. To keep both names, you must use formulas.
Merging Data In Excel Sheets With Formulas
To join text from multiple cells into one without losing data, you need to use concatenation. There are three primary ways to handle this, depending on your version of Excel and your specific needs.
The Ampersand Symbol Method
The fastest way to join text is using the ampersand (&) symbol. This works in every version of Excel and requires no complex syntax.
Step-by-step example:
- Select a destination cell — Click the empty cell where you want the combined data to appear.
- Start the formula — Type the equals sign
=to begin. - Click the first cell — Select the cell containing the first piece of data (e.g., A2).
- Add the separator — Type
&" "&to insert a space between your words. The quote marks tell Excel to treat the space as text. - Click the second cell — Select the next piece of data (e.g., B2).
- Press Enter — The cell will display the combined text (e.g., “John Smith”).
You can repeat this pattern for as many cells as you need. If you need a comma instead of a space, you would type &", "&.
The CONCAT Function
In newer versions of Excel (2019 and Office 365), the CONCAT function replaces the older CONCATENATE function. It is cleaner and easier to use.
The syntax is simple: =CONCAT(text1, [text2], ...).
However, CONCAT does not automatically add spaces or delimiters. You still need to manually include them in the formula, like this: =CONCAT(A2, " ", B2). The main advantage of CONCAT over the ampersand method is that it can support ranges if you do not need delimiters.
The TEXTJOIN Function
For users with Excel 2019 or Office 365, TEXTJOIN is the most powerful tool available. It solves the problem of adding separators manually between every single cell.
The formula structure looks like this: =TEXTJOIN(delimiter, ignore_empty, text1, ...).
- Delimiter — What you want between words (e.g., a space ” ” or a comma “,”).
- Ignore_empty — Type TRUE to skip any blank cells in your selection.
- Text1 — The range of cells you want to combine (e.g., A2:D2).
If you have a list of 10 items in a row, TEXTJOIN combines them all with commas in seconds. Doing that with ampersands would take much longer.
Using Flash Fill For Quick Merges
Flash Fill is a smart feature that detects patterns in your typing and replicates them. It is often faster than writing formulas for simple lists of names or addresses.
This method works best when your data follows a consistent structure.
- Type the desired result — In the cell next to your data, manually type exactly what you want (e.g., “John Smith”).
- Move to the next row — Go to the cell directly below what you just typed.
- Start typing the second result — Begin typing the next name. Excel usually recognizes the pattern immediately.
- Press Enter — Suggested text will appear in gray. Press Enter to accept it, and the rest of the column will fill automatically.
If the ghost text does not appear, you can force it. Click the Data tab on the ribbon and select Flash Fill, or use the keyboard shortcut Control + E.
Center Across Selection: A Better Alternative
Experienced Excel users often avoid the standard Merge & Center button. Physically merging cells can cause problems later. It breaks copy-paste functionality for single columns and prevents proper sorting and filtering.
There is a visual alternative that looks identical but keeps the cells separate effectively.
How to Apply Center Across Selection
This setting creates the appearance of a merged header while keeping the individual cells A1, B1, and C1 distinct and functional.
- Highlight the range — Select the cells you want the text to span across.
- Open Format Cells — Press Control + 1 or right-click and choose Format Cells.
- Go to Alignment — Click the Alignment tab in the popup window.
- Adjust Horizontal settings — Look for the “Horizontal” dropdown menu.
- Choose Center Across Selection — Select this option and click OK.
Your text now sits perfectly centered across the columns. However, you can still click on individual cells in that range, and your sorting tools will work without errors.
Troubleshooting Common Merge Issues
Sometimes the specific question “how do you merge in Excel” arises because the feature isn’t working as expected. Here are the most frequent roadblocks.
The Merge Button Is Grayed Out
If you cannot click the Merge & Center button, the worksheet usually has restrictions applied.
- Check for protection — Go to the Review tab. If you see “Unprotect Sheet,” the sheet is locked. You must unlock it to format cells.
- Look for Tables — You cannot merge cells inside an official Excel Table (created with Control + T). You must convert the table back to a standard range first. Right-click the table, select Table, and choose Convert to Range.
- Shared Workbook status — Older “Shared Workbooks” often disable merging to prevent conflict between users.
Sorting Errors With Merged Cells
Excel cannot sort a range that contains different sizes of merged cells. If you try to filter a column with some merged rows and some unmerged rows, you will receive an error message.
To fix this, you must unmerge all cells in the data set. Select the entire area, click the drop-down arrow next to Merge & Center, and choose Unmerge Cells. Once the structure is uniform, sorting will function again.
Keyboard Shortcuts For Merging
Using a mouse can slow down your workflow. While there is no default single-stroke shortcut (like Control + V) for merging, you can use the “Alt” key sequences to access ribbon commands quickly.
Windows Shortcuts:
- Alt + H + M + C — This sequence activates Merge & Center.
- Alt + H + M + A — This triggers Merge Across.
- Alt + H + M + U — This unmerges the selected cells.
To use these, press and release the Alt key. Letters will appear on the ribbon. Press H for Home, M for Merge, and then the final letter for your specific choice.
Merging Cells On Mobile Devices
The process differs slightly if you are working on an iPad, Android tablet, or smartphone. The ribbon is condensed, so the buttons are in different locations.
On the Excel mobile app, select the cells you want to combine. Look for the “Merge & Center” icon in the formatting toolbar at the bottom of the screen. If you do not see it, tap the “A” with a pencil icon (Edit) to open the full menu. Navigate to the “Home” section, scroll down to “Merge & Center,” and tap to activate.
Just like the desktop version, the mobile app will warn you if you are about to delete data by merging two non-empty cells.
Handling Date And Number Formatting During Data Merge
When you use formulas like CONCAT or the ampersand to combine cells, Excel converts everything to raw text. This can ruin date or currency formatting.
For example, if cell A1 contains the date “01/01/2024” and you merge it with text, the result might look like “Date: 45292”. This number is Excel’s internal code for that date.
Fixing with the TEXT Function:
To keep the format, you must wrap the cell reference in the TEXT function.
Formula: ="The date is " & TEXT(A1, "mm/dd/yyyy").
This forces Excel to display the date in a human-readable format within the combined string. You can use this same logic for currency (e.g., “$0.00”) or percentages (“0%”).
Unmerging Cells
Reversing a merge is simple, but you should know what happens to the data.
- Select the merged cell — Click on the large combined area.
- Click the toggle — Press the Merge & Center button again. It acts as a toggle switch.
- Check cell content — The cell splits back into its original single cells.
Important note: When you unmerge, the text remains in the top-left cell only. The other cells that were part of the group reappear as empty blank cells. Excel does not redistribute the text across the columns.
Summary Of Best Practices
Merging is a visual tool that should be used sparingly. Excessive merging creates rigid spreadsheets that are hard to edit later.
Quick check: Before you click merge, ask yourself if “Center Across Selection” creates the same look. If it does, use that instead. It keeps your grid clean.
Deeper fix: If you are building a dashboard or a form for printing, merging is perfectly fine. It helps align visual elements. But if you are storing data to be analyzed, avoid merging rows or columns entirely.
Key Takeaways: How Do You Merge In Excel?
➤ Select cells and click Merge & Center on the Home tab for headers.
➤ Use the ampersand (&) or TEXTJOIN formula to combine text data.
➤ Avoid merging cells in active data tables to prevent sorting errors.
➤ Use Center Across Selection to visually merge without breaking grid.
➤ Press Alt + H + M + C to merge quickly on Windows.
Frequently Asked Questions
Can I merge cells without losing the data?
No, not with the standard Merge button. The tool keeps only the top-left value and deletes the rest. To keep all data, you must use formulas like CONCAT, TEXTJOIN, or Flash Fill to combine the text into a new cell before deleting the old ones.
How do I find all merged cells in my sheet?
Press Control + F to open the Find dialog. Click Options, then Format. Under the Alignment tab, check the box for “Merge cells” and click OK. Click “Find All,” and Excel will generate a list of every merged instance in your worksheet.
Why is the Merge & Center button grayed out?
This usually happens because the worksheet is protected, or the cells are inside an Excel Table. You cannot merge cells within a formal Table structure. You must convert the table to a normal range or unprotect the sheet to restore the function.
Is there a shortcut key for Merge and Center?
There is no direct Control-key shortcut, but you can use the Alt sequence. Press Alt, then H, then M, then C in order. This navigates the ribbon menus using your keyboard. For Mac users, you must set up a custom keyboard shortcut in System Preferences.
Can I merge cells vertically?
Yes. Select the cells in the column you want to combine (e.g., A1 through A5). Click Merge & Center. The five vertical cells will become one tall cell. Just like horizontal merging, only the data in the top-most cell is preserved.
Wrapping It Up – How Do You Merge In Excel?
Learning how do you merge in Excel helps you organize data effectively and create professional-looking reports. Whether you are building a title for a chart using Merge & Center or cleaning up a mailing list using TEXTJOIN, the right method depends on your goal.
Remember that visual merges are for presentation, while formula merges are for data management. Mastering both techniques ensures your spreadsheets remain both beautiful and functional. Try applying the “Center Across Selection” tip on your next project to keep your data structure cleaner than ever before.