Move one row up in excel

When you move or copy rows and columns, by default Excel moves or copies all data that they contain, including formulas and their resulting values, comments, cell formats, and hidden cells.

When you copy cells that contain a formula, the relative cell references are not adjusted. Therefore, the contents of cells and of any cells that point to them might display the #REF! error value. If that happens, you can adjust the references manually. For more information, see Detect errors in formulas.

You can use the Cut command or Copy command to move or copy selected cells, rows, and columns, but you can also move or copy them by using the mouse.

By default, Excel displays the Paste Options button. If you need to redisplay it, go to Advanced in Excel Options. For more information, see Advanced options.

  1. Select the cell, row, or column that you want to move or copy.

  2. Do one of the following:

    • To move rows or columns, on the Home tab, in the Clipboard group, click Cut cut icon image or press CTRL+X.

    • To copy rows or columns, on the Home tab, in the Clipboard group, click Copy copy icon image or press CTRL+C.

  3. Right-click a row or column below or to the right of where you want to move or copy your selection, and then do one of the following:

    • When you are moving rows or columns, click Insert Cut Cells.

    • When you are copying rows or columns, click Insert Copied Cells.

    Tip: To move or copy a selection to a different worksheet or workbook, click another worksheet tab or switch to another workbook, and then select the upper-left cell of the paste area.

Note: Excel displays an animated moving border around cells that were cut or copied. To cancel a moving border, press Esc.

By default, drag-and-drop editing is turned on so that you can use the mouse to move and copy cells.

  1. Select the row or column that you want to move or copy.

  2. Do one of the following:


    • Cut and replace
         Point to the border of the selection. When the pointer becomes a move pointer Move Pointer, drag the rows or columns to another location. Excel warns you if you are going to replace a column. Press Cancel to avoid replacing.

    • Copy and replace    Hold down CTRL while you point to the border of the selection. When the pointer becomes a copy pointer Excel Copy Pointer, drag the rows or columns to another location. Excel doesn’t warn you if you are going to replace a column. Press CTRL+Z if you don’t want to replace a row or column.

    • Cut and insert   Hold down SHIFT while you point to the border of the selection. When the pointer becomes a move pointer Move Pointer, drag the rows or columns to another location.

    • Copy and insert    Hold down SHIFT and CTRL  while you point to the border of the selection. When the pointer becomes a move pointer Move Pointer, drag the rows or columns to another location.

    Note: Make sure that you hold down CTRL or SHIFT during the drag-and-drop operation. If you release CTRL or SHIFT before you release the mouse button, you will move the rows or columns instead of copying them.

Note: You cannot move or copy nonadjacent rows and columns by using the mouse.

If some cells, rows, or columns on the worksheet are not displayed, you have the option of copying all cells or only the visible cells. For example, you can choose to copy only the displayed summary data on an outlined worksheet.

  1. Select the row or column that you want to move or copy.

  2. On the Home tab, in the Editing group, click Find & Select, and then click Go To Special.

    Excel  Ribbon Image

  3. Under Select, click Visible cells only, and then click OK.

  4. On the Home tab, in the Clipboard group, click Copy copy icon image or press Ctrl+C. .

  5. Select the upper-left cell of the paste area.

    Tip: To move or copy a selection to a different worksheet or workbook, click another worksheet tab or switch to another workbook, and then select the upper-left cell of the paste area.

  6. On the Home tab, in the Clipboard group, click Paste Button image or press Ctrl+V.

    If you click the arrow below Paste Button image, you can choose from several paste options to apply to your selection.

Excel pastes the copied data into consecutive rows or columns. If the paste area contains hidden rows or columns, you might have to unhide the paste area to see all of the copied cells.

