Management

Merge Cells in Excel: 4 Easy Ways and Tips

Merging Cells in Excel: 4 Easy Methods and Tips

Excel and Google Sheets: Course from beginner to PRO in 30 days

Learn more

Efficient use of the "Merge" button in Excel

This function is ideal for formatting tables, allowing you to improve them appearance. For example, you can use it to create a common header for several columns.
It is important to remember that when merging cells, only the value of the first cell is preserved, and the data from other cells is deleted.
Let's consider a practical example: you have a table with a catalog of cars, and you want to format the header for the columns with characteristics, removing unnecessary empty cells.

Initial view of the car catalog table. Screenshot: Skillbox

First, select the cells above the columns containing the car characteristics: year of manufacture, engine size, gearbox, drive, steering wheel.

Select the cells that need to be merged. Screenshot: Skillbox

On the Home tab, select the "Merge Cells" or "Merge and Center" button, depending on the desired visual result.

Click the "Merge and Center" button. Screenshot: Skillbox

As a result, you will get one cell instead of five. Enter a title and change the design as desired.
Now you have a title "Car Specifications".

This is what the cell looks like after merging and changing the design. Screenshot: Skillbox

Similarly, we will remove the extra empty cell above the "Make, model" cell. To do this, select them simultaneously and click the "Merge and Center" button.

Select the cells you want to merge and click the button. Screenshot: Skillbox

Now the table looks like this:

This is what the table looks like after formatting using the "Merge Cells" button. Screenshot: Skillbox

To unmerge cells, select them and click the "Unmerge Cells" button. You can select the entire table, and Excel will automatically find the merged cells and unmerge them.

Unmerging all cells. Screenshot: Skillbox

Now the table looks like this. You can make changes and merge the cells again.

This is what the table looks like after undoing the merge. Screenshot: Skillbox

In addition, Excel has a "Merge by Rows" button. It allows you to merge cells row by row. For example, if you have a range of three columns and seven rows, you can combine them into a single column while maintaining the same number of rows.

Click the "Merge by Rows" button. Screenshot: Skillbox

The result is a table with one column, while the number of rows remains the same.

The result of combining by rows. Screenshot: Skillbox

There are several additional methods for merging cells while preserving all the data in them. These functions collect the values ​​from the selected cells into a single blank cell.
For example, you might want to combine all the car specifications into one string to use to create a receipt. Let's look at how to do this using three functions.

Efficient Use of the CONCATENATE Function in Excel

The CONCATENATE function is ideal for combining a small group of cells while preserving all the data. This can be useful when you need to quickly gather information from different sources in one place.
The main feature of using the CONCATENATE function is that each cell must be specified separately as an argument. Unfortunately, it is not possible to select a large range of cells at once, which can slow down the process, especially when working with large tables.
The function combines data from the selected cells into a resulting cell. In this case, it is often necessary to additionally format the result - add spaces, punctuation marks, or text labels. These changes will have to be made manually in the formula bar.
To start using it, select the cell in which the function will collect values. For example, create a new column "Receipt Data" and select the first cell to enter the formula.

Selecting a cell for the combined data. Screenshot: Skillbox

Open the window for building the function. To do this, you can use one of two methods: go to the Formulas tab and click Insert Function, or click the fx icon in the formula bar in any table tab.

Click here to open the build window. Screenshot: Skillbox
One ​​click — and the builder window is open. Screenshot: Skillbox

In the Formula Builder window that opens, use the search bar to find the CONCATENATE function and click "Insert function".

Click here to select the CONCATENATE function. Screenshot: Skillbox

After that, a window for entering the function arguments will appear. Specify "Text 1," "Text 2," and so on for the cells you want to combine. For example, if you have five cells, add three additional arguments using the + button.

Window for entering arguments for the CONCATENATE function. Screenshot: Skillbox

Fill in the function arguments one by one, selecting values ​​from the table. For example, for "Text1", select the cell with the year of manufacture (B4).
The order of actions for specifying values ​​is as follows:
The selected value will automatically be transferred and displayed in the link bar as fx=CONCATENATE(B4). Repeat the process for the remaining arguments: "Text2" is the value of the "Volume" cell, "Text3" is "Gearbox", "Text4" is "Drive", "Text5" is "Steering Wheel".
As a result, your function will look like this: fx=CONCATENATE(B4; C4; D4; E4; F4). Click "Done."

Result of the CONCATENATE function. Screenshot: Skillbox

The function successfully merged the data from all cells, but spaces and punctuation were not added automatically. You will need to enter them manually in the formula bar.
Add commas and spaces between argument values ​​using the following format: ‘, ‘;.

Adding a separator between data cells. Screenshot: Skillbox

As a result, the function will look like this: fx=CONCATENATE(B4; «, «; C4; «, «; D4; «, «; E4; «, «; F4). Press Enter.

The value of merged cells has become more readable thanks to the addition of commas and spaces. Screenshot: Skillbox

In the same way, you can add not only spaces and punctuation marks, but also entire phrases or words for more informative output.
For our example, you can change the function like this: fx=CONCATENATE(«year of manufacture «; B4; «, volume «; C4; «, gearbox «; D4; «, drive «; E4; «, steering wheel «; F4). Don't forget to include all the necessary spaces between the data.

