Closing Up Cut Rows

Written by Allen Wyatt (last updated April 8, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365


2

Linda often cuts and pastes information from one place to another in her workbook. If she cuts a row from one place and pastes it in another, the information is moved but the space for the original row remains in the worksheet. Linda wonders if there is a way that when she cuts and pastes the rows "close up" at the point where she cut the row.

Actually, there are a few ways you can accomplish this task, and all of them are very easy. Let's say, for example, that the rows you want to cut are rows 2 through 4. You want to paste them just before row 12. Select rows 2 through 4 and press Ctrl+X, like normal. (This puts the "marching ants" around those rows.) Next, select cell A12 or select all of row 12—it doesn't matter. Press Shift+Ctrl+=, and the rows are moved to just before the currently selected cell or cells. No data is lost, and the original rows are closed up, just as desired.

The other approach is handy if you are more comfortable using the mouse. Again select rows 2 through 4 and press Ctrl+X. Now, right-click on cell A12 so that Excel displays a Context menu. One of the choices you'll see on the menu is Insert Cut Cells. Choose this option, and the rows are moved from their old location to just before cell A12. Just like in the other approach, the original rows are closed up.

A third approach is to use drag-and-drop editing. If you select the original rows (2 through 4), you can hold down the Shift key as you drag the rows to their desired location. When you release the mouse button, the rows are moved and the space they previously occupied is closed up.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2078) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Adding a Macro to a Toolbar

One of the easiest ways to quickly access a macro is to assign it to a toolbar button. How you make the assignment ...

Discover More

Unwanted Data Changes

The AutoCorrect feature in Excel can change some of your data in ways you don't like. If you discover this is happening, ...

Discover More

Making VLOOKUP Case Sensitive

The VLOOKUP function, like other lookup functions in Excel, is not case sensitive. In other words, it doesn't matter ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Copying Rows between Worksheets Based on a Text Value

Want to move data from one worksheet to another based on a text value in a column. There are a couple of ways you can ...

Discover More

Displaying a Hidden First Row

If you hide the first rows of a worksheet, you may have a hard time getting those rows visible again. Here's a simple way ...

Discover More

Error Generated when Trying to Copy a Worksheet

How successful you are in copying information in Excel depends on lots of issues. This tip examines how those issues can ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 8?

2023-09-09 09:53:21

Roy

I can help with one thing Bob, that of being able to drag the cells. But it leaves them present in the original, that is, leaves the blank cells/rows/columns, rather than closing them up.

Select the cells (one, a block, "some", rows, columns) and press Shift, then "grab" the border and drag that border while holding Shift. That will move them, and not select more of them.

But again, it moves the data, but does not remove the cells. So no closing up.

By the way, doing this and going to a different window, for me, one on a different monitor, but presumably a different window on the same monitor, works as written above. But going to a different TAB (sheet) does not. However, pressing Alt and dragging the indicator down over a different tab does accomplish the drag and drop onto a different tab.

But still does not close up the original location.

In general, I've noticed "closing up" behaviors of any kind only work within a page/sheet/tab, and never between them. (A whole different file being basically the same as a different tab.)


2023-04-12 13:46:03

Bob

Most of the time I need to move rows to a different worksheet instead of elsewhere in the file and neither of these approaches eliminates the empty rows - and holding shift down while trying to drag-and-drop only highlights more rows instead of moving the ones I originally had highlighted. Any ideas or do I need to keep deleting the blanks after pasting?


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.