When you copy or paste hidden or filtered data to another application or another instance of Excel, only visible cells are copied.

  1. Select the row or column that you want to move or copy.

  2. On the Home tab, in the Clipboard group, click Copy copy icon image or press Ctrl+C.

  3. Select the upper-left cell of the paste area.

  4. On the Home tab, in the Clipboard group, click the arrow below Paste Button image, and then click Paste Special.

  5. Select the Skip blanks check box.

  1. Double-click the cell that contains the data that you want to move or copy. You can also edit and select cell data in the formula bar.

  2. Select the row or column that you want to move or copy.

  3. On the Home tab, in the Clipboard group, do one of the following:

    • To move the selection, click Cut cut icon image or press Ctrl+X.

    • To copy the selection, click Copy copy icon image or press Ctrl+C.

  4. In the cell, click where you want to paste the characters, or double-click another cell to move or copy the data.

  5. On the Home tab, in the Clipboard group, click Paste Button image or press Ctrl+V.

  6. Press ENTER.

    Note: When you double-click a cell or press F2 to edit the active cell, the arrow keys work only within that cell. To use the arrow keys to move to another cell, first press Enter to complete your editing changes to the active cell.

When you paste copied data, you can do any of the following:

  • Paste only the cell formatting, such as font color or fill color (and not the contents of the cells).

  • Convert any formulas in the cell to the calculated values without overwriting the existing formatting.

  • Paste only the formulas (and not the calculated values).

Procedure

  1. Select the row or column that you want to move or copy.

  2. On the Home tab, in the Clipboard group, click Copy copy icon image or press Ctrl+C.
     

  3. Select the upper-left cell of the paste area or the cell where you want to paste the value, cell format, or formula.

  4. On the Home tab, in the Clipboard group, click the arrow below Paste Button image, and then do one of the following:

    • To paste values only, click Values.

    • To paste cell formats only, click Formatting.

    • To paste formulas only, click Formulas.

When you paste copied data, the pasted data uses the column width settings of the target cells. To correct the column widths so that they match the source cells, follow these steps.

  1. Select the row or column that you want to move or copy.

  2. On the Home tab, in the Clipboard group, do one of the following:

    • To move cells, click Cut cut icon image or press Ctrl+X.

    • To copy cells, click Copy copy icon image or press Ctrl+C.

  3. Select the upper-left cell of the paste area.

    Tip: To move or copy a selection to a different worksheet or workbook, click another worksheet tab or switch to another workbook, and then select the upper-left cell of the paste area.

  4. On the Home tab, in the Clipboard group, click the arrow under Paste Button image, and then click Keep Source Column Widths.

You can use the Cut command or Copy command to move or copy selected cells, rows, and columns, but you can also move or copy them by using the mouse.

  1. Select the cell, row, or column that you want to move or copy.

  2. Do one of the following:

    • To move rows or columns, on the Home tab, in the Clipboard group, click Cut cut icon image or press CTRL+X.

    • To copy rows or columns, on the Home tab, in the Clipboard group, click Copy copy icon image or press CTRL+C.

  3. Right-click a row or column below or to the right of where you want to move or copy your selection, and then do one of the following:

    • When you are moving rows or columns, click Insert Cut Cells.

    • When you are copying rows or columns, click Insert Copied Cells.

    Tip: To move or copy a selection to a different worksheet or workbook, click another worksheet tab or switch to another workbook, and then select the upper-left cell of the paste area.

Note: Excel displays an animated moving border around cells that were cut or copied. To cancel a moving border, press Esc.

  1. Select the row or column that you want to move or copy.

  2. Do one of the following:


    • Cut and insert
         Point to the border of the selection. When the pointer becomes a hand pointer The Move Hand Icon, drag the row or column to another location

    • Cut and replace   Hold down SHIFT while you point to the border of the selection. When the pointer becomes a move pointer The Move Hand Icon, drag the row or column to another location. Excel warns you if you are going to replace a row or column. Press Cancel to avoid replacing.

    • Copy and insert    Hold down CTRL while you point to the border of the selection. When the pointer becomes a move pointer The Move Hand Icon, drag the row or column to another location.

    • Copy and replace    Hold down SHIFT and CTRL while you point to the border of the selection. When the pointer becomes a move pointer The Move Hand Icon, drag the row or column to another location. Excel warns you if you are going to replace a row or column. Press Cancel to avoid replacing.

    Note: Make sure that you hold down CTRL or SHIFT during the drag-and-drop operation. If you release CTRL or SHIFT before you release the mouse button, you will move the rows or columns instead of copying them.

