How to Move Rows in Excel
To move rows in Excel without overwriting anything, click the row number, hold Shift and drag the row by its edge to the new spot. Or cut the row and use Insert Cut Cells. Both are animated below. Further down: a keyboard-only version, how Mac and Excel for the web differ, and a totals trap we ran into while testing.
Last updated: October 30, 2026
Quick Answer
To move a row in Excel, click its row number, hold Shift and drag the top or bottom edge of the selection to where the row should go. Let go of the mouse, then Shift. The rows in between move to make room and nothing is overwritten.
Moving it a long way? Press Ctrl + X (Cmd + X on a Mac), right-click the row number below the new spot and choose Insert Cut Cells.
At a glance
Method 1: Hold Shift and Drag
This is the quickest way to move a row up or down a few places. Shift is the part that matters: it tells Excel to slot the row in between the others instead of dropping it on top of one. In Excel for the web it works the other way round, so drag without Shift there (details below).
- Select the row. Click the row number on the left. To move several rows that sit together, drag down their row numbers.
- Point at the edge of the selection. Move the pointer onto the top or bottom edge of the highlighted row until it changes to the move pointer (a four-headed arrow on Windows, a hand on a Mac).
- Hold Shift and drag. Hold Shift and drag the row up or down. A bar appears between two rows to show where it will land.
- Release the mouse, then Shift. Let go of the mouse button first and then Shift. The row drops into place and the rows in between move to make room, so nothing is overwritten.
Dragged without Shift? On Windows and Mac, a plain drag drops the row on top of the destination row and replaces it, and the row you dragged from is left empty. Excel normally asks before it replaces data: click Cancel and drag again with Shift. If it already happened, press Ctrl+Z (Cmd+Z on a Mac).
To copy the row instead of moving it, hold Ctrl and Shift while you drag on Windows. On a Mac, hold Option. That copy replaces whatever is in the row you drop it on, so aim for an empty row. The full set of keys is on Microsoft's Move or copy cells, rows, and columns page.
Method 2: Cut and Insert Cut Cells
Use this for long moves, say from row 480 up to row 12, where dragging means a lot of scrolling. It works the same way in Excel for Windows, Mac and the web.
Click the row number and press Ctrl+X (Cmd+X on a Mac). A dashed border appears around the row.
- Click the row number of the row you want to move.
- Press Ctrl+X (Cmd+X on a Mac), or right-click it and choose Cut. A moving dashed border appears around the row.
- Right-click the row number of the row that should end up below it. On a Mac, Control-click it.
- Choose Insert Cut Cells. The row moves there and the rows in between shift to make room.
Why not just paste? Ctrl+V pastes over the destination row and leaves the original row empty. Insert Cut Cells only shows up while the dashed border is on. Pressing Esc or typing in a cell cancels the cut, so cut the row again if the option is missing.
Method 3: Keyboard Only (Windows)
- Click any cell in the row and press Shift+Space to select the whole row.
- Press Ctrl+X.
- Use the arrow keys to reach the row that should end up below it, then press Shift+Space again.
- Press Shift+F10 (or the Menu key) to open the right-click menu, arrow down to Insert Cut Cells and press Enter.
Excel has no single shortcut that moves a row up or down one place; this sequence is the closest thing. On a Mac, Shift+Space and Cmd+X work the same way. Then press Shift+F10 (add Fn if the key doesn't respond) or Control-click the destination row number, and choose Insert Cut Cells. Every key below is from Microsoft's Excel keyboard shortcuts list.
| Action | Windows | Mac |
|---|---|---|
| Select the whole row | Shift + Space | Shift + Space |
| Cut | Ctrl + X | Cmd + X |
| Open the right-click menu | Shift + F10 or the Menu key | Shift + F10 (add Fn if needed) |
| Turn the list into a table | Ctrl + T | Cmd + T |
| Undo | Ctrl + Z | Cmd + Z |
Moving Several Rows at Once
Select a block of rows that sit together, then use any method above. Click the first row number and Shift+click the last, or drag down the row numbers.
Rows that aren't next to each other
You can Ctrl+click scattered row numbers (Cmd+click on a Mac), but you can't move them in one go. Microsoft notes that you cannot move or copy nonadjacent rows with the mouse, and cutting them fails too: in our test, Excel would not cut rows 3 and 5 as one selection. Move each block on its own, or use the sort method below, which regroups rows wherever they are.
Method 4: Reorder Many Rows With a Helper Column
Once you're moving more than a handful of rows, numbering them and sorting is faster than dragging, and you can see the whole new order before you commit to it.
- Insert an empty column right next to your data and give it a header such as Order.
- Type the position you want for each row: 1, 2, 3 and so on. To slot a row between 3 and 4, give it 3.5.
- Click any cell in the helper column. On the Data tab, in the Sort & Filter group, choose Sort Smallest to Largest.
- Check the order, then delete the helper column.
Sorting moves whole rows, so each row keeps its own cells together. Microsoft's sort guide covers sorting by more than one column if you need it.
Mac and Excel for the Web Work Differently
The drag keys are not the same everywhere. This is how Microsoft documents them on its Move or copy cells, rows, and columns page (Windows, macOS and Web tabs). Its Mac tab doesn't cover Insert Cut Cells; on a Mac you reach it by Control-clicking the row number.
Windows
- Move without overwriting
- Shift + drag
- Move and replace
- Drag, no key
- Copy
- Ctrl + drag (replaces) or Ctrl + Shift + drag (inserts)
- Cut and insert from the menu
- Right-click, Insert Cut Cells
Mac
- Move without overwriting
- Shift + drag
- Move and replace
- Drag, no key
- Copy
- Option + drag (replaces)
- Cut and insert from the menu
- Control-click, Insert Cut Cells
Excel for the web
- Move without overwriting
- Drag, no key
- Move and replace
- Shift + drag
- Copy
- Ctrl + drag (inserts) or Ctrl + Shift + drag (replaces)
- Cut and insert from the menu
- Right-click, Insert Cut Cells
By Microsoft's account, Shift does the opposite job in the browser. If a Shift-drag there offers to replace rows, cancel and drag without it. Insert Cut Cells behaves the same in all three, so it's the safest habit if you switch between them.
Check Your Totals After Moving a Row
Formulas that point at a moved row follow it: in our test, a cell with =B5 became =B2 when we moved row 5 to row 2. Ranges are another story. A row that lands just above the first row or just below the last row of a range ends up outside it, and nothing warns you.
We built a four-row list (hours 1, 2, 3 and 4 in B2:B5, totalled by =SUM(B2:B5)) in Excel for Mac 16.108 on October 30, 2026, moved rows with Insert Cut Cells and checked the formula after each move. The right total is 10:
| What we moved and the formula afterwards | Total |
|---|---|
| Last row to the top=SUM(B3:B5) | 6 |
| A middle row to the top=SUM(B3:B5) | 8 |
| First row to the bottom=SUM(B2:B4) | 9 |
| A middle row up one place=SUM(B2:B5) | 10 |
| First row into the middle=SUM(B2:B5) | 10 |
| Same list as a table, a middle row to the top=SUM(Table1[Hours]) | 10 |
Two ways to stay safe: move rows only within the list, or turn the list into a table before you reorder it (Ctrl+T, or Cmd+T on a Mac). In the table version of the test, both the table total and a plain =SUM(B2:B5) stayed at 10. We tested Insert Cut Cells, but Shift-drag inserts the row too, so check your totals after either method.
When Moving a Row Doesn't Work
No move pointer on the edge of the selection
Drag-and-drop editing is switched off. On Windows, go to File > Options > Advanced and tick Enable fill handle and cell drag-and-drop. On a Mac, go to Excel > Preferences > Edit and tick Allow fill handle and cell drag-and-drop. Both are described in Microsoft's advanced options guide.
Insert Cut Cells isn't in the menu
It only appears while the dashed border from the cut is showing. Pressing Esc or typing in a cell cancels the cut. Cut the row again, then right-click.
Excel says the sheet is protected
Go to Review > Unprotect Sheet (in the Changes group on Windows) and enter the password if there is one. In Excel for the web it's Review > Manage Protection. See Microsoft's Protect a worksheet page.
Hidden rows moved too
When you select a block of rows, the hidden rows inside it come along: Microsoft says moving rows includes their hidden cells. Unhide them or clear the filter first if you only meant to move the visible ones.
The row landed in the wrong place
Press Ctrl+Z (Cmd+Z on a Mac). Insert Cut Cells puts the row above the row you right-clicked, so right-click the row that should end up below it.
Frequently Asked Questions
How do I move a row up or down in Excel?
Select the row by its row number, hold Shift and drag the top or bottom edge of the selection. A bar shows where the row will land. Release the mouse, then Shift, and the other rows move to make room.
Is there a keyboard shortcut to move a row in Excel?
Not a single one. On Windows, press Shift+Space to select the row and Ctrl+X to cut it, use the arrow keys to reach the row that should end up below it, press Shift+Space again, then Shift+F10 and choose Insert Cut Cells.
How do I move a row without overwriting data?
Insert it instead of pasting it: Shift-drag the row, or cut it and choose Insert Cut Cells on the row below the new spot. Ctrl+V pastes over the destination row and leaves the old row empty.
Why can't I move non-adjacent rows in Excel?
Excel moves one block at a time. Microsoft says you can't move nonadjacent rows with the mouse, and in our test Excel would not cut two separate rows in one go. Move each block separately, or number the rows in a helper column and sort by it.
Why does Shift-drag replace rows in Excel for the web?
Microsoft documents the web keys the other way round: a plain drag inserts the row and a Shift-drag replaces, with a warning first. In the browser, drag without Shift, or use Insert Cut Cells, which works the same everywhere.
How do I move a row to another sheet in Excel?
Cut the row, open the other sheet, right-click the row number where it should go and choose Insert Cut Cells. In our Excel for Mac test, the old row stayed behind empty, so delete it afterward. Formulas that referred to the row followed it.
Why did my total change after I moved a row?
The row landed just outside the range your formula adds up. In our test, moving the last row of a list to the top changed =SUM(B2:B5) to =SUM(B3:B5), and the total fell from 10 to 6. Move rows within the list, or turn it into a table first.
How do I move a row in Excel on a Mac?
Shift-drag the edge of the selected row, as on Windows, or press Cmd+X, Control-click the row number below the new spot and choose Insert Cut Cells. Option-drag copies the row instead of moving it, and the copy replaces whatever is in the row you drop it on.
Teaching Excel to your team?
Record your screen once with the Deckoholic Chrome extension and talk it through. It cuts the ums and pauses, adds zooms and captions, and gives you an MP4 or a step-by-step guide your team can follow.
Try Deckoholic Free