Repeating a pivot table many times and changing only one column -- are there more efficient approaches?

sschaefer

New Member
Joined
Mar 22, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am generating reports that include a series of 24 variables (each corresponding to an item in an assessment). Essentially, it is the same pivot table 24 times, only changing one column in each pivot table. Each row in the pivot table, below, represents a classroom, or a subtotal of classroom types (e.g., rows 83 and 84 are 2 classrooms of 4-year-olds).

I am using pivot tables to generate most of the report how I want it, and then copying and pasting that pivot table below the previous one, and swapping out a variable for one column field (column F in first image, below). Can you recommend a more efficient way to generate this series of tables, ultimately in one sheet?

Screenshot 2024-03-23 152025.png


After I generate this series of pivot tables, I am copying each pivot table as values only and pasting into a second sheet. I am then adding a column (H in image, below) with a simple percentage calculation in it, plus some additional formatting, header relabeling.

table 2 Screenshot 2024-03-22 214858.png


My approach seems pretty laborious -- I need to learn more Excel pivot table skills -- so if you can make suggestions to me on better ways to do these tasks, I'd appreciate it. Thanks in advance for sharing your ideas with me.

I am using Windows and Excel 365. I also have access to Excel 365 in Mac.

-Stephanie
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top