How to merge cells in a row, horizontally only, not vertically?

D

Dmitriy Kopnichev

Hello
How to merge cells in a row, horizontally only, not vertically? I want cells
in a selected area to merge with other cells in the same row, not in the
same column.
 
F

Frank Kabel

Hi
just select these cells and goto 'Format - Cells - Alignment'
That said: I strongly recommend NOT to use merged cells as they will
cause problems for filtering, sorting, etc.
 
D

Dmitriy Kopnichev

'Format - Cells - Alignment' will merge the cells horizontally and
vertically, not horizontally only.
How to make a common heading for two rows or columns then?
 
J

JE McGimpsey

Columns: Select two columns, choose Format/Cells/Alignment/Horizontal:
Center across selection
 
F

Frank Kabel

Hi
if you only select cells from ONE row this should work?
What cells do you select before you goto this menu?
 
D

David McRitchie

Hi Dmitriy,
Unless I've misread John's macros do not take a selection
of A1:D4 and end up with A1, A2, A3, A4 but would
end up with A1

The following toolbar key will merge the cells as asked.
-- Merge Across -- customize, commands, format (preserves rows)
to see what the icon looks like see
Merge and Unmerge Cells
http://www.mvps.org/dmcritchie/excel/merge.htm#builtin

as noted previously merged cells will interfere with
with sorting, filtering, copying, pasting,
autofit of row height and column widths
 
D

Dave Peterson

Each row in the selection is independent of the other rows??

If yes, you might want to add an icon to your favorite toolbar.

Tools|Customize|commands|Format category
Look for the "merge across" icon.

In fact, there's a bunch of merge/unmerge icons in there. You may want to grab
a couple (unmerge especially???).
 
E

Earl Kiosterud

Dimitriy,

If you MUST merge the cells, we will watch for posts from you later where
you're having problems because of the merging. And we'll come to your house
and make faces. :)

If you select each row's worth of cells to be merged one at a time, holding
the Shift key after the first one, it will merge the rows separately.
You'll get several messages about it. You may go mad.

If you have a great many of them, a macro can do it.

Better yet, don't merge them. Consider using Format - Cells - Alignment -
Horizontal: Center across selection. First have the data in the leftmost
cell only.
 
P

Peo Sjoblom

Hide it, then protect the workbook, it won't prevent
a determined user but perhaps the average user,

--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 
J

JE McGimpsey

Yes, for some reason I forgot to include my "Do NOT under any
circumstances actually merge the cells - you'll be asking how to unmerge
them tomorrow" text.

THanks for the clarification...
 
D

Dmitriy Kopnichev

Thanks for Format - Cells - Alignment -> Horizontal: Center across
selection. How to Vertical: Center across selection?
 
D

Dmitriy Kopnichev

Thanks. How to Vertical: Center across selection?
JE McGimpsey said:
Columns: Select two columns, choose Format/Cells/Alignment/Horizontal:
Center across selection
 
D

Dmitriy Kopnichev

Hi
If I only select cells from ONE row this works.
How to make a common heading for two rows without merging?
 
Joined
Nov 2, 2012
Messages
1
Reaction score
0
i was also looking for a solution for this, as i had to merge two cells middle and last name into one.

Solution:
Copy the rows to Notepad. Go to Edit > Replace, select and copy the tab and replace it with a space. copy back to excel.

:cheers:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Column alignment 1
Excel autosum problem in Excel 1
formating issue 2
fill horizontally 1
Cell selections with merged cells? 1
cells with one to multiple lines 1
listbox 2
unlocked cells 1

Top