Note: You cannot move or copy nonadjacent rows and columns by using the mouse.

  1. Double-click the cell that contains the data that you want to move or copy. You can also edit and select cell data in the formula bar.

  2. Select the row or column that you want to move or copy.

  3. On the Home tab, in the Clipboard group, do one of the following:

    • To move the selection, click Cut cut icon image or press Ctrl+X.

    • To copy the selection, click Copy copy icon image or press Ctrl+C.

  4. In the cell, click where you want to paste the characters, or double-click another cell to move or copy the data.

  5. On the Home tab, in the Clipboard group, click Paste Button image or press Ctrl+V.

  6. Press ENTER.

    Note: When you double-click a cell or press F2 to edit the active cell, the arrow keys work only within that cell. To use the arrow keys to move to another cell, first press Enter to complete your editing changes to the active cell.

When you paste copied data, you can do any of the following:

  • Paste only the cell formatting, such as font color or fill color (and not the contents of the cells).

  • Convert any formulas in the cell to the calculated values without overwriting the existing formatting.

  • Paste only the formulas (and not the calculated values).

Procedure

  1. Select the row or column that you want to move or copy.

  2. On the Home tab, in the Clipboard group, click Copy copy icon image or press Ctrl+C.
     

  3. Select the upper-left cell of the paste area or the cell where you want to paste the value, cell format, or formula.

  4. On the Home tab, in the Clipboard group, click the arrow below Paste Button image, and then do one of the following:

    • To paste values only, click Paste Values.

    • To paste cell formats only, click Paste Formatting.

    • To paste formulas only, click Paste Formulas.

You can move or copy selected cells, rows, and columns by using the mouse and Transpose.

  1. Select the cells or range of cells that you want to move or copy.

  2. Point to the border of the cell or range that you selected.

  3. When the pointer becomes a Hand pointer, do one of the following:

To

Do this

Move cells

Drag the cells to another location.

Copy cells

Hold down OPTION and drag the cells to another location.

Note: When you drag or paste cells to a new location, if there is pre-existing data in that location, Excel will overwrite the original data.

  1. Select the rows or columns that you want to move or copy.

  2. Point to the border of the cell or range that you selected.

  3. When the pointer becomes a Hand pointer, do one of the following:

To

Do this

Move rows or columns

Drag the rows or columns to another location.

Copy rows or columns

Hold down OPTION and drag the rows or columns to another location.

Move or copy data between existing rows or columns

Hold down SHIFT and drag your row or column between existing rows or columns. Excel makes space for the new row or column.

  1. Copy the rows or columns that you want to transpose.

  2. Select the destination cell (the first cell of the row or column into which you want to paste your data) for the rows or columns that you are transposing.

  3. On the Home tab, under Edit, click the arrow next to Paste, and then click Transpose.

    Home tab, Edit group

    Note: Columns and rows cannot overlap. For example, if you select values in Column C, and try to paste them into a row that overlaps Column C, Excel displays an error message. The destination area of a pasted column or row must be outside the original values.

See also

Insert or delete cells, rows, columns

Watch Video – The best way to Move Rows / Columns in Excel

Sometimes when working with data in Excel, you may have a need to move rows and columns in the dataset.

For example, in the below dataset, I want to quickly move the highlighted row to the top.

Move Rows and Columns in Excel - Dataset

Now, are you thinking of copying this row, inserting the copied row where you want it, and then deleting it?

If yes – well that’s one way to do this.

But there is a lot faster way to move rows and columns in Excel.

In this tutorial, I will show you a fast way to move rows and columns in Excel – using an amazing shortcut.

Move Rows in Excel

Suppose I have the following dataset and I want to move the highlighted row to the second row (just below the headers):

Move Row to the Top

Here are the steps to do this:

  1. Select the row that you want to move.
  2. Hold the Shift Key from your keyboard.
  3. Move your cursor to the edge of the selection. It would display the move icon (a four directional arrow icon).
  4. Click on the edge (with left mouse button) while still holding the shift key.
  5. Move it to the row where you want this row to be shifted
  6. Leave the mouse button when you see a bold line right below the row where you want to move this row.
  7. Leave the Shift-key (remember to keep the Shift key pressed till the end)

Below is a video that shows how to move a row using this method.

Move Rows in Excel - Video

Note that in this example, I have moved the selected cells only.

