Merging two cells in multiple rows

13

3

I have an excel spreadsheet with two cells in each row that I'd like to merge. Highlighting all the cells of interest and just merging from the cell formatter seems to just merge all the cells together, when instead I just want one merged cell per row. Any ideas how to do this?

I should note that one of the columns contains values (all are either true/false) and the other column is just a null cell.

jlv

Posted 2010-11-10T13:39:37.643

Reputation: 315

Answers

22

  1. Merge the two cells in the first row by selecting Home > Alignment > Merge Cells command.
  2. Select the merged cell and select Home > Clipboard > Format Painter.
  3. Click and hold the first cell on the next row, and select all the range by dragging your mouse. (For example, if you merged cells A1 and B1 in the previous step, now select range A2:B99.)
  4. Excel applies the merge command individually to each row and you're done.

Mehper C. Palavuzlar

Posted 2010-11-10T13:39:37.643

Reputation: 51 093

Unfortunately, not working, as it destroys the content of the second cell... Am I missing something? – Kobus Myburgh – 2015-06-22T16:05:09.777

I was going to suggest selecting the cells to be merged row by row and then doing the merge. When selecting that way, Excel will merge the cells row by row. Mehper's answer is much better, though. (Much less fiddling around and much less prone to mistakes when selecting.) – RobH – 2015-06-22T16:37:01.130

@Kubus Merging only keeps the value of the leftmost/topmost cell that is being merged. In fact, in Excel 2010 (and later, I presume), if you try to merge multiple cells that contain data, a warning will appear that will tell you just that. – RobH – 2015-06-22T16:40:32.640

This is certainally the better method of the two. +1 – Joe Taylor – 2010-11-10T14:35:03.820

2

Excel has (had?) a Merge Across function. It's not on any of the toolbars by default, but is available as a customization. I usually add it to my Formatting toolbar, after the Merge Cells and Unmerge Cells buttons. (Right-click the toolbar, choose Customize, go to the Commands tab, select Format in the Categories list on the left, scroll down to find Merge Across, drag it to wherever you'd like.) Once it's on your toolbar, you can merge across however many cells with a single click. Important: Note that merging keeps the leftmost value only!

Unfortunately, Excel 2007/2010 has totally broken/gotten rid of the whole customization feature, so if you're using one of the newer versions, you're stuck doing the Format Painter thing.

Martha

Posted 2010-11-10T13:39:37.643

Reputation: 900

It is there, yes, but does not keep both columns of data, unfortunately, unless I am missing something? – Kobus Myburgh – 2015-06-22T16:04:01.727

@KobusMyburgh: merging has only ever kept the top left data. (I.e. if you're merging columns, you keep the data in the leftmost column, and if you're merging rows, you keep the data in the top row.) This has not changed between different versions of Excel. – Martha – 2015-06-22T19:30:49.530

I figured - hence I had to do a work-around. – Kobus Myburgh – 2015-06-23T11:55:36.783

1"Merge Across" is still there, it's just hidden inside the "Merge & Center" button/dropdown. – AviD – 2012-01-01T13:47:34.190

0

use the =CONCATINATE() function to combine the data from multiple columns. Set it up in the first row and then fill down to the bottom of your data set.

Example. =CONCATENATE(A1,B1,C1)

Do not forget there will be no spaces or other dividing text between the data so if you need those you can insert manually (i.e. =CONCATENATE(A1," ",B1," ",C1)

user551560

Posted 2010-11-10T13:39:37.643

Reputation: 1

2OP wants to actually merge the two cells, not just combine their values. Your answer is fine for a different question but not helpful for this one. – Engineer Toast – 2016-02-01T14:40:19.133

0

Assuming you want to go from:

|       |      |
| True  |      |   #rows selected from here 
| False |      | 
| True  |      | 
| True  |      |   #down to here
|       |      |

to:

|       |      |
|     True     | 
|     False    | 
|     True     | 
|     True     | 
|       |      |

Highlight cell area you want to edit.
Home -> (Alignment) Merge and Center -> Merge Across.

Jackson Matheson

Posted 2010-11-10T13:39:37.643

Reputation: 1

0

as long as you do not have anything in the cells you want to merge then this method should work. merge the first two, then copy the merged cell. now select all the cells that you want to merge in the same fashion and paste.

Xantec

Posted 2010-11-10T13:39:37.643

Reputation: 2 303

Unfortunately, I do have something in one of the columns. All the values are either true or false, so will this work if I sort by true/false and then do your method? – jlv – 2010-11-10T13:47:10.583

It worked by just sorting out by values first, and then applying your method. – jlv – 2010-11-10T14:07:39.507

0

Simply merge a couple of cells the way they should be, then copy the resulting cells and then Paste- Paste formatting on the other rows/columns. (Excel 2010)

Sop

Posted 2010-11-10T13:39:37.643

Reputation: 1

0

Would've loved a more elegant solution on this one.

Unfortunately, all merging actions throw the rest of the data out (keeps upper left, top most data only).

Not sure if this will help you (or if you still need a solution) but to circumvent this, I saved the file as a CSV, added a place-holder column with ____ as the text, and saved the file, then opened it in a text editor, and replaced ____, with an empty value.

Thus, the result was data,data first becoming data,____,data in the CSV file, then becoming datadata after replacing in the text editor.

Hope this helps someone, as you are unlikely to still need this after almost 5 years.

Kobus Myburgh

Posted 2010-11-10T13:39:37.643

Reputation: 123

-2

Highlight the range of cell by -

Clicking on the drop down arrow next to "merge & center".

user368455

Posted 2010-11-10T13:39:37.643

Reputation: 1