On a MacBook, Excel's F4 shortcut does not work the way it does on Windows unless you know the trick. Pressing F4 alone usually controls screen brightness or does nothing in Excel, because macOS assigns the function keys to hardware actions. The fix: press Fn + F4, or change a single keyboard setting so F4 behaves like a standard function key. On Windows, F4 repeats your last action and toggles absolute/relative references while editing a formula — this guide shows you how to get that same behavior on a Mac. Note that exact menu labels can differ slightly depending on your macOS version.

What You'll Need

  • A MacBook (or Mac keyboard) running macOS
  • Microsoft Excel for Mac installed
  • A few minutes to adjust one keyboard setting (optional but recommended)

Step-by-Step

  1. Open Excel on your MacBook and open or create a workbook so you have a cell to test with.
  2. Try Fn + F4 first. Hold the Fn key (bottom-left of the keyboard) and press F4. In most cases this triggers Excel's F4 behavior, such as toggling $A$1 / A$1 / $A1 / A1 while editing a formula.
  3. Make F4 work without Fn (recommended): open System Settings (Apple menu > System Settings).
  4. Click Keyboard in the sidebar, then click the Keyboard Shortcuts... button.
  5. Select Function Keys in the left list and turn on the option to use F1, F2, etc. as standard function keys. On older macOS versions, the equivalent checkbox is labeled "Use F1, F2, etc. keys as standard function keys" directly on the Keyboard pane.
  6. Restart Excel (quit with Cmd + Q and reopen) so it picks up the change.
  7. Test it in Excel: double-click a cell with a formula, click into a cell reference such as A1, and press F4. The reference should cycle to $A$1, then A$1, then $A1, then back to A1 with each press.
  8. Also know the Mac equivalent for repeating actions: on Mac, Cmd + Y repeats the last action where F4 does that on Windows. Try both Cmd + Y and F4 depending on your Excel version.

Common Mistakes

  • Pressing F4 without Fn when "Use F1, F2, etc. keys as standard function keys" is off — this changes brightness instead of doing anything in Excel.
  • Expecting F4 to work when you are not in edit mode. F4 only toggles references while the cursor is inside a formula (either editing a cell or the formula bar).
  • Confusing the F4 repeat behavior with the reference-toggle behavior. Both exist on Windows; on Mac, repeating the last action is more reliably done with Cmd + Y.
  • Using a third-party or compact keyboard that has no Fn key or remaps function keys — in that case check the keyboard maker's software for an "F-keys mode" setting.
  • Changing the function key setting and then wondering why volume or brightness keys stopped working directly — you now need Fn + the media key to use those hardware functions.

Tips

  • If you toggle function keys often (Excel vs. brightness/volume), leave the setting off and just get used to Fn + F4 — it becomes automatic quickly.
  • Keyboard layouts matter: if you use a non-US layout, make sure the Fn key is where you expect it; on some external keyboards it is labeled differently.
  • Learn the other F-key bonuses once F4 works: F2 (edit cell, Fn + F2 on Mac), F9 (calculate), and Cmd + Arrow keys for fast navigation.
  • You can also toggle absolute references via the formula bar by manually typing $ signs — slow, but it works everywhere with no settings change.

Troubleshooting

  1. Fn + F4 does nothing in Excel: make sure Excel is the active (frontmost) app and your cursor is inside a formula. Then quit and reopen Excel.
  2. The Function Keys setting did not stick: go back to System Settings > Keyboard > Keyboard Shortcuts and confirm the Function Keys toggle is still on, then restart the Mac.
  3. Update Excel via Help > Check for Updates (this opens Microsoft AutoUpdate) — older builds can have shortcut quirks.
  4. External keyboard not responding: disconnect and reconnect it, and check the keyboard maker's own configuration app for a function-key lock or mode switch (some keyboards have a physical Fn Lock key).
  5. F4 works but does the wrong thing: another app may have claimed F4 as a global shortcut. Check System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts and remove any custom F4 binding you did not intend.
  6. Last resort: sign out of and back into your Mac user account, since keyboard settings are per-account.

Frequently Asked Questions

What does F4 do in Excel?

Two things: it repeats your last action, and while editing a formula it cycles a cell reference between relative and absolute (A1 → $A$1 → A$1 → $A1).

Why doesn't F4 work on my Mac by default?

macOS assigns the top-row keys to hardware functions like brightness and volume. You must either hold Fn or enable standard function keys in System Settings.

What is the Mac shortcut for repeating the last action?

Cmd + Y. On Windows that is F4 or Ctrl + Y; on Mac, Cmd + Y is the reliable equivalent in Excel.

Can I use F4 to lock cell references in Excel for Mac?

Yes — once F4 works (via Fn + F4 or the function key setting), it toggles $ absolute references exactly as on Windows, as long as your cursor is inside the formula.

Does changing the function key setting affect other apps?

Yes, it is system-wide. Other apps' F-key shortcuts will work without Fn, but brightness, volume, and Mission Control keys will then require holding Fn.

Does this work on a Windows keyboard plugged into a Mac?

Generally yes — F4 behaves like a standard function key, and you can use the Windows key in place of Cmd for Cmd + Y.