If you want to move the entire row, you can select the entire row and then follow the same steps.

Here are some important things to know about this method:

  • You can move contiguous rows (or some cells from the contiguous rows). You can’t move non-contiguous rows using this method. For example, you can’t move row # 4 and 6 at the same time. However, you can move row #5 and 6 at the same time by selecting it.
  • When you move some cells in a row/column using this method, it will not impact any other data in the worksheet. In the above example, any data outside (above/below or to the right/left of this table) remains unaffected.

Move Columns in Excel

The same technique can also be used to move columns in Excel.

Move Columns in Excel - Video

Here are the steps:

  1. Select the column (or contiguous columns) that you want to move.
  2. Hold the Shift Key from your keyboard.
  3. Move your cursor to the edge of the selection. It would display the move icon (a four directional arrow icon).
  4. Click on the edge (with left mouse button) while still holding the shift key.
  5. Move it to the column where you want this row to be shifted
  6. Leave the mouse button when you see a bold line to the edge of the column where you want to move this column.
  7. Leave the Shift-key (remember to keep the Shift key pressed till the end).

You May Also Like the Following Excel Tutorials:

  • Quickly select blank cells in Excel.
  • Quickly select a far-off cell/range in Excel.
  • Keyboard and Mouse tricks that will reinvent the way you Excel.
  • Highlight every other row in Excel.
  • Insert New Cells in Excel.
  • Highlight Active Row/Column in a dataset.
  • Delete rows based on cell value in Excel
  • Insert New Columns in Excel

Move or copy rows and columns by using the mouse Select the row or column that you want to move or copy. , drag the rows or columns to another location. , drag the rows or columns to another location. Important: Make sure that you hold down CTRL during the drag-and-drop operation.

Contents

  • 1 How do I move rows to scroll in Excel?
  • 2 How do you move cells up in Excel?
  • 3 How do I scroll rows and rows in Excel?
  • 4 How do I swap rows in Excel?
  • 5 How do you scroll down in Excel without moving the top row?
  • 6 How do you move down a line in Excel within a cell?
  • 7 What is the Scroll Lock key?
  • 8 How do I move all cells up?
  • 9 How do you shift all cells down?
  • 10 Why is Excel scrolling with arrow keys?
  • 11 How do you switch rows and columns in Excel table?
  • 12 How do you swap rows in sheets?
  • 13 How do I scroll first row in Excel?
  • 14 How do I keep a chart in view when scrolling in Excel?
  • 15 How do you hit enter and stay in the same cell?
  • 16 What is Ctrl enter in Excel?
  • 17 How do you insert a row within a cell in Excel?
  • 18 How do I unlock Scroll Lock in Excel?
  • 19 Can’t scroll down Excel?
  • 20 How do you unlock Scroll Lock in Excel shortcut?

How do I move rows to scroll in Excel?

Click the View tab on the Ribbon. Select the Freeze Panes command, then choose Freeze Panes from the drop-down menu. The rows will be frozen in place, as indicated by the gray line. You can scroll down the worksheet while continuing to view the frozen rows at the top.

How do you move cells up in Excel?

Move cells by drag and dropping

  1. Select the cells or range of cells that you want to move or copy.
  2. Point to the border of the selection.
  3. When the pointer becomes a move pointer. , drag the cell or range of cells to another location.

How do I scroll rows and rows in Excel?

To scroll one column or row at a time in a particular direction, click the appropriate scroll arrow at the ends of the scroll bar. For example, to scroll right one column, click the arrow on the right side of the horizontal scroll bar.

How do I swap rows in Excel?

Hover your mouse over the border between the two adjacent rows until it turns into a cross-arrow icon. Click and hold your mouse and “Shift” until you see a gray line appear under the row you want to switch the data with. Let go of the mouse button, and the data will switch places.

How do you scroll down in Excel without moving the top row?

Select the cell in the upper-left corner of the range you want to remain scrollable.
To freeze the top row or first column:

  1. From the View tab, Windows Group, click the Freeze Panes drop down arrow.
  2. Select either Freeze Top Row or Freeze First Column.
  3. Excel inserts a thin line to show you where the frozen pane begins.

How do you move down a line in Excel within a cell?

Microsoft Excel in Windows
On all versions of Microsoft Excel for the PC and Windows, the keyboard shortcut Alt + Enter moves to the next line. To use this keyboard shortcut, type text in the cell and when ready for a new line, press and hold down the Alt key, then press the Enter key.

What is the Scroll Lock key?

On PC keyboards, a key used to toggle between a scrolling and non-scrolling mode. When on, the Arrow keys scroll the screen regardless of the current cursor location. This key is rarely used for its intended purpose, if at all. See PC keyboard.

How do I move all cells up?

Select the cell or cell range you want to move. Move the mouse pointer over the outline of the selected cells. Click and drag the cells to the new location.

How do you shift all cells down?

Open a Spreadsheet

  1. Open a Spreadsheet.
  2. Launch Excel and open your spreadsheet using the File menu and “Open” prompt.
  3. Click a Cell in the Row to Shift Downward.
  4. Click on any cell in the highest row that you want to shift downward.
  5. Select “Insert Sheet Rows”
  6. Click the “Home” tab if it is not already selected by default.

Why is Excel scrolling with arrow keys?

When the scroll lock feature is turned on, pressing an arrow key causes Microsoft Excel to move the entire spreadsheet, instead of moving to the next cell. Although helpful for a user viewing a large worksheet, it’s also quite annoying for those who have mistakenly enabled this feature.

How do you switch rows and columns in Excel table?

Transpose (rotate) data from rows to columns or vice versa

  1. Select the range of data you want to rearrange, including any row or column labels, and press Ctrl+C.
  2. Choose a new location in the worksheet where you want to paste the transposed table, ensuring that there is plenty of room to paste your data.

How do you swap rows in sheets?

Move rows or columns

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the rows or columns to move.
  3. At the top, click Edit.
  4. Select the direction you want to move the row or column, like Move row up.

How do I scroll first row in Excel?

How to freeze the top row in Excel

  1. Scroll your spreadsheet until the row you want to lock in place is the first row visible under the row of letters.
  2. In the menu, click “View.”
  3. In the ribbon, click “Freeze Panes” and then click “Freeze Top Row.”

How do I keep a chart in view when scrolling in Excel?

How to always keep a chart in view when scrolling in Excel?

  1. Right click at sheet tab that you want to keep the chart visible, and click View Code form the context menu. See screenshot:
  2. Save and close the dialog, then the chart will be moved down or up as you clicking at any cell.

How do you hit enter and stay in the same cell?

Stay in the same cell after pressing the Enter key with Shortcut Keys. In Excel, you can also use shortcut keys to solve this task. After entering the content, please press Ctrl + Enter keys together instead of just Enter key, and you can see the entered cell is still selected.

What is Ctrl enter in Excel?

#2 – Ctrl+Enter to Fill All Selected Cells with the Same Data or Formula. When we are entering data or a formula in a cell, and have multiple cells selected, Ctrl+Enter will copy the data/formula to all of the selected cells.

How do you insert a row within a cell in Excel?

Insert or delete a row

  1. Select any cell within the row, then go to Home > Insert > Insert Sheet Rows or Delete Sheet Rows.
  2. Alternatively, right-click the row number, and then select Insert or Delete.

How do I unlock Scroll Lock in Excel?

Click Change PC Settings. Select Ease of Access > Keyboard. Click the On Screen Keyboard slider button to turn it on. When the on-screen keyboard appears on your screen, click the ScrLk button.

Can’t scroll down Excel?

In most cases, users can’t scroll down Excel spreadsheets because there are frozen panes within them. To unfreeze panes in Excel, select the View tab. Click the Freeze Panes button. Then select the Unfreeze panes option.

How do you unlock Scroll Lock in Excel shortcut?

To turn off scroll lock, execute the following step(s).

  1. Press the Scroll Lock key (Scroll Lock or ScrLk) on your keyboard.
  2. Click Start > Settings > Ease of Access > Keyboard > Use the On-Screen Keyboard (or press the Windows logo key + CTRL + O).
  3. Click the ScrLk button.

While working on a worksheet that has numerous rows of data, you may have to reorder the row and columns every now and then. Whether it’s a simple mistake or the data is not at the right spot or you simply need to rearrange the data, then you have to move rows or columns in Excel.

