Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Shortcut to Merge Cells.

Shortcut to Merge Cells

by Allen Wyatt
(last updated September 14, 2013)

24

Excel allows you to merge cells together in two ways: using the Merge and Center tool on the ribbon or toolbar, or by using the controls in the Alignment tab of the Format Cells dialog box. If you merge cells quite a bit, you might long for a shortcut that will merge whatever cells you've selected.

Unfortunately, Excel doesn't include such a shortcut. You can, however, create one using a macro. The following is a simple macro to merge whatever cells you've selected:

Sub MergeCells1()
    Selection.Merge
End Sub

After you create the macro, you can assign it to a keyboard shortcut and you are set to go. If you instead want a macro that is a shortcut for the Merge and Center tool, then you can use the following:

Sub MergeCells2()
    With Selection
        .HorizontalAlignment = xlCenter
        .Merge
    End With
End Sub

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3095) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Shortcut to Merge Cells.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Applying Styles and Removing Characters using Find and Replace

The Find and Replace capabilities of Word are very powerful, allowing you to accomplish more than one task at a time. This ...

Discover More

Inserting Cells in a Table

You can enlarge a table by adding cells where they are needed. Just pick where you want the cells inserted, then use the ...

Discover More

Renaming a Workbook

Renaming a workbook from within Excel can seem daunting, but it is actually quite easy. All you need to do is use the Open ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Setting Vertical Alignment

Excel allows you to adjust not only the horizontal alignment of values in a cell, but also the vertical alignment. This tip ...

Discover More

Hiding Individual Cells

Hiding information in one or more cells can be a challenge. This tip presents several different techniques that can help you ...

Discover More

Shortcut Key for Format Painter

The Format Painter is great for copying formatting from one cell to another. If you don't want to grab the mouse to use the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 0?

2017-04-18 14:16:46

Arslan

Awesome. thanks


2016-11-09 09:24:36

Muhammad Umair Aslam

Every kind of issue in MS-Excel must be explain in simple words


2016-08-04 06:24:51

pavan

if i want to do same operation in more than 02 cells, what is the shortcut in excel


2016-08-02 22:02:29

Edwinesto

alt+Enter may work


2016-06-01 00:59:21

shiv

Alt+h++m+m for merging selected cells but the value will be show of left side cell


2016-03-13 05:48:52

MIHA


in many cases we need to merge in one column pares of cells
is it possible to do this quicker than choose every pare by hand?


2015-10-12 12:23:31

nomi

i am merge cell but iam write name nomi khan but u say name nomi up and khan down to usay how many up/down short key


2015-07-28 14:37:16

Zach

alt+h+m+c in Excel 2013 will do the trick. The buttons can be hit one after the other, they do not have to be held down. They do however need to be in that order


2015-07-12 09:32:59

jayakrishnan

wonderfull short cut kristine..thank you


2015-06-10 07:24:12

Yatin Sharda

There is another Short cut for merge cells in excel. Alt+H,M then Enter.


2015-05-25 09:23:00

Fenix

You can right click the "Merge & Center" button and add it to "Quick Access Toolbar". By default, your hotkeys will be Alt + 4. You can further change the hotkey by selecting "More commands" under the quick access arrow and by moving your option to the top of the list. My preferred option is Alt + 2 as it's faster to access using my left hand.


2015-03-23 03:19:33

REKHA PATHURIA

WHAT IS THE SHORT CUT KEY TO MERGE CELL


2015-01-07 07:02:21

Michael (Micky) Avidan

@To whom it may concern,
You don't need to "waste 2 fingers muscles".
[F4] by itself is the ultimate "REPEAT ACTION" key.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2015-01-06 12:40:09

Andy

Kristine is correct! highlight the cells, then just push Alt+Enter. EZ-PZ

Thanks Kristine!


2014-12-25 09:57:09

Raju cs

Thank u Kristine It is wonderful shortcut key


2014-12-19 02:06:21

Mohan

Alt+Enter will redo the last operation performed, so you Merge few cells the hard way (Select, Right Click, Alt+M) once and then repeat it the easy way by hitting Alt+Enter.

Actually Alt+Enter becomes handy to repeat recently performed task. Hope that helps.


2014-11-17 04:13:55

rossie

woww, it's really helpful. thanks everyone!


2014-11-17 00:09:32

lokesh

is there is no window shortcut for merge cell like alt+f4= close the current workbook


2014-08-26 02:26:02

arindam

CTRL+1,A+ALT+M enter


2014-08-25 02:05:59

RAJESH CR

SIR,VERY GOOD AND USEFUL
GO AHEAD AS TO HELP US


2014-08-22 22:19:02

Anael

Better yet, use the *Format Painter*!

A trick is to start with blank cells and merge more than you then intend. Select the new cell and double-click Format Painter.
Then just select the cells you want to merge.
ESC when you're done.


2014-08-13 02:09:12

Yandi

Great tip Kristine, just used it in excel 2000 for a heap of merging and alignment. It worked a treat.


2014-08-10 09:34:36

esraa

Kristine, thanks for your tip/ it made me a lot of saving :-)


2014-02-01 09:52:19

Kristine

I found a shortcut for this: Alt+Enter I am using version 2013. The only odd thing is that you have to use the Merge button on the toolbar once before you start using the shortcut to define your setting (i.e. Merge and Center/Merge Across, etc.). Because of this the shortcut is only helpful if you're looking to merge a lot of cells without doing anything else in between.


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.