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 May 24, 2018)


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()
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
    End With
End Sub


If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

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. ...


Getting Rid of the Startup Spreadsheet

When you start Excel, you normally see a blank worksheet displayed. Here's how to get rid of it.

Discover More

Synchronizing Lists

Two lists of similar data can be challenging to synchronize. Here are some ways that you can align data in two different ...

Discover More

Capitalizing Just a Surname

Changing the capitalization of text is, believe it or not, a common task in Excel. Common or not, it can be frustrating ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Understanding Monospace Fonts

Information in a worksheet needs to be displayed using fonts. If you understand the two different types of fonts ...

Discover More

Changing Fonts in Multiple Workbooks

If you need to change fonts used in a lot of different workbooks, the task can be daunting, if you need to do it ...

Discover More

Determining Font Formatting

If you need to determine the font applied to a particular cell, you'll need to use a macro. This tip presents several ...

Discover More

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

View most recent newsletter.


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 six more than 3?

2019-03-15 11:27:42

JIm Murray

I created the macro to merge cells exactly as you said. I created a shortcut just as you said. I selected three cells and hit the shortcut, and got "Run-time error '424': Object required." When I hit Debug, "Selections.Merge" was highlighted. Now what?

2017-04-18 14:16:46


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


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

2016-08-02 22:02:29


alt+Enter may work

2016-06-01 00:59:21


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

2016-03-13 05:48:52


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


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


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


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


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



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)

2015-01-06 12:40:09


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


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


woww, it's really helpful. thanks everyone!

2014-11-17 00:09:32


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

2014-08-26 02:26:02


CTRL+1,A+ALT+M enter

2014-08-25 02:05:59



2014-08-22 22:19:02


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


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


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

2014-02-01 09:52:19


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

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.