Typing ñ (n with a tilde) on a laptop is tricky because the usual Alt + 164 code needs a numeric keypad, which most laptops don’t have. This guide shows every way to type ñ and Ñ on a Windows 10 laptop and in Excel: the touch keyboard, the emoji panel, Insert Symbol, the CHAR and UNICHAR formulas, AutoCorrect, the US-International keyboard layout, Alt codes with or without a number pad, and Character Map.
Quick Answer
- In Excel: go to Insert > Symbol, choose Latin-1 Supplement, select ñ and click Insert. Or use the formula =CHAR(241) for ñ and =CHAR(209) for Ñ.
- Anywhere in Windows: press Windows + . (period), choose the Ω Symbols tab, then Latin symbols, and click ñ.

Method 1: Emoji and Symbols Panel (Windows 10 and 11)
- Click where you want the letter.
- Press Windows + . or Windows + ;.
- Click the Ω (Symbols) tab, then Latin symbols (the à icon).
- Click ñ or Ñ.
The panel remembers recently used symbols, so it’s quicker next time. It works in Excel, Word, browsers and most apps.
Method 2: Insert Symbol in Excel
- Double-click the cell (or click in the formula bar) where you want the letter.
- Go to Insert > Symbol. (It’s at the far right of the Insert tab.)
- Set Font to (normal text) and Subset to Latin-1 Supplement.
- Select ñ (character code 00F1) or Ñ (00D1), click Insert, then Close.
Method 3: CHAR and UNICHAR Formulas
- =CHAR(241) returns ñ and =CHAR(209) returns Ñ on Windows.
- =UNICHAR(241) and =UNICHAR(209) do the same using Unicode, and work across Windows and Mac.
- Combine with text: =”Espa”&CHAR(241)&”a” shows España.
To keep the result as plain text, copy the cell and use Paste Special > Values.
Method 4: Alt Codes
With a number pad: turn on Num Lock, hold Alt, type 164 for ñ or 165 for Ñ on the number pad, and release Alt. Alt + 0241 and Alt + 0209 also work.
On a laptop: some laptops have a hidden number pad on the letter keys, turned on with Fn + Num Lock or Fn + F11, where U, I, O and similar keys act as 4, 5, 6. Hold Alt and type the code on those keys. If your laptop has no hidden keypad, the top-row numbers won’t work for Alt codes; use another method.
Method 5: Touch Keyboard
- Right-click the taskbar and turn on Show touch keyboard button (Windows 10) or Touch keyboard under Taskbar settings (Windows 11).
- Click the keyboard icon near the clock.
- Press and hold n, then choose ñ.
Method 6: AutoCorrect Shortcut in Excel
- Go to File > Options > Proofing > AutoCorrect Options.
- In Replace, type a code you won’t use otherwise, such as n~~. In With, paste ñ.
- Click Add and OK. Typing the code followed by a space now inserts ñ.
AutoCorrect entries are shared across Office apps, so the shortcut also works in Word and Outlook.
Method 7: US-International Keyboard Layout
If you type Spanish often, add the United States-International layout:
- Go to Settings > Time & Language > Language, select your language, and click Options.
- Click Add a keyboard and choose United States-International.
- Switch layouts with Windows + Space.
- Type ñ with Right Alt + n, or press ~ then n.
This layout changes how quote and apostrophe keys work (they wait for the next letter), which takes some getting used to. Adding the Spanish keyboard layout is another option, with ñ on its own key.
Method 8: Character Map
Search for Character Map in Start, find ñ, click Select and Copy, then paste where you need it.
Excel for Mac
Press Option + n, release, then type n (or Shift + n for Ñ). Or hold the n key and choose ñ from the accent menu in most apps.
Frequently Asked Questions
Why doesn’t Alt + 164 work on my laptop?
Alt codes need number pad input. The number keys above the letters don’t count.
Will ñ sort correctly in Excel?
Excel sorts it based on your Windows language settings. In Spanish settings, ñ sorts after n.
Does this work in Google Sheets?
Yes. Use the emoji panel, =CHAR(241) or =UNICHAR(241).
Summary
- Windows + . > Symbols > Latin symbols for any app.
- Insert > Symbol or =CHAR(241) in Excel.
- Alt + 164 only with a number pad or hidden keypad.
- Add US-International or Spanish layout if you type Spanish often.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.