Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Defining Shortcut Keys for Symbols.

Defining Shortcut Keys for Symbols

Written by Allen Wyatt (last updated September 18, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


5

John uses Excel to keep a maintenance log. He frequently needs to add a symbol from the Insert Symbol dialog box. He'd like to assign the symbol to a shortcut key (it doesn't have one already), but cannot find a way to do it.

Some symbols have obvious shortcut keys, defined by the folks in Redmond. One of the lesser-known facts is that every symbol has a "shortcut" key, but using that shortcut may not seem that short. How does this work? By holding down the Alt key as you type the ASCII or ANSI code for the symbol.

For instance, let's say you want to enter the cents symbol. If you display the Symbol dialog box and select the cents symbol, at the bottom right of the dialog box you can see the character code for the symbol (it is 00A2). This is a hexadecimal number; you need to convert it to regular decimal notation. You can do this by using the formula =HEX2DEC("00A2"), which returns the value 162. If you remember this code, you can hold down the Alt key as you type the code, with a leading zero, on the numeric keypad.

This approach works great if you only need to input a few symbols on a regular basis; it doesn't take much work to remember those few codes you need. However, if you have a lot of symbols you need to work with, then remembering codes becomes more problematic. You could develop your own printed "cheat sheet" for the symbols so that you can refer to it all the time, or you could rely on Excel's AutoCorrect feature to do the remembering for you. Follow these steps:

  1. Use the Symbol dialog box to insert the symbol into a cell.
  2. Select the cell that contains the symbol.
  3. Press F2 to start editing the cell.
  4. Select the symbol, and only the symbol.
  5. Press Ctrl+C to copy the symbol to the Clipboard.
  6. Display the Excel Options dialog box. (In Excel 2007 click the Office button and then click Excel Options. In Excel 2010 or a later version display the File tab of the ribbon and then click Options.)
  7. At the left side of the dialog box click Proofing.
  8. Click AutoCorrect Options. Excel displays the AutoCorrect dialog box. (See Figure 1.)
  9. Figure 1. The AutoCorrect tab of the AutoCorrect dialog box.

  10. In the Replace field, type a short mnemonic for the symbol. This should be a series of letters that are not a real word, such as hrt, which might be the mnemonic for a heart symbol.
  11. In the With field press Ctrl+V to paste the symbol from the Clipboard.
  12. Click OK.

Now you can just type the mnemonic when you want the symbol to appear. When you type the space bar after the mnemonic, AutoCorrect kicks in and replaces it with the symbol.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9332) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Defining Shortcut Keys for Symbols.

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

Determining the Day of the Year

Need to find out the day of the year for a particular date? It's easy to do if you are using a macro. All you need to do ...

Discover More

Copying, Moving, and Deleting Comments

Comments are often added to documents to aid in their development. You can use regular editing techniques to copy, move, ...

Discover More

Last Non-Zero Value in a Row

If you have a lot of values in a single row, you might want to pull the last non-zero value from that row. There are a ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Entering the Current Time

Need to enter the current time into a cell? It's easy to do using this keyboard shortcut. The shortcut is a handy one to ...

Discover More

Getting Rid of Cells Containing Only Spaces

If you have a worksheet that contains a bunch of cells that contain nothing but spaces, you may be looking for a way to ...

Discover More

Can't Copy Data between Workbooks

Edit a group of workbooks at the same time and you probably will find yourself trying to copy information from one of ...

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}] (all 7 characters, in the sequence shown) 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 two less than 9?

2021-09-19 23:28:07

Tomek

To expand on my last comment: you can use the function =UNICHAR(decimal code) or =UNICHAR(HEX2DEC(hexadecimal code)) to generate an unicode character. Then you can copy the cell and paste it (values only) elsewhere. From there you can copy just that character to be used in autocorrect, find and replace, etc.


2021-09-19 23:18:06

Tomek

@Elliot W Penna: What you suggest is true only for a subset of the characters - the ones that exist in ASCII. If you want any Unicode characters that are not ASCII, their code will only be available in hexadecimal. On the other hand Unicode characters like this cannot be entered by Alt+NNNN trick. In Word there is HHHH, Alt-X trick, where HHHH is the Unicode hexadecimal, but Excel is just a brother from another father ;-)


2021-09-19 18:42:54

Tomek

A problem with the approach shown in this tip is that it will only autocorrect full words, so it will not convert myhrt into my♥. It will, however, convert "my hrt" into "my ♥ ". Note a space after the heart. it is there because I pressed space after the mnemonic. If I used any punctuation or a character that is considered a delimiter by Excel, that character would follow the heart. In Excel, you cannot save a string ending with spaces in the Replace box, hence the only time nothing will follow the heart of this example is if you press enter.

A solution proposed by Kiwerry, in addition to making it more resistant to unwanted symbol insertions, also will autocorrect the mnemonic preceded by letters or other characters (or partial words). The underscore acts as a delimiter indicating the beginning of a string to be autocorrected. Other characters like !, &, - , /, etc. can also be used to act as this delimiter. One that does not work well is @, as at the beginning of the cell entry it indicates a legacy function.


2021-09-18 11:03:38

Kiwerry

To reduce the likelihood that a mnemonic you choose may occur within a word or as an abbreviation or acronym, which would result in unwanted symbol insertions, it may be worthwhile prefixing all the mnemonics you use for symbols with a character that is unlikely to occur elsewhere. Using Allen's example it may be better to use "_hrt" instead of just "hrt"


2021-09-18 08:16:24

Elliot W Penna

In my version of Excel, the character code in the lower right corner is displayed in hex, as Allen indicates, but to change to decimal you only need to use the dropdown in the "from" window to change... FROM: ASCII (hex) TO: ASCII (decimal).
That is, there is no need to use the HEX2DEC function to find the decimal equivalent.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu 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.