transcript

excelisfun - Excel Magic Trick 1461: Ctrl + Enter or Ctrl + D, What is the Difference and When to Use Each?

Thumbnail of the video “excelisfun - Excel Magic Trick 1461: Ctrl + Enter or Ctrl + D, What is the Difference and When to Use Each?”
Download Markdown
Community upload. AI output has not been independently verified.

Welcome to Excel Magic Trick number 1461. Hey, if you want to download this Excel file so you can follow along, click on the link below the video. We've got to talk about the difference between Control + Enter and Control + D when you have a range of cells highlighted.

Now, I have a formula in the active cell, which you can see up in the formula bar, and I have the whole range highlighted. The fastest way to copy it down is Control + D. That's an awesome use for Control + D. Now I'm going to delete everything.

Here's the other situation where we use Control + Enter. I have the whole range highlighted in advance, and in the active cell I'm going to put it in Edit mode and create my formula. The difference here is that I'm in Edit mode and I want to copy something all the way down. In this case, if I try Control + D, it doesn't work, but Control + Enter works with no problem and copies the formula all the way down.

Control + Enter has another really important use. Our example here was when we had an active cell in Edit mode and we wanted to populate something down through the highlighted cells. But let's look at this example: equals gross pay times, and I'm going to get my tax rate and press F4 to lock it. Notice I have something that I need to enter in the cell and then copy down. The vast majority of Excel users on the planet Earth do this: Enter, then click back up, then double-click and send it down. That wastes a click. So a great use for Control + Enter when you have a single cell selected is this: our goal is to put the thing in the cell and keep the cell selected, whether or not we're going to copy it down, format it, or do something else. Control + Enter puts the thing in the cell and keeps the cell selected. Now I can do whatever I want: Control + Enter in general to add some formatting, or in our case, double-click and send it down.

Now I want to show you my two favorite uses for Control + Enter and Control + D. Here I've already copied the formula down, and I realize that's the wrong formula. I need to edit it. Instead of editing just the single cell, pressing Control + Enter, and copying it down, I already have it highlighted, so I simply hit F2 in the active cell. Now it's in Edit mode and I can edit my formula. This is my favorite use for Control + Enter: the range is already highlighted, I'm editing the formula in the active cell, and I use Control + Enter to populate the edited formula all the way down.

Here's my favorite use for Control + D. When you're using the macro recorder, if I were to copy this down to cell E28, the hard-coded value in the macro code would be E28. Well, if I want to use this same VBA macro code again on a variable-height table, I need to figure out a way to trick the macro recorder, and here's how you do it. I've entered the formula with the recorder running, using relative references: left arrow, Control + Down Arrow, right arrow, Control + Shift + Up Arrow. This is where Control + D comes in. Notice there's something at the top: Control + D to fill that range down.

So we saw how to use Control + Enter and Control + D. If you liked this video, click that thumbs up and comment, and be sure to subscribe because there are always lots more videos to come from excelisfun. We'll see you in the next video.