An infographic shows three uses of Excel’s F4 key: cycling cell references, repeating formatting, and finding the next match.
Excel's F4 key does three different jobs, and which one you get depends on what you're doing when you press it. How-To Geek author Tony Phillips, who uses Excel for Windows every day, says it is the shortcut that saves him the most time. Microsoft's own documentation backs the core claims. Here is what F4 does, where it stops working, and how to get the most from it.

An infographic shows three uses of Excel’s F4 key: cycling cell references, repeating formatting, and finding the next match. F4 does three jobs, depending on context​

SituationKeysResult
Editing a formula with a reference selectedF4Cycles through absolute, mixed and relative reference forms
Not editing a formulaF4 (or Ctrl+Y)Repeats the last action, if Excel can repeat it
After a Find has been runShift+F4 / Ctrl+Shift+F4Jumps to the next or previous match

In Excel for Windows, F4 cycles formula references or repeats eligible actions, while Shift+F4 navigates matches from a prior search. Microsoft's Windows shortcut list says the same. MrExcel makes the split plain: F4 adds dollar signs to references while you edit, and repeats the last command when you aren't editing a formula.

Job one: locking references with F4​

By default, a cell reference is relative. While you write a formula, any cell reference can be made absolute by pressing F4 with the cursor on that reference.

Phillips' example is a sales-tax rate stored in one cell near the top of a sheet. The first formula works. Then you fill it down a column and every reference shifts, so the formulas point at the wrong cells.

To fix it:

  1. Edit the formula (F2, or click into the formula bar).
  2. Put the cursor on the reference, or select it.
  3. Press F4 until the dollar signs sit where you want them.

Starting from E2, the cycle runs $E$2, then E$2, then $E2, then back to E2. The dollar sign locks whatever it precedes:

  • $E$2 locks both column and row.
  • E$2 locks only the row.
  • $E2 locks only the column.

Microsoft's own example is useful here. In the MrExcel tax example, Excel changes the formula to =B2*$F$1. The tax cell stays put while the price reference moves down the rows.

Mixed references and conditional formatting​

Mixed references matter most in conditional formatting. If a task list has checkboxes in column C, the rule =$C2=TRUE shades the whole row once the box is ticked. The column is locked, so every cell in the row checks column C. The row is free, so each row checks its own checkbox.

Ranges​

For a range such as A4😀12, you can select the whole range text and press F4 to change the entire reference. Selecting just one of the cell references changes only that part.

Job two: repeating the last action​

Outside formula editing, Microsoft lists F4 as repeating the last command or action, "if possible." That qualifier matters.

Phillips' example is a column width. Set one column's width, select another column and press F4. Excel applies the same change. Borders, fills and many other formatting changes work the same way.

Some limits to keep in mind:

  • F4 only repeats the last single action you took. If you apply a fill and then change the font size, only the font size repeats.
  • F4 repeats the last action only when that action can be repeated in Excel. It does not repeat every action.
  • Phillips says a Format Cells dialog session counts as one action. Add a yellow fill and a border, click OK, and F4 applies both together. That is his observation from daily use. Microsoft's shortcut list doesn't catalogue which operations count as one action, so test your own workflow.
  • Ctrl+Y is an alternative to F4 for repeating. Excel Campus lists "F4 (or Ctrl+Y)" for Windows.

F4 versus Format Painter​

Format Painter copies how a source cell looks. F4 repeats what you just did.

Suppose a cell has red italic text, and you add a yellow fill and border through Format Cells. Format Painter would carry the red italics to the next cell too. F4 applies only the fill and border. Neither tool is better in general. They are built for different jobs, and choosing the right one saves cleanup.

Job three: Shift+F4 and Ctrl+Shift+F4​

This one is technically a separate shortcut, but it belongs with F4 in practice. Microsoft documents Shift+F4 as repeating Find downward and Ctrl+Shift+F4 as repeating it upward.

Press Ctrl+F, search for your term, then close the dialog. Shift+F4 jumps to the next match and Ctrl+Shift+F4 goes back. You can edit a cell, then move on without the dialog covering your data.

Shift+F4 uses whatever criteria were last entered in the Find and Replace window to find the next matching cell. One caveat from Excel veteran wmfexcel: pressing Shift+F4 with no prior search criteria makes Excel look for a blank cell. If it jumps somewhere odd, clear or reset your last Find entry.

Where it doesn't work​

  • Excel for the web. Microsoft's formula-tips page states that the F4 reference-switching tip doesn't apply to Excel for the web. Its separate web shortcut list does show F4 for reference cycling, so treat web behavior as inconsistent and test it. The Windows desktop app is the documented, reliable case.
  • Mac. Microsoft's Mac guidance toggles reference types with Cmd+T. Excel Campus lists Cmd+Y for repeating the last action on Mac.
  • Laptop keyboards. A common cause of failure is a laptop where F4 triggers a system action such as mute instead of the Excel command. Try Fn+F4, or change the function-key mode in your BIOS or keyboard utility.
  • Mid-formula confusion. While you're editing a formula, F4 does not repeat your last action. It cycles references instead.

Troubleshooting checklist​

  1. F4 does nothing in a formula. Make sure the cursor is on or inside a reference, and that you are in Edit mode.
  2. F4 repeats the wrong thing. You did something else more recently. Redo the action you want once, then press F4.
  3. F4 won't repeat anything. The last action may not be repeatable. Try a simple command first, such as a border, fill color or bold, then press F4.
  4. Shift+F4 jumps to blank cells. No Find criteria are stored. Run a search with Ctrl+F first.
  5. Nothing works on a laptop. Add the Fn key.

Bottom line​

F4 is worth learning because it replaces three small chores with one key. Typing dollar signs by hand, reapplying formatting and reopening the Find dialog all cost a few seconds each, and they add up over a working day.

This is a single author's account of his own workflow, so the "saves the most time" claim is personal opinion. The mechanics are not. Microsoft's documentation confirms the reference cycling, the repeat action and the Find shortcuts for Excel on Windows. The examples about grouped dialog actions and Format Painter are his experience, so check them against your own version of Excel.

 

References

  1. I use Excel every day, and F4 is the shortcut that saves me the most time How-To Geek 2026-12-03T12:00:16+00:00
  2. Excel 2024: Use F4 for Absolute Reference or Repeating Commands - Excel Tips - MrExcel Publishing mrexcel.com
  3. F4 in Excel: Repeat Last Action and Toggle Cell References - Excellopedia excellopedia.com