To fix the F4 key not working in Excel, select the reference inside your formula before pressing F4, then try Fn + F4 if your keyboard uses hardware controls by default. On Mac, select the reference and press Command + T instead. To repeat an action, use Ctrl + Y on Windows or the web, or Command + Y on Mac.
Start with formula selection and function key mode before changing Excel itself. The desktop Excel steps below cover Microsoft 365 and Excel 2024, and the Windows settings steps use Windows 11 menus.
The short version
- Formula references: Select the reference inside your formula before pressing F4.
- Function key mode: Try Fn + F4 when the top row controls hardware functions.
- Mac shortcut: Press Command + T while a formula reference is selected.
- Immediate workaround: Type dollar signs into the reference to fix its row, column, or both.
- Persistent failures: Check keyboard input, then investigate add-ins and update Excel.
| Fix or workaround | When to use it | Where it applies |
|---|---|---|
| Select the formula reference | F4 does not change the reference | Excel on Windows |
| Enter dollar signs manually | You need a fixed reference immediately | Desktop and web Excel using A1 references |
| Use the Repeat shortcut | You want to repeat an action | Windows, Mac, and web Excel |
| Select Repeat | You prefer a button | Desktop Excel |
| Try Fn + F4 or F-Lock | The top row performs hardware functions | Windows keyboards with those controls |
| Enable Lenovo function lock | You need standard function keys | Supported Think-branded products |
| Toggle Dell function lock | You need to change top-row behavior | Dell Latitude 3570 |
| Change Logitech function key behavior | The top row sends media commands | Pebble Keys 2 K380s |
| Use Command + T | You need another reference shortcut | Excel for Mac |
| Change Apple function key settings | You want standard function keys by default | Supported Apple keyboards on macOS Ventura or later |
| Use On-Screen Keyboard | You need an alternative to the physical key | Windows 11 |
| Check Filter keys | Brief or repeated presses are ignored | Windows 11 |
| Check connection, power, and debris | An external keyboard misses input | Windows external keyboards |
| Connect another keyboard | You suspect the original keyboard | Mac external keyboards |
| Update the keyboard driver | The problem affects keyboard input | Windows 11 |
| Disable PowerToys remapping | A mapping may intercept the key | Windows with Keyboard Manager |
| Start Excel in Safe Mode | You suspect an Excel customization | Excel on Windows |
| Disable COM add-ins | The key works in Safe Mode | Excel on Windows |
| Deactivate an Excel add-in | You suspect a particular add-in | Excel on Windows |
| Isolate startup files | Startup customizations may interfere | Excel on Windows |
| Update Excel on Windows | Earlier checks have not resolved the issue | Installations with update controls |
| Contact your help desk | Update controls are missing | Organization-managed installations |
| Update Excel on Mac | Earlier checks have not resolved the issue | Microsoft or Mac App Store installations |
| Repair Office | The problem persists after other checks | Windows 11 Click-to-Run installations |
Select the reference inside your formula
In Excel for Windows, select the cell containing your formula, then select the reference you want to change in the formula bar. Press F4 repeatedly to cycle through relative, absolute, and mixed references. Simply selecting a worksheet cell does not put the key into reference-editing mode.
In desktop or web Excel using A1 references, you can edit the formula manually. Use $A$1 to fix both the column and row, $A1 to fix only the column, A$1 to fix only the row, or A1 for a relative reference. Press Enter when you finish editing.
Use Repeat when you want to repeat an action
After a repeatable action, press Ctrl + Y in Excel for Windows or the web, or Command + Y in Excel for Mac. These shortcuts repeat actions rather than switching reference types. If Excel displays Can't Repeat, perform the operation manually.
On Windows, add a clickable alternative through Customize Quick Access Toolbar > More Commands. Under Choose commands from, choose All Commands, select Repeat, select Add, then select OK. Click Repeat when needed; it is not initially on the Windows Quick Access Toolbar.
On Mac, select Repeat in the upper-left corner of the ribbon. Use the reference-editing shortcut instead when you need to change dollar signs in a formula.
Check your keyboard’s function key mode
On Windows keyboards with dual-purpose function keys, hold Fn and press F4. If your keyboard has an F-Lock key, toggle it and retry F4. The required state depends on your keyboard, so an enabled function lock does not universally mean function keys are disabled.
On supported Lenovo Think-branded products, press Fn + Esc to enable function lock. On the Dell Latitude 3570, press Fn + Esc to change Function Key Lock, then retry F4. Check your exact Dell model’s keyboard instructions before applying that combination to another model.
For the Logitech Pebble Keys 2 K380s, press Fn + Esc to switch between media keys and function keys. Alternatively, open Logi Options+, select the keyboard, open SETTINGS, and choose standard function key behavior. Other supported Logitech keyboards have device-specific controls.
Use the Mac shortcut or change function key behavior
In Excel for Microsoft 365 for Mac or Excel 2024 for Mac, edit the formula, select its cell reference, and press Command + T. Microsoft also documents F4 for this action. Try Fn + F4 when your keyboard uses hardware controls by default.
To make standard function keys the default on macOS Ventura or later with a supported Apple keyboard, open the Apple menu > System Settings > Keyboard > Keyboard Shortcuts > Function Keys. Select Use F1, F2, etc. keys as standard function keys.
Alternatively, hold Fn or Globe while pressing F4. A third-party keyboard may require its manufacturer’s utility.
Check whether the keyboard is sending the key
On Windows 11, open Start > Settings > Accessibility > Keyboard and turn on On-Screen Keyboard. Select General if it is in navigation layout. With Excel focused and the formula reference selected, click F4, selecting Fn first if needed to display the function keys.
If brief or repeated keystrokes are being ignored, check Filter keys in the same Windows 11 keyboard settings. Turn it off if it was enabled unintentionally, then try brief and repeated F4 presses. This check applies when input is ignored, rather than only an Excel command failing.
For an external Windows keyboard, reconnect the USB keyboard or receiver, try another USB port, and bypass a hub. Charge the keyboard or replace its batteries, and check for debris obstructing F4. Try the keyboard on another computer; if it fails there too, arrange repair or replacement.
On a Mac, reconnect the external keyboard, try another port, and check Bluetooth power and charge when applicable. Connect a different keyboard to the Mac. If that resolves the issue, have the original keyboard serviced.
For a Windows 11 keyboard problem, you can update your keyboard driver through Windows. Search for Check for updates, open it, and select Check for updates under Windows Update. Alternatively, open Device Manager, open the keyboard device’s properties, and select Driver > Update Driver, then follow the driver-search instructions.
Check remapping and Excel add-ins
If you use PowerToys Keyboard Manager on Windows, close PowerToys or disable Keyboard Manager in PowerToys Settings, then retry F4. If the key works, inspect Remap a key and Remap a shortcut for the conflicting assignment.
For a persistent problem in desktop Excel on Windows, save your work and close Excel. Open Windows Run, enter the following command, and select OK.
excel /safeTry F4 with a selected reference in a simple formula. If it works in Safe Mode, investigate add-ins and startup files before restarting normally. Safe Mode helps identify a cause; it does not guarantee a repair.
To isolate COM add-ins, open File > Options > Add-ins. Set Manage to COM Add-ins, select Go, uncheck the installed add-ins, and select OK. Restart Excel normally, then re-enable the add-ins individually, restarting and checking the shortcut after each change.
For a suspected Excel add-in, return to File > Options > Add-ins. Set Manage to Excel Add-ins, select Go, and uncheck the checkbox bearing the suspected add-in’s name. Select OK, restart Excel, and try the shortcut again.
If startup customizations may be responsible, close Excel and temporarily move files out of its XLSTART folders. Also inspect File > Options > Advanced > General > At Startup, open all files in, and temporarily move files from that folder. Restart Excel and restore the files individually, checking the shortcut as you restore them.
Update Excel and consider Office repair
In Excel for Windows installations with update controls, open File > Account. Under Product Information, select Update Options > Update Now. Select Enable Updates first if needed.
If Update Options is missing and only About is available on an organization-managed installation, contact your help desk to update or repair Excel. Microsoft identifies volume licensing and Group Policy as possible reasons for the missing control.
For a Microsoft-installed copy of Excel on Mac, open Excel, select Help > Check for Updates, and select Update. For a Mac App Store installation, open App Store > Updates and select Update next to Excel, or select Update All.
If the problem persists, you can repair a Windows 11 Click-to-Run installation of Microsoft 365 or Office 2024. Repair affects the Office suite, not just Excel. On Windows 11, right-click Start, select Installed apps, find Microsoft 365 or Office, and select its ellipsis menu > Modify. Choose Quick Repair for the faster local repair or Online Repair for the broader repair, then select Repair.
Frequently Asked Questions
How do you access F4 on a MacBook Pro with a Touch Bar?
Hold Fn to display the function keys, then tap F4. On macOS Ventura or later, you can display them automatically in Excel by opening the Apple menu > System Settings > Keyboard > Keyboard Shortcuts > Function Keys, clicking +, and selecting Microsoft Excel.
Why does the key need a long press on a Mac?
Check Slow Keys when your Mac requires unusually long key presses. Open the Apple menu > System Settings > Accessibility > Keyboard, turn off Slow Keys if it was enabled unintentionally, and retry F4.
How do you restore editing directly inside an Excel cell?
In Excel for Microsoft 365 or Excel 2024 on Windows, open File > Options > Advanced. Under Editing options, select Allow editing directly in cells, then select OK. Edit the formula and select its reference before pressing F4. This setting enables in-cell editing; you can still edit through the formula bar.
Can you still get bug fixes for Excel 2021?
Office 2021 support ended on October 13, 2026, including Excel 2021 for Windows and Mac. Move to a supported Excel edition when you need ongoing bug fixes.