For this example, they are rows 1 and 2, covering 5 columns from Column A to E. We plan to merge A1 with A2, B1 with B2, and so on. This will result with the values stored along a single row, which is what we want.
2. Use formula =CONCAT(cell1,cell2)
The CONCAT function can be used to combine the data from two cells of different rows but along the same column. Its syntax is
Where cell1 and cell2 contain the data. If you want to combine three or more of them, use the CONCATENATE function:
Where cell1, cell2, and cell3 contain the data. For our example, we want to combine the data in Row 1 and Row 2 along the same column using the CONCAT function. The resulting formula for column A is
The same pattern is followed for the other columns covered by two rows.
The result of the formula is:
Apply the same formula to other columns to complete the row by drag-copying the cell to other columns.
3. Copy the cell containing the formula and paste it as value
We need to do this in order to keep the result of the CONCAT formula when we merge them in the next step. Select the row containing the formula, copy it using the keyboard shortcut (Ctrl+C in Windows and ⌘+C in Mac), select Paste special, then select Values only.
This will replace the formula with its output value.
4. Merge rows vertically
Select the two rows to merge, then go to Format in the main menu, click Merge cells, then select Merge vertically.
A pop-up box will appear reminding you that only the top-leftmost value will be preserved. Click OK.
5. Copy the cell containing the value and paste it as value in the merged cells
You can use the keyboard shortcuts in doing this:
Copy: Ctrl+C (Windows); ⌘+C (Mac)
Paste: Ctrl+V (Windows); ⌘+V (Mac)
You have to do this for each cell, else Google Sheets will break the merged rows into separate rows again.
You can clean it up by deleting the row we used to temporarily hold the data.