3 Methods to Move a Pivot Table in Excel

To move a pivot table in Excel, follow the steps below:

  1. Click a cell in a Pivot Table.
  2. Go to the PivotTable Analyze tab > Move PivotTable tool under the Actions group.
  3. Select the locations where you want to move the Pivot Table.
  4. Then, click OK.

By following the procedure, you can move a Pivot Table from a sheet to the existing sheet or a new worksheet.

Move Pivot Table with Cut and Paste Options in Excel

I have a sales report of a Pivot Table in Excel. Here, I have summarized sales with quantity category-wise.

Pivot Table dataset to move the Pivot Table in Excel

To move the Pivot Table to another location:

  1. Initially, select a cell in the Pivot Table.
  2. Then, go to PivotTable Analyze tab.
  3. Next, click the dropdown of Select under the Actions group.
  4. Now, select Entire PivotTable option.
    Select Entire PivotTable to move Pivot Table in Excel

Case 1: Paste with Keyboard Shortcuts

After selecting the Pivot Table, cut and paste with keyboard shortcuts using the following steps:

  1. First, press CTRL+X to cut the Pivot Table.
    Cut Pivot Table with shortcut key to move the Pivot Table in Excel
  2. Now, go to the location of the Excel workbook where you want to place the Pivot Table and paste it by pressing CTRL+V.
    You will see that you have moved the Pivot Table to the desired location in Excel sheets.
    Moved the PivotTable using shortcut key in Excel

Case 2: Paste with Paste Special

Previously, you moved the Pivot Table to the desired location. However, you have to adjust the cell length manually. So, to solve that issue, we will use the Paste Special option.

After selecting the Pivot Table, follow these steps:

  1. Go to the Home tab.
  2. Select the Copy option under the Clipboard group.
    Copy the Pivot Table manually from Home tab to move it in Excel
  3. Now, go to the location you want to move the Pivot Table to.
  4. Then, hit the dropdown of the Paste option and select the Keep Source Column Widths option under Paste options.
    Clicked Keep Source Column Widths to move Pivot Table in Excel

Now, you can see the result. You have moved the Pivot Table as it was before with no manual adjustment.
Moved Pivot Table with no manual adjustment in Excel

Move a Pivot Table in Excel with the “Move PivotTable” Command

You can just use the Move PivotTable option in Excel to move a Pivot Table in Excel.

Case 1: Move Pivot Table in a New Worksheet

To move the Pivot Table into a new worksheet, you have to select the new worksheet option. Here’re the steps to follow:

  1. Select any cell on the Pivot Table.
  2. Go to PivotTable Analyze tab > Move PivotTable tool.
    Selected Move PivotTable options from PivotTable Analyze tab in Excel
    It will open a dialog box of Move PivotTable.
  3. Select New Worksheet and click OK.
    Chose New Worksheet to place the Pivot Table after moving in Excel
    It will move the Pivot Table into a new worksheet. Your previous place of the Pivot Table will be empty.
    Moved the PivotTable in new worksheet using Move PivotTable option

Case 2: Move Pivot Table in the Existing Worksheet

If you want to shift the Pivot Table within the worksheet, you can also do it. Go through the procedures below:

  1. Click on a random cell on the Pivot Table.
  2. Now, navigate to PivotTable Analyze tab > Move PivotTable tool.
    You have to insert a location within the existing worksheet to place the Pivot Table.
  3. Choose Existing Worksheet option and insert a location of the sheet.
    Chose Existing Worksheet to place the Pivot Table after moving in Excel
    Afterward, you will see the desired result of moving the Pivot Table in Excel in the same worksheet.
    Moved the PivotTable in the existing worksheet in Excel

Move a Pivot Table in Excel Using VBA Code

  1. Go to the sheet’s name and right-click on that. Then, choose View Code command.
    Selected View Code to move the Pivot Table in Excel using VBA code
  2. Next, go to Insert tab> Module command in the Visual Basic Editor window.
    Inserted Module to insert the VBA code to move Pivot Table in Excel
  3. Copy the code below and paste it into the module.
    Sub MovePivotTableToNewLocation()
    Dim pt As PivotTable
    Dim destRange As Range
    
    ' Check if a pivot table exists on the active sheet
    On Error Resume Next
    Set pt = ActiveSheet.PivotTables(1)
    On Error GoTo 0
    
    If pt Is Nothing Then
    MsgBox "No pivot table found on the active sheet. Please ensure a pivot table exists and try again."
    Exit Sub
    End If
    
    ' Prompt the user to select a cell for the new location of the pivot table
    On Error Resume Next
    Set destRange = Application.InputBox("Select a cell for the new location of the pivot table:", Type:=8)
    On Error GoTo 0
    If destRange Is Nothing Then
    Exit Sub
    End If
    
    ' Move the pivot table to the selected location
    pt.TableRange2.Cut Destination:=destRange
    ' Refresh the pivot table in the new location
    pt.PivotCache.Refresh
    End Sub
  4. Next, go back to the worksheet and press ALT+F8 to open the Macro dialog box.
  5. Now, choose the code name and click on Run.
    Opened Macro to run the VBA code to move Pivot Table in Excel
    It will open the dialog box of input to insert the location where you wanna place a pivot table in Excel.
  6. Insert the sheet’s name and the location and click OK.
    Inserted the sheet's name and location where the Pivot Table should be moved
    Afterward, you will see you have moved the Pivot Table to the desired location successfully.
    Moved the Pivot Table in the new location in Excel

Conclusion

There will arise different situations to move a Pivot Table in Excel. For example, you may mistakenly insert a Pivot Table in a different place. So, to solve this kind of issue, you should know how to move a pivot table in Excel. In this article, I have added 3 different methods to move pivot tables in Excel. I have also built a VBA code to move a Pivot Table in Excel. So, you can easily learn to shift the Pivot Table in Excel.

Frequently Asked Questions

What does it mean to move the Pivot Table?

Moving a Pivot Table in Excel means changing its location within the worksheet or to another worksheet. This action allows you to reposition the PivotTable to a different part of your Excel document, making it more convenient for data analysis and report creation. It does not alter the data or structure of the Pivot Table; it only changes its visual placement within the Excel workbook.

How do I manually move a Pivot Table?

To manually move a PivotTable in Excel, follow these steps:

  1. Select the entire Pivot Table.
  2. Place your cursor on the border of the PivotTable (you will see a four-sided arrow cursor).
  3. Click and drag the PivotTable to the desired location within the same worksheet.
  4. Release the mouse button to drop the Pivot Table in its new position.

This allows you to manually reposition the Pivot Table within your workbook for better organization and data analysis.

How do I drag a Pivot Table to rearrange?

To rearrange a pivot table in Excel:

  1. Click anywhere within the Pivot Table to select it.
  2. To rearrange fields, simply drag and drop them in the PivotTable Fields within the same area, such as from Columns to Rows, from Rows to Columns, etc.
  3. Release the mouse button to drop the field in its new location.

This allows you to easily change the arrangement of fields within your Pivot Table to suit your analysis needs.

5/5 - (2 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *