Question: Ravi has already created similar macros to add a new contract record and a new invoice record. Return to the Home Page worksheet, and assign
- Ravi has already created similar macros to add a new contract record and a new invoice record. Return to the Home Page worksheet, and assign the macros to buttons as follows:
- Assign the Add_Contract macro to the Add Contract button.
- Assign the Add_Invoice macro to the Add Invoice button.
- Go to the Customers worksheet. Ravi wants to create PivotTables that include customer, contract, and invoice data. Ravi wants to list and total each contract amount by city and signing date. Create a PivotTable that displays this information as follows:
- Rename the Sheet4 worksheet, using Contracts by City as the name of the worksheet.
- Create a PivotTable based on the Contract table in cell B3 of the Contracts by City worksheet.
- Display the City field values as row headings.
- Display the SigningDate field values as column headings.
- Add the ContractAmt field to the Values area to sum the field values.
- Group the signing dates to display them as years and quarters only. (Hint: Expand the year headings to display the quarter headings, if necessary.)
- Remove all subtotals from the PivotTable.
- Format the Sum of ContractAmt field using the Currency number format with 2 decimal places and the $ symbol.
- Ravi also wants to list the paid and unpaid invoices for each month and then filter them by contract type. Create a PivotTable that displays this information as follows:
- Rename the Sheet3 worksheet, using Invoices by Month as the name of the worksheet.
- Create a PivotTable based on the Invoice table in cell B3 of the Invoices by Month worksheet.
- Display the SigningDate field values as row headings.
- Display the InvoicePaid field values as column headings.
- Add the InvoiceAmt field values to the Values area to sum the field values.
- Use the ContractType field as a filter.
- Group the signing dates to display them as years and months only.
- Format the Sum of InvoiceAmt field using the Currency number format with 2 decimal places and the $ symbol.
- Ravi wants to show invoices for security plans only and want to make the PivotTable easier to interpret. Modify the PivotTable as follows to meet Ravi's requests:
- Use Unpaid as the column heading in cell C4.
- Use Paid as the column heading in cell D4.
- Filter the PivotTable to display invoices for the Security plan and Security plan for apartment building contract types.
- Return to the Customers worksheet. In the range J2:K5, Ravi wants to list the total contract amounts for three cities. Extract this information from the PivotTable on the Contracts by City worksheet as follows:
- In cell K3, use the GETPIVOTDATA function to display the total contract amount for Atlanta from the PivotTable on the Contracts by City worksheet. (Hint: Type an equal sign in cell K3 and then click the cell containing the value you want the GETPIVOTDATA function to get from the PivotTable.)
- In cell K4, use the GETPIVOTDATA function to display the total contract amount for College Park from the PivotTable on the Contracts by City worksheet.
- In cell K5, use the GETPIVOTDATA function to display the total contract amount for Dunwoody from the PivotTable on the Contracts by City worksheet.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
