The quickest way to move a row in Excel
To move a row in Excel, select the entire row by clicking its number on the left side, then cut it using Ctrl+X (or Cmd+X on Mac). Click the row number where you want it to go, right-click, and choose "Insert Cut Cells". The row moves to that position and pushes other rows down. This works whether you're moving one row or several rows at once.
If you prefer not to use cut and paste, you can also drag a row to a new location. Click and hold on the row number, then drag it up or down to where you want it. Release the mouse button and the row slides into place. Dragging is faster for moving just one or two rows a short distance, but cut-and-paste is more reliable when moving many rows or moving them far down the sheet.
Key Takeaways
- Select a row by clicking its number on the left edge, then use Ctrl+X to cut it and right-click to insert it at a new location.
- You can move multiple rows at once by clicking the first row number, holding Shift, and clicking the last row number you want to move.
- Dragging a row by its number works for moving one or two rows nearby, but cut-and-paste is safer for moving many rows or moving them far down the sheet.
- Moving a row shifts all the rows below it down by one position; it does not overwrite the row you move it into.
Selecting one row or multiple rows
To select a single row, click the row number on the left side of the spreadsheet. The entire row highlights in blue. If you need to move more than one row, click the first row number, then hold Shift and click the last row number in the group. All rows between them select at once.
You can also select non-consecutive rows — rows that are not next to each other — by clicking the first row number, then holding Ctrl (or Cmd on Mac) and clicking each additional row number. This is useful if you want to move rows 3, 5, and 8 all at the same time. When you cut and paste them, they move as a group and stay in the same order relative to each other.
Using cut and paste to move rows
After you select the row or rows you want to move, press Ctrl+X to cut them. The selected rows show a dotted border around them, which means they are ready to move. Click the row number where you want the rows to go — this is the row that will shift down to make room.
Right-click on that row number and select "Insert Cut Cells" from the menu. Excel inserts your cut rows at that position and moves everything below them down. The dotted border disappears, and your rows are now in their new location. If you use the regular paste command (Ctrl+V) instead of "Insert Cut Cells", the rows overwrite whatever was already there, which usually is not what you want.
Dragging rows to a new position
Dragging works best when you are moving one or two rows a short distance. Position your mouse on the row number you want to move, click and hold, then drag up or down. As you drag, a thick line appears between rows, showing where the row will land when you release the mouse.
Release the mouse button when the line is in the right spot. The row moves to that position instantly. If you are moving multiple rows by dragging, select them first (using Shift+click or Ctrl+click), then drag any of the selected row numbers. All selected rows move together and stay in the same order.
What happens to data when you move a row
When you move a row, all the data in that row — every cell from column A to the last column with data — moves together as a unit. Formulas that reference cells in that row update automatically to point to the row's new location. For example, if a formula in another sheet refers to cell B5 and you move row 5 down to row 8, the formula updates to B8.
Rows below the moved row shift down by one position for each row you move. If you move row 3 to row 10, the rows that were in positions 4 through 9 shift up to fill the gap, and row 3's data lands in row 10. No data is deleted or overwritten unless you use the regular paste command instead of "Insert Cut Cells".
Moving rows in a filtered or sorted spreadsheet
If your spreadsheet is filtered — meaning some rows are hidden — moving rows can produce unexpected results. Excel moves the rows you selected, but the hidden rows stay hidden, which can make it look like rows disappeared. Before moving rows in a filtered sheet, remove the filter by clicking the filter button in the toolbar and selecting "Clear Filter". Then move your rows, and reapply the filter if you need it.
Similarly, if your data is sorted by a column, moving a row manually breaks the sort order. Excel does not re-sort automatically after you move a row. If you need to reorganize sorted data, it is usually better to sort by a different column or add a helper column with numbers that represent the order you want, then sort by that column instead.
Undoing a move and fixing mistakes
If you move a row and realize it was a mistake, press Ctrl+Z immediately to undo the move. Excel restores the row to its original position. You can undo multiple moves in a row by pressing Ctrl+Z several times, stepping back through each action you performed.
If you moved a row and then performed other actions before realizing the mistake, undo may restore more than you intended. In that case, you can manually move the row back to where it belongs using the same cut-and-paste or drag method. Keep a backup copy of important spreadsheets before moving many rows, so you have a version to return to if something goes wrong.
Frequently Asked Questions
Can I move a row to a different sheet?
No, you cannot move a row directly from one sheet to another using the move function. Instead, select the row, cut it with Ctrl+X, go to the other sheet, right-click the row where you want it, and choose "Insert Cut Cells". The row is removed from the first sheet and inserted into the second sheet at the position you chose.
What is the difference between moving a row and copying it?
Moving a row removes it from its original location and places it somewhere else. Copying a row leaves the original in place and creates a duplicate at the new location. To copy instead of move, use Ctrl+C instead of Ctrl+X, then paste normally with Ctrl+V or use "Insert Copied Cells" to shift existing rows down.
Can I move a row if some cells are merged?
Yes, you can move a row that contains merged cells. The merged cells move as a single unit. However, if the merged cells span multiple rows, moving the row may cause unexpected behavior because the merge extends beyond the single row you selected. Unmerge the cells first if possible, move the row, then re-merge if needed.
Why does dragging a row sometimes not work?
Dragging fails most often when the sheet is filtered, when cells are locked, or when you click in the middle of the row instead of on the row number itself. Make sure you click directly on the row number on the left edge, not on a cell. If the sheet is protected, you may not be able to move rows at all until the sheet is unprotected.