How to move or swap rows in Google Sheets
Swap two rows in Google Sheets with Edit > Move > Row up or Row down, or drag a row by its number, without losing data. Includes an interactive demo.

Quick answer
Select a row by clicking its row number, then drag it up or down to move it. To swap a row with the one above or below it, select the row and choose Edit > Move > Row up or Row down.
Steps at a glance
- Click the row number to select the entire row.
- Click and hold the selected row number.
- Drag the row to its new position and release.
- To swap with a neighbouring row, choose Edit > Move > Row up or Row down.
- Repeat Edit > Move to shift the row further.
- Check formulas and formatting after moving rows.
Interactive demo
Summary
Google Sheets lets you reorder rows using simple drag-and-drop or the Edit > Move menu, which swaps a row with its neighbour without overwriting either one's data. Knowing both approaches helps you reorganize datasets quickly while keeping formulas and formatting intact.
Step-by-step guide
Step 1
Select the Row You Want to Move
Click the row number on the left side of the sheet to highlight the entire row.
Step 2
Drag and Drop to Reorder
Click and hold the selected row number, then drag the row up or down to its new location and release the mouse button. This method works well for moving one row a short distance in a small dataset, such as adjusting entries alongside a /guides/google-sheets/sort-a-table setup.
Step 3
Use Edit > Move to Swap Two Rows
To swap a row with its neighbour without dragging, keep the row selected and click Edit > Move > Row up or Row down. Sheets exchanges the two rows without overwriting either one. Repeat to move the row further.
Step 4
Verify Formulas and Data After Moving
After moving or swapping rows, scroll through the affected area to confirm that formulas referencing those rows updated correctly and that formatting like /guides/google-sheets/format-as-currency or conditional rules didn't shift out of place. Google Sheets updates references to the moved cells, including absolute ($) references.
Step 5
Freeze Header Rows to Avoid Confusion
If you're reordering many rows, use /guides/google-sheets/freeze-rows to lock your header row in place so it stays visible and doesn't get accidentally moved during drag operations.
Why this matters
You're reordering a task list, attendance sheet, or sales ranking and need row three to sit above row one without deleting either. Learning the right technique saves you from accidentally overwriting data and lets you reorganize large datasets confidently and quickly.
Frequently asked questions
What's the difference between moving and swapping rows?
Moving a row simply changes its position, shifting other rows to make space. Swapping exchanges the positions of two rows. Edit > Move > Row up or Row down swaps the selected row with its neighbour in one click.
Can I move rows without affecting formulas?
Yes. Google Sheets updates formulas that point at the moved cells, including absolute references marked with $, so results stay the same after you move or swap rows.
Is there a keyboard shortcut for moving rows?
Google Sheets doesn't show a keyboard shortcut for moving rows. Select the row and use Edit > Move > Row up or Row down, or drag the row number.
Can I swap rows that aren't next to each other?
Yes. Drag the first row next to the second, then drag the second row into the first row's old spot. You can also repeat Edit > Move > Row up or Row down until each row reaches its new position.
Related guides
Continue with more step-by-step guides for getting work done.
How to freeze rows in Google SheetsLearn how to freeze rows in Google Sheets so headers stay visible while scrolling, plus how to adjust or remove frozen rows.
How to sort a table A–Z in Google SheetsSort a table in Google Sheets A to Z or by several columns without scrambling rows. Keep the header in place, or sort with a formula instead.
How to edit row size in Google SheetsLearn how to resize rows in Google Sheets by dragging, entering exact pixel heights, or auto-fitting rows to match your content.
How to open a CSV file in Google SheetsLearn how to open a CSV file in Google Sheets from Drive or by importing it — preserve formatting and keep your column structure.
Lock cells and protect a range in Google SheetsLock cells in Google Sheets with Data > Protect sheets and ranges. Restrict who can edit, show a warning instead, or lock a whole sheet except input cells.
How to remove a filter in Google SheetsRemove a filter in Google Sheets with the toolbar's Remove filter button or Data > Remove filter, or clear one column's criteria only. Includes a demo.
Create interactive demos like this one — free, no coding required.
Start for free →