How to repeat the last action in Excel with shortcut or command

In this tutorial, we will guide you through the simple steps to repeat the last action in Excel.

Microsoft Excel has many powerful features, and one of them is the ability to repeat a recent action without going through all the steps again. Picture this: you've just performed some useful task in your worksheet, such as typing in numbers or formatting cells. Now, here's the exciting part - you can easily do that exact same thing with a simple keyboard shortcut. This feature can be a time-saving gem, especially when you find yourself needing to apply the same formatting, formula, or other operation to multiple cells or ranges.

Repeat last action in Excel

The Repeat action function in Excel allows you to apply the most recent action to a different cell or cells without the need to perform it manually each time.

For example, if you've formatted a cell with specific attributes such as font style or fill color, and you wish to apply the same formatting to other cells, you can do it instantly with the Repeat function.

This feature can be particularly useful when you want to apply the same action multiple times, for example to insert multiple columns or add multiple rows.

How to add Repeat command to Quick Access Toolbar

The Repeat button is not automatically included in the Quick Access Toolbar, but don't worry - it's easy to add. Follow these steps to customize your toolbar and gain quick access to the Repeat command:

  1. Click the Customize Quick Access Toolbar button (the small down arrow) at the end of the toolbar.
  2. In the drop-down menu, select More Commands.
  3. In the Choose commands from list on the left, select All Commands.
  4. Scroll down and find the Repeat command in the list. Once found, click on it to select it.
  5. Click the Add button to move the selected command to the right column.
  6. Click OK to save your changes.
Add the Repeat button to Quick Access Toolbar.

For more details, see How to add a command to QAT.

Now you can see the Repeat command in your Quick Access Toolbar and use it whenever you want to repeat your last action.

How to repeat an action in Excel

With the Repeat button added to the Quick Access Toolbar, follow these simple steps to repeat the last action you performed in Excel:

  1. Perform the desired action on one cell. This could be anything from entering data, formatting cells, or deleting rows.
  2. In the Quick Access Toolbar, hover over the Repeat button, which looks like an arrow forming a circle. You will see a tooltip that tells you what action can be repeated.
  3. Select another cell or a range of cells where you want to apply the same action.
  4. Click on the Repeat button to do the last action on the selected cell(s).

To repeat an action multiple times, perform steps 3 and 4 as many times as you want. Unfortunately, Excel does not let you reproduce a series of actions at a time like it does for the Undo and Redo commands. Nevertheless, the Repeat button remains a handy tool for efficiently reproducing specific tasks across your spreadsheet. Repeat the last action in Excel.

Excel shortcut to repeat last action

To make your workflow even more efficient, you can use a shortcut key to repeat the recent action in Excel:

  • Ctrl + Y or F4 for Windows
  • Command + Y for Mac

It's worth noting that the same keyboard shortcut serves both as Redo and Repeat in Excel, but only one command is available at any given moment.

Redo vs. Repeat in Excel

The Repeat and Redo functions are never available in Excel at the same time. In essence:

  • Redo is only available after some action is undone.
  • Repeat is available after a change has been made to the worksheet.

For example, if you copied a formula from cell A1 to A2, then the Repeat button on the toolbar will be active, and the Redo button will be grayed out. This means that you can repeat pasting the formula into another cell.

Conversely, if you undo pasting the formula in A2, this will activate the Redo feature but deactivate Repeat. So, you will be able to redo the formula copying in cell A2, but you won't be able to copy it to another cell using the Repeat option.

And there you have it! Now you know how to use the Repeat function in Excel to do the same thing again without retracing all the steps. This nifty capability will save you a lot of time when you want to do something over and over. Why don't you give it a try and see how it makes your Excel tasks a whole lot simpler? 😊

9 comments

  1. Hi,
    I have some data like below.

    Aaa---Bbb---Ccc
    Ddd---Eee---Fff

    I want to repeat each row for twice by a formula. No additional cell reference will be accepted. Is there any way to do that?

      1. Hi,
        I said:
        Suppose I have 10 rows and 3 columns (like A1:C10). Now I want to repeat each row (like A1:C1) twice by using a formula in another sheet (like Sheet2).
        How to do that?

        1. Hello Roman!
          To get value from a table, you can use the INDEX function.
          You can get a sequence of row numbers using SEQUENCE function. In this sequence, each row number is repeated twice. You specify the column number as 1, 2, or 3.
          To get the values from column A and repeat each value twice, try this formula:

          =INDEX(Sheet1!$A$1:$С$10,CEILING(SEQUENCE(20,1,1,1)/2,1),1)

          You can also specify the row number using the ROW function. Enter this formula in cell A1 and copy down the column:

          =INDEX(Sheet1!$A$1:$C$10,INT((ROW(A1)-1)/2)+1,1)

          1. Thanks Alexander!
            But there is an issue. Formula: =INDEX(Sheet1!$A$1:$С$10,CEILING(SEQUENCE(20,1,1,1)/2,1),1) does not work after 20th row. Is there any way to get nth rows instead of fixed 20th rows?

            I have applied this to some filtered rows. But it does not exclude the hidden rows. It takes all rows that are in range. Is there any way to exclude the filtered rows for the above formula?

  2. Where is Quick Access Toolbar is located in Excel sheet, pls tell.

  3. I am unable to repeat a particular function in my Excel sheet, previously I used Control Y to repeat a particular function, say increase a row or coloumn, but of late this key has become inactive, my laptop and keyboard are in good condition only, but this Control Y is not responding, what to do?

  4. I just went through the process of 'How to add Repeat command to Quick Access Toolbar', it was quick and easy and exactly how it was described in the instructions. I really love this product as it is a huge time saver for me at work, and now I use it at home for my taxes as I use excel as my bookkeeping system. Best of all the customer service is awesome!

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)