If you work with Excel tables a lot, it’s important to know how to move rows or columns in Excel. There are three ways to move rows or columns in Excel, including the drag method using the mouse, cut and paste, and rearrange rows using the Data Sort feature. In this tutorial, we will cover all three methods one by one.

Move a Row/Column by Dragging and Dropping in Excel

The drag and drop method is the easiest way to quickly move rows in a dataset. But dragging rows in Excel is a bit more complex than you realize. There are three ways you can drag-and-drop rows in Excel, including drag and replace, drag and copy, and drag and move.

Drag and Replace Row

The first method is a simple drag and drop but the moving row will replace the destination row.

First, select the row (or contiguous rows) that you want to move. You can select an entire row by simply clicking the row number or clicking on any cell in the row and pressing Shift+Spacebar. Here, we’re selecting row 6.

After selecting the row, move your cursor to the edge of the selection (either top or bottom). You should see your cursor change to a move pointer Move Pointer (cross with the arrows).

Now, hold down the left mouse click, and drag it (top or bottom) to the desired location where you want to move the row. While you’re dragging the row, it will highlight the current row in a green border. In the example, we’re dragging row 6 to row 11.

Then, release the left mouse button and you will see a pop-up asking “There’s already data here. Do you want to replace it?”. Click ‘OK’ to replace row 11 with the data of row 6.

But, when you move your row to an empty row, Excel won’t show you this pop-up, it will simply move the data to the empty row.

In the below screenshot, you can see that row 11 is now replaced with row 6.

Drag and Move/Swap Row

You can quickly move or swap a row without overwriting the existing row by holding the Shift key when dragging the selected row(s).

Select your row (or contiguous row) that you want to move the same you did in the above section. Here, we’re selecting row 5.

Next, press and hold the Shift key on the keyboard, move your cursor to the edge of the selection (either top or bottom). When your cursor turns to a move pointer Move Pointer (cross with the arrow), click on the edge (with left mouse button), and drag the row to the new location. 

When you drag your cursor across the rows, you would see a bold green line at the edge of the row indicating where the new row will appear. Once you’ve found the right location for the row, release the mouse click and the Shift key. Here, we want to move row 5 to between rows 9 and 10.

Once the mouse button is released, row 5 is moved to row 9, and the original row 9 automatically moves up.

This method basically cuts the row and then inserts them to the new location (where you release the mouse button) without overwriting the existing row.

Drag and Copy Row

If you want to copy the row to the new location then simply press the Ctrl key while dragging the row to the new location. This method also replaces the destination row but it keeps the existing row (moving row) in place.

Select the row(s) you want to move the same way we did in the previous sections. Here, we’re selecting row 5.

This time, press and hold the Ctrl key on the keyboard, and drag the row to your desired location using the move pointer. Once you’ve found the right spot for the row, release the mouse click and the Ctrl key. Here, we’re releasing the mouse click at row 12.

Upon releasing the buttons, the 5th-row data replaces the 12th-row data but the 5th-row remains as the original data. Also, there is no pop-up dialog box asking whether to overwrite the data or not.

Move Multiple Rows At A Time by Dragging

You can also move multiple rows at a time using any of the same above methods. However, you can only move contiguous/adjacent rows and you cannot move non-contiguous rows by dragging.

First, select the multiple rows you want to move. You can select the entire multiple rows by clicking and dragging over the row numbers to the left. Alternatively, click on the first or last row header you want to select, press and hold the Shift key and use the arrow keys up or down to select multiple rows. In the example below, we’re selecting from rows 3 to 6.

Now, click on the edge of the selection, and drag the rows to the new location. You can simply drag, drag while holding the Shift key, or drag while holding the Ctrl key to move the rows.

In the example, we’re dragging the rows while holding the Shift key until the bottom line of row 10.

Now, rows 3 to 6 are moved to the location of rows 7 to 10, and the original rows from 7 to 10 are moved/shifted up.

Move Column using Mouse Drag

You can move columns (or contiguous columns) by following the same steps you did for the rows.

First, select the column (or adjacent columns) that you want to move. You can select an entire column by clicking the column header (column letter) at the top or pressing the Ctrl+Spacebar shortcut keys. In the example, we want column B (Last Name) to come after column D (City), so we’re highlighting column B.

