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


Insert AutoText Tool Unavailable on Header and Footer Toolbar

When creating headers or footers, you might notice at some time that the "Insert AutoText" tool on the Header and Footer ...

Discover More

Changing the Style Area Font

The style area, displayed at the left side of your document, can be helpful in understanding how styles are used in your ...

Discover More

Years in Which a Date Occurred on a Particular Day

If you need to know the years in which a particular date occurred on a specific day of the week, there are a number of ...

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)

Using Copy and Paste for Formatting

Want to copy formatting from one cell and paste it into another cell? It's easy to do if you use the Paste Special ...

Discover More

Conditionally Highlighting Cells Containing Formulas

Excel's conditional formatting feature allows you to create formats that are based on a wide variety of criteria. If you ...

Discover More

Formatting Currency

If you want to format currency values so that Excel uses periods between groups of thousands and commas as a decimal ...

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 2 + 4?

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.