Pinterest Pixel

The Ultimate Guide to F4 Excel – How to Effortlessly Repeat Last Action

John Michaloudis
Many times, you might have faced a situation where need to do a bunch of tasks repeatedly while working on an Excel worksheet.
You may need to insert a blank row or column, add a black border, red fill to a cell, etc.

to multiple cells, and repeating the same task again and again can be quite time-consuming.

Many times, you might have faced a situation where need to do a bunch of tasks repeatedly while working on an Excel worksheet. You may need to insert a blank row or column, add a black border, red fill to a cell, etc. to multiple cells, and repeating the same task again and again can be quite time-consuming.

Key Takeaways:

  • The F4 key in Excel repeats the last action.
  • Using F4 for formatting or data entry can shorten workflows.
  • F4’s repeat function applies to actions like bolding text, inserting rows, or applying borders.

Using Keyboard Shortcuts (F4)

If you want to repeat action in Excel, like inserting a column/row, formatting cells, copy & pasting, etc, then you can use the keyboard shortcut F4 which will repeat your last action (in most cases).

If you want to insert blank rows multiple times using f4 keyboard shortcut, follow the steps below:

STEP 1: Select the row above which you want to insert a blank row.

F4: Excel Repeat Last Action

STEP 2: Right-Click and select Insert.

F4: Excel Repeat Last Action

A new row is added!

F4: Excel Repeat Last Action

STEP 3: To repeat this action, simply press F4.

F4: Excel Repeat Last Action

This is how you can repeat last action Excel.

 

Using Keyboard Shortcut (Ctrl + Y)

Previously, you have used the shortcut F4 to redo a task in Excel. In the same manner, you can use the keyboard shortcut Ctrl + Y to get the task to repeat again!!

Instead of using a keyboard shortcut, you can even add the Repeat Command in your QAT!

Let’s try the repeat command to redo the last action in Excel!

 

Using Repeat Command

Another easy way is to add the Repeat command on the Quick Access Toolbar and simply click on it to repeat the last action multiple times.

To add Repeat Command in QAT, do as follows:

STEP 1: Select the small arrow on the top of the ribbon to access the Quick Access Toolbar.

F4: Excel Repeat Last Action

 

STEP 2: Select More Commands from the list.

F4: Excel Repeat Last Action

 

STEP 3: In the Excel Options dialog box, from the list of commands under Popular Commands select Repeat.F4: Excel Repeat Last Action

STEP 4: Click on Add and then you will see Repeat added to the right. F4: Excel Repeat Last Action

 

STEP 5: Click OK.

F4: Excel Repeat Last Action

Repeat Command is now added to your QAT. You can now easily Redo the last action by simply clicking on it.

F4: Excel Repeat Last Action

 

You can remove this command from the QAT. To do that:

STEP 1: Select the small arrow on the top of the ribbon to access the Quick Access Toolbar.

F4: Excel Repeat Last Action

STEP 2: Select More Commands from the list.

F4: Excel Repeat Last Action

STEP 3: Under Customize Quick Access Toolbar, select Repeat.

F4: Excel Repeat Last Action

STEP 4: Click Remove and then click OK.

F4: Excel Repeat Last Action

Repeat Command is now no longer part of the Quick Analysis Toolbar!

F4: Excel Repeat Last Action

 

Step-by-Step Guide to Using F4

Repeating Your Last Action with Ease

Suppose you’re working on a report, and you want to bold several headers. Here’s what I used to do: select a cell, click the Bold button, then move to the next cell and repeat the process. It took forever!

You can use F4 to do this faster.

STEP 1: Select your first header cell.

F4 Excel

STEP 2: Click the Bold button (or use Ctrl+B as a shortcut).

F4 Excel

STEP 3: Move to the other header and hit F4.

F4 Excel

The bold formatting is applied instantly. Keep pressing F4 as you move through the cells, and you’re done in seconds. This repetitive task automation is what makes F4 a significant time-saver in my toolkit.

Practical Examples of F4 in Action

If I formatted a cell with bold text and a border, and then needed to apply the same formatting to numerous other cells, I would select the next cell and tap F4 and the same formatting is applied.

Another instance is when adding rows consistently throughout a dataset. After inserting one row, pressing F4 while selecting adjacent cells inserts additional rows.

F4 Excel

 

Frequently Asked Questions

What Exactly Does the F4 Key Do in Excel?

In Excel, the F4 key is renowned for its repeat functionality. It swiftly repeats the last action I’ve taken, whether it’s an alteration in cell formatting, an entry of data, or the application of a formula.

How to repeat the last command in Excel?

To repeat the last command in Excel, I simply press the F4 key after completing an action. Whether I’ve adjusted a cell’s format, added a new data series, or performed any number of individual tasks, hitting F4 immediately reenacts that exact command on the currently selected cell or range.

How Can I Customize Excel to Better Utilize the F4 Shortcut?

Customizing Excel to better utilize the F4 shortcut typically revolves around incorporating it into my routine tasks. However, I also can access Excel’s options and customize the Quick Access Toolbar or Ribbon to rearrange commands for more efficient F4 use.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  CTRL + 1: Format Cells

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...