Then, drag the column using Shift + left mouse click and release the mouse button and Shift key when you see the green bold line at the edge between column D and column E.

You can also simply drag the column or hold the Ctrl key while dragging the column to move and replace the existing column.

As you can see column B is moved to the location indicated by the bold green border and the original column D (City) is shifted to the left.

Move a Row/Column in Excel With Cut and Paste

Another easiest and well-known method for moving rows in Excel is by cutting and pasting the row of cells from one location to another. You can easily cut and paste rows using shortcut keys or mouse right-click. This method is much more simple and straightforward than the previous method. Let’s see how to move rows using the cut and paste method.

First, select the row (or contiguous rows ) as we did in the previous sections. You can either select an entire row or a range of cells in a row. Then, press the Ctrl+X (Command+X on Mac computer) on your keyboard to cut the selected row from its current location. Alternatively, you can right-click on the selected cell and select ‘Cut’.

Once you did that, you will see the marching ants effects (moving border of dots) around the row to show it has been cut. In the below example, row 4 is cut.

Next, select the desired destination row where you want to paste the cut row. If you moving an entire row, make sure to select the entire destination row by clicking the row number before pasting. Here, we’re selecting row 8.

Then, press the Ctrl+V shortcut keys to paste the row or right-click the destination row and click on the ‘Paste’ icon from the context menu.

When you use this method to move rows, it will overwrite the existing row. As you can, the data of row 8 is replaced with the data of row 4 in the below screenshot.

If you don’t want to replace the existing row while moving the selected row, you can use the ‘Insert Cut Cells’ option instead of the simple ‘Paste’ option. Here’s how you do that:

Select the row you want to move, and right-click and select ‘Cut’ or press Ctrl+X. Then, select the row before which you want to insert the cut row, right-click on it and choose ‘Insert Cut Cells’ from the context menu. Alternatively, you can press the Ctrl key + Plus sign (+) key on the numeric keypad to insert the cut row.

As you can see here, row 4 is inserted above the selected row, and the original row 7 is moved up.

If you want to copy the row rather than cut it, then instead of Ctrl+X, press Ctrl+C to copy the row and press Ctrl+V paste it. You can move columns using the cut and paste method by following these same instructions.

You can also cut a range of cells in a single row or multiple adjacent rows (contiguous rows) instead of entire rows and insert (or paste) them in another location using the above method. For example, we’re cutting C2:F4. Remember, if you are selecting multiple rows in the range, the rows must be adjacent rows.

Then, we are pasting the cut rows in the range C9:F11 using the ‘Insert Cut Cells’ option from the right-click menu.

Also, when you are moving rows, the cut area and paste area must be the same size, otherwise, you would get an error when you try to paste the cut row. For example, if you cut rows C2:F4 and try to paste it in the smaller range C10:F11 using the normal paste (Ctrl+V) method, you would see the following error.

Move Rows Using a Data Sort Feature in Excel

Moving rows with the data Sort features may require few more steps than the previous methods, but it is certainly not the difficult method to move rows or columns in Excel. Also, the data sort method comes with an advantage, you can change the order of all rows in one move that includes non-continuous rows as well. This method is certainly useful when it comes to rearranging numerous rows in a large spreadsheet. Follow these steps to move rows using a data sort:

First, you need to add a column to the left-most side of your spreadsheet (column A). To do this, right-click on any cell in the first column and select the ‘Insert’ option from the context menu.

In the Insert pop-up box, select ‘Entire column’ and click ‘OK’.

A new column has been inserted to the left-most side of your data set. This column must be the first column of your spreadsheet (i.e. column A).

Now, number the rows in the order you want them to appear in your spreadsheet by adding numbers in the first column as shown below.

Next, select all the data in the dataset that you want to reorganize. Then, go to the ‘Data’ tab in the Ribbon, and click the ‘Sort’ button in the Sort & Filter group.

You need to sort the dataset by the numbers in Column A. So, in the Sort dialog box, make sure the sorting is set to ‘Column’ above the ‘Sort by’ drop-down. If not, click the ‘Options’ button at the top.

Then, in the Sort Options pop-up dialog, select ‘Sort top to bottom’ and click ‘OK’.

