The document outlines the creation of ten specific pivot tables in an Excel dashboard using data from a table named 'salesdata' on the 'Data' sheet. Each pivot table has designated fields for values, rows, and columns, and must be created on a separate sheet named 'Pivot' with a one-row gap between them. Additionally, it includes instructions to write a VBA subroutine named 'GeneratePivotTables' to automate the pivot table generation process, compatible with Excel 2013.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views2 pages
ChatGPT Prompt 3
The document outlines the creation of ten specific pivot tables in an Excel dashboard using data from a table named 'salesdata' on the 'Data' sheet. Each pivot table has designated fields for values, rows, and columns, and must be created on a separate sheet named 'Pivot' with a one-row gap between them. Additionally, it includes instructions to write a VBA subroutine named 'GeneratePivotTables' to automate the pivot table generation process, compatible with Excel 2013.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
ChatGPT Prompt 3: Generate Pivot Tables for Dashboard
I am building an excel dashboard and I have the dataset on the sheet
named “Data”. Inside this I have a table named “salesdata”. I have created another blank sheet named “Pivot”. You need to use the table “salesdata” inside “Data” sheet and create the following pivot tables for me. Pivot Table 1: Place “Sales Amount” in values field. Get “Sales Amount” from Column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “totalsales”. Pivot Table 2: Place “Margin Amount” in values field. Get “Margin Amount” from Column K in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “totalmargin”. Pivot Table 3: Place “Sale Type” in Row field and “Customer Name” in values vield. Get “Sale Type” from Column L and “Customer Name” from Column D in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “customerscount”. Pivot Table 4: Place “Year” and “Month” in row field and “Sales Amount” in the values field. Get “Year” from Column C, “Month” from column B and “Sales Amount” from column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “salestrend”. Pivot Table 5: Place “Year” in row field, “Customer Source” in column field and “Sales Amount” in the values field. Get “Year” from Column C, “Customer Source” from Column M and “Sales Amount” from column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “customersource”. Pivot Table 6: Place “City” in row field and “Sales Amount” in the values field. Get “City” from column H, “Sales Amount” from column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “salesbycity”. Pivot Table 7: Place “Customer Name” in row field and “Sales Amount” in the values field. Get “Customer Name” from Column D, and “Sales Amount” from column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “top10”. Pivot Table 8: Place “Service” in row field and “Sales Amount” in the values field. Get “Service” from column F and “Sales Amount” from column I in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “salesbyservice”. Pivot Table 9: Place “Department” in row field and “Margin Amount” in the values field. Get “Department” from column G and “Margin Amount” from column K in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “departmentmargin”. Pivot Table 10: Place “Year” and “Month” in row field, “Sale Type” in column field and “Sales Amount” in values field. Get “Year” from Column C, “Month” from column B and “Sale Type” from column L in the “salesdata” table inside the “Data” sheet. Rename the pivot table to “newvsrepeat”. - Write VBA to create pivot tables that I can insert in module and click the button to generate pivot tables. - Create all these pivot tables on the existing sheet named “Pivot”. Get all the data from the sheet named “Data”. - After creating first pivot table, start creating next pivot table after the gap of one row. - I am using excel 2013 so please use supported objects, classes and properties. - Name the sub GeneratePivotTables.