On this page (7)
Heart symbol in Excel: quick answer
The most reliable way to get a heart in Excel is a formula. UNICHAR turns a heart’s decimal code into the character, so it works on every PC and Mac with Excel 2013 or later, with no special keys needed.
| Method | Steps | Gives |
|---|---|---|
| UNICHAR formula | =UNICHAR(9829) |
♥ (any heart by code) |
| Alt code | Num Lock on → Alt + 3 on the numpad | ♥ |
| Insert Symbol | Insert → Symbol → Segoe UI Symbol → code 2665 |
♥ ♡ ❤ ❦ and more |
| REPT rating | =REPT(UNICHAR(9829),A2) |
♥♥♥ (repeated hearts) |
| Emoji panel | Win + . → search “heart” | ❤️ 💕 and other emoji |
Method 1: The UNICHAR formula
Type any of these into a cell and press Enter:
| Formula | Result |
|---|---|
=UNICHAR(9829) |
♥ |
=UNICHAR(9825) |
♡ |
=UNICHAR(10084) |
❤ |
=UNICHAR(10083) |
❣ |
=UNICHAR(10085) |
❥ |
=UNICHAR(10086) |
❦ |
You can join hearts with text, too: ="I "&UNICHAR(9829)&" Excel" shows “I ♥ Excel.” To go the other way, =UNICODE("♥") returns 9829. The numbers are decimal versions of each heart’s Unicode code point. The heart Unicode reference lists them all.
If you need a fixed heart rather than a formula, copy the cell and use Paste Special → Values.
Method 2: Alt + 3 on the numeric keypad
- Select a cell (or double-click to edit it).
- Turn Num Lock on.
- Hold Alt and press 3 on the numeric keypad.
- Release Alt and press Enter.
This types ♥ only. For laptops without a numpad, use the formula or the emoji panel. See the Windows guide for details.
Method 3: Insert → Symbol
- Select a cell.
- Go to Insert → Symbol (in the Symbols group at the right of the ribbon).
- Set Font to Segoe UI Symbol and from to Unicode (hex).
- Type
2665in Character code (or2661for ♡). - Click Insert, then Close.
Heart ratings with REPT
REPT repeats text a set number of times, which makes it perfect for star-style ratings with hearts. With a score from 0 to 5 in cell A2:
| Formula | Score 3 shows |
|---|---|
=REPT(UNICHAR(9829),A2) |
♥♥♥ |
=REPT(UNICHAR(9829),A2)&REPT(UNICHAR(9825),5-A2) |
♥♥♥♡♡ |
Make the rating cell’s font red for a classic look, or use conditional formatting to change the color based on the score. Keep scores in range: a negative repeat count returns #VALUE!.
You can also show a heart after a number without changing the value. Open Format Cells → Number → Custom and enter 0" ♥". The cell displays “5 ♥” but still counts as 5 in calculations.
Count the hearts in a rating
If a column holds ratings like ♥♥♥♡♡ as text, you can turn them back into numbers. =LEN(SUBSTITUTE(B2,UNICHAR(9825),"")) removes the empty hearts and counts what’s left, so ♥♥♥♡♡ returns 3. To count how many cells in a range contain a heart at all, use =COUNTIF(B2:B20,"*♥*").
Heart symbol in Google Sheets
Google Sheets supports the same formulas, with one bonus:
=UNICHAR(9829)and=CHAR(9829)both give ♥.=REPT(CHAR(9829),A2)builds heart ratings.- On Windows, Alt + 3 on the numpad works while editing a cell.
For hearts in Google Docs or Slides, see the Google Docs guide.
Troubleshooting
- #VALUE! from CHAR(9829): Excel’s CHAR stops at 255. Use UNICHAR.
- #NAME? error: your Excel is older than 2013 and lacks UNICHAR. Use Insert → Symbol or Alt + 3.
- Alt + X does nothing: that trick is for Word and Outlook, not Excel.
- The heart shows as a box: change the cell font to Segoe UI Symbol, which includes all the classic hearts.
For other apps and devices, see how to type a heart symbol. To learn the difference between ♥ and ♡, visit the heart suit and empty heart pages.