Now the total value of the merged cells contains the headers. Screenshot: Skillbox

After that, you need to drag the resulting formula down the column to automatically combine the characteristics of all other cars, ensuring data consistency.

This is what the result looks like. The combined values ​​can be used in receipts. Screenshot: Skillbox

CONCAT Function: Efficiently Combine Cells in Excel

The CONCAT function is ideal for combining large ranges of cells, keeping all the data in a single cell. This is especially useful when working with large amounts of information when a compact presentation of data is required.
The function allows you to select an entire range of cells, however, as with the CONCATENATE function, the combined values ​​will be stuck together without any separators.
There are two ways to add separators to the resulting cell. The first method is to specify separators directly in the formula window after each cell. The second method is to manually enter them in the reference bar.
To use the CONCAT function, similar to the CONCATENATE function, select the cell where the combined value will be placed. Then open the formula window and find the CONCAT function.

Window for entering arguments for the CONCAT function. Screenshot: Skillbox

In the opened formula builder window, the argument "Text 1" will appear, where you need to specify the range of cells to combine. For example, select all the cells with car characteristics and click "Done".
The selected range will appear in the formula reference line: fx=CONCATENATE(B4:F4).

Specify the range of cells you want to merge and click here. Screenshot: Skillbox
Result of the CONCAT function. Screenshot: Skillbox

As in the previous case, the function combined the data from all the cells, but they were glued together. To add spaces and punctuation marks in the final result, you will need to enter each argument separately, combining them with separators.
Return to the function building window and change the arguments as follows: "Text1" is the value of the "Year of Production" cell, "Text2" is ‘, ‘, "Text3" is the value of the "Volume" cell, "Text4" is ‘, ‘. Continue to the last cell, alternating values ​​​​and separators.
After that, click "Done". The final formula will look like this: fx=CONCATENATE(B4; ‘, ‘; C4; ‘, ‘; D4; ‘, ‘; E4; ‘, ‘; F4), and the data will be separated by commas and spaces.

Now the data in the merged cell is separated from each other. Screenshot: Skillbox

To add not only commas and spaces, but also text elements, you need to specify them in the intermediate arguments of the function. For example, let's change the data to: "Text2" — ', volume', "Text4" — ', gearbox', "Text6" — ', drive', "Text8" — ', steering wheel'.

Replacing the data of intermediate arguments. Screenshot: Skillbox

As a result, the function will return a value where all data will be separated by additional words. The formula will look like this: fx=CONCATEN(B4; ', volume '; C4; ', gearbox '; D4; ', drive '; E4; ', steering wheel '; F4).

The function combined the cell data and added additional words between them. Screenshot: Skillbox

As in the previous method, changes to the formula can be made directly in the link bar, but using the formula building window is more convenient - this reduces the likelihood of errors.
Drag the resulting value down to the end of the table - the function will combine the characteristics of all other cars according to the same principle.

This is what the result looks like for the entire table. Screenshot: Skillbox

A Complete Guide to the CONCATENATE Function in Excel

The CONCATENATE function is ideal for combining large ranges of cells, allowing you to keep all the data in one place. This is especially useful when you need to process large amounts of information and present it in a more readable format.
To use this function, select the cell where all the values ​​will be collected. Open the function builder and find the CONCATENATE function.
A formula builder window will appear, where you will need to specify several parameters. Let's take a closer look at each of them.

Entering arguments for the CONCATENATE function. Screenshot: Skillbox

The first parameter is "Separator." This is the value that will be inserted between the merged cells. It will be the same for all cells. For example, you can use a comma and a space: «, «.

Adding a separator between cell values. Screenshot: Skillbox

The next parameter, "Skip_empty", determines how the function will handle empty cells. Possible options: enter 1 (TRUE) to ignore empty cells and 0 (FALSE) to include them.

  • 1 (TRUE) — empty cells are ignored, separators are not duplicated.
  • 0 (FALSE) — empty cells are included, separators are inserted.

In our case, there are no empty cells, so we can set the value to 1. This will avoid unnecessary separators.

Ignoring empty cells in a function. Screenshot: Skillbox

The last parameter is "Text1". Here you specify the values ​​of the cells you want to combine. You can select one range or enter each value separately. In our example, we will select an entire range.

Selecting a range of cells to merge. Screenshot: Skillbox

The final function in the link line will look like this: fx=CONCATENATE(«, «;1;B4:F4). After that, click "Done" and stretch the resulting cell to the remaining rows.

Result of the CONCATENATE function. Screenshot: Skillbox

As a result, the function will combine the data from all cells, separating them with commas and spaces. This is not only convenient but also saves time. However, if you need to add various additional text to each value, you will have to do this manually using the formula builder. Details can be found in the instructions for the CONCAT function.
It is worth noting that Google Sheets also has a function for merging cells. You can use the "Merge" button, which works similarly to Excel, or the CONCATENATE function. However, in the latter case, you will have to enter the values ​​manually. If you want to use a separator, such as a comma and a space, the function would look like this: fx=CONCATENATE(C4; «, «; D4).

Excel and Google Sheets: 7 Steps to Mastery

Want to become a PRO in Excel and Google Sheets? Learn 7 effective methods of work automation!

Learn more