Now, you’ll be back on the Sort dialog window. Here, select ‘Column A’ (or title of your first column) in Sort By drop-down menu.

Then, make sure the ‘Order’ drop-down is set to ‘Smallest to Largest’ and click ‘OK’.

This will close the Sort dialog box and take you back to your spreadsheet, where you’ll find that the rows have been rearranged according to the numbers you listed in that first column. Now, select the first column, right-click and select ‘Delete’ to remove it.

Move Columns Using a Data Sort

The process of moving columns using data sort is essentially the same as the moving rows, with a only few different steps. Follow these steps to move columns using data sort.

To move columns, you need to add a row instead of a column to the top of your dataset (Row 1). To do this, right-click on any cell in the first row and select the ‘Insert’ option from the context menu.

In the Insert dialog box, select ‘Entire row’ this time and click ‘OK’.

A new row will be inserted to the top of your spreadsheet, above all rows of data.

Now, number the columns in the order you want them to appear in your worksheet by adding numbers in the first row as shown below.

Next, select all the data in the dataset that you want to change the order of. Then, switch to the ‘Data’ tab in the Ribbon, and click the ‘Sort’ in the Sort & Filter group.

Now, you need to sort columns by the numbers in the first row. In the Sort dialog box, you need to set sorting to ‘Row’ instead of the column above the ‘Sort by’ drop-down. To do that, click the ‘Options’ button.

In the Sort Options pop-up dialog box, select ‘Sort left to right’ and click ‘OK’.

Back in the Sort dialog window, select ‘Row 1’ in Sort By drop-down menu and ‘Smallest to Largest’ in the Order drop-down. Then, click ‘OK’.

This will sort (move) the columns based on the numbers you listed in that first row as shown below. Now, all you have to do is select the first row and delete it.

Now, you know everything about moving rows as well as columns in Excel.

Microsoft 365, Microsoft Excel, Microsoft Office, Microsoft Office for Mac, Office 2013, Office 2016, Office 2019, Office 2021 / Office LTSC, Office 365 /

    
8 January 2022

How to move rows or columns up, down or across an Excel worksheet.  There’s a quick way but it’s not obvious.

Excel has a variety of different ways in doing this, but it’s important to know the fastest and easiest way, to save you a lot of time and hassle.

In Word, moving paragraphs or rows in a table is easy. Select then hold down Shift + Alt plus up or down arrows.  Pity it’s not as simple in Excel, but there are ways.

Moving a row

Let’s just say we need to place the highlighted row into the very top of the list of names.

Most users will consider just copying the row, then inserting it above and deleting the previous row. But luckily, there is a shortcut that’s far more straightforward.

This trick moves the row or column without deleting any data or leaving blanks behind.

Simply highlight the row you want to move.

Hold down the Shift Key, hover over the edge of your row until the four-arrow icon appears.

Click on the arrow icon and drag up or down. But be careful where you drop it – you need to be precise!

Get it wrong and you’ll insert a cell and move other cells to the right. If that happens, press Undo Ctrl + Z and try again.

Moving a column

The same trick works for columns.

Select your column.

Hold down the Shift Key, hover over the edge of your row until the four-arrow icon appears, then click on that icon and drag across. But be careful where you drop it – as we’ve shown below you need to be precise!

Hold down the Shift key

Hold down the Shift key until you’ve finished moving the column or row across, otherwise you might have trouble moving your column or row over correctly.

Using the four-arrow cursor without the Shift key?

You might be wondering what happens if you drag the four-arrow cursor without holding the Shift key?

The selected cells are moved, leaving empty cells behind, and pasted over any cells in the new location.  The same as if you used Cut (Ctrl + X) then Paste (Ctrl + V) in a new location.

If you drag to empty cells Excel will drop the selection into the new location.

If the cells have data, Excel will warn you; “There’s already data here.  Do you want to replace it?”

Make better Excel Charts by adding graphics or pictures
Excel the full history of rows and columns
Hiding Columns and Rows in Excel

Понравилась статья? Поделить с друзьями:
  • Move left one word
  • Move from place to place another word for
  • Move data from excel to excel
  • Move closer in one word
  • Move an image in word