4
Page 1 of 4 1 2 3 4 Use the Auto Fill feature to extend the date series up to 2012/02/29 (from cell A5 to cell A16) 5 6 Select cell B5 and enter a SUMIFS formula to calculate the total sales amount for the month which has been included in cell A5. Enter the InvAmount named range in the sum range function argument. Enter the InvDate named range in the criteria range 1 function argument. Enter the InvDate named range in the criteria range 2 function argument. 7 copy and paste cell B5 into cells B6 to B16. 8 Select cell B17 and use the Auto Sum feature to add a total for all the monthly sales amounts in this cell. 9 Apply a single top border and a double bottom border to cell B17. Open the Invoices sheet and view the data from which we will compile a monthly sales report. Note that all the data on the Invoices sheet has been included in an Excel table which will make it easier to specify the cell ranges that need to be included in our formulas. We'll start by defining a named range which refers to the Sales Amount column on the Invoices sheet. This is not an absolute necessity but it is sometimes easier to work with a name instead of the structured cell referencing that is associated with Excel tables. Select all the cells (except for the column heading) that form part of the Sales Amount. Insert a named range based on this cell selection and enter the following as a name for the Open the Name Manager and select the InvAmount named range. Note the syntax of the cell reference in the "Refers To" section. We've already defined a named range for the Invoice Date column - select the InvDate named range. Make sure that the same structured cell referencing is used for both named ranges (only the column names should differ). If the syntax differs, select the InvAmount named range again and select or enter the correct cell references. Close the Name Manager when you've checked that the named ranges have been created on the same basis. Open the Summary sheet, select cell A5 and enter the following date: 2011/03/31 (Note: use the appropriate date format as per the regional date settings that are specified in your System Control Panel) Select cell A6 and enter the following date: 2011/04/30 (Note: use the appropriate date format as per the regional date settings that are specified in Select column A and change the number formatting to display the dates with a shortened month name followed by a hyphen and the full four digit year (Tip: Use the Custom number formatting option and specify a formatting type of mmm-yyyy). Enter a DATE function in the criteria 1 function argument which converts the date in cell A5 to the first day of the calendar month. Specify criteria to include all invoices with invoices dates that are greater than or equal to the result of the DATE function in the calculation results (Tip: The mathematical operators should be included within quotation marks and there should be an ampersand between the operators and the DATE function). Tip: Note that the DATE function should include a YEAR function in the year function argument, a MONTH function in the month function argument and both of these functions should refer to the date in cell A5. The day function argument in the DATE function should contain a value of 1. Link the criteria 2 function argument to the month end date in cell A5 and specify criteria to include all invoices with invoices dates that are less than or equal to the date in cell A5 in the calculation results. Note that we've entered month end dates to represent all the months in column A. Note that if we add additional invoices to the Excel table on the Invoices sheet and the invoice dates fall into the months that are included on the Summary sheet, the invoice amounts will automatically be included in the calculations on the Summary sheet because the sales totals are calculated based on the entire columns which form part of the Excel table (via the named ranges that we specified and included in our SUMIFS formula).

Excel Lab4 Correctlsdkqsmlkion

Embed Size (px)

DESCRIPTION

ldkvsfdfk

Citation preview

Excel Skills | Exercises | Monthly Sales Report

Instructions

Open the Invoices sheet and view the data from which we will compile a monthly sales report. Note that all the data on the Invoices sheet has been included in an Excel table which will make it easier to specify the cell ranges that need to be included in our formulas.1We'll start by defining a named range which refers to the Sales Amount column on the Invoices sheet. This is not an absolute necessity but it is sometimes easier to work with a name instead of the structured cell referencing that is associated with Excel tables. Select all the cells (except for the column heading) that form part of the Sales Amount. Insert a named range based on this cell selection and enter the following as a name for the named cell range: InvAmount. Open the Name Manager and select the InvAmount named range. Note the syntax of the cell reference in the "Refers To" section. We've already defined a named range for the Invoice Date column - select the InvDate named range. Make sure that the same structured cell referencing is used for both named ranges (only the column names should differ). If the syntax differs, select the InvAmount named range again and select or enter the correct cell references. Close the Name Manager when you've checked that the named ranges have been created on the same basis.

2Open the Summary sheet, select cell A5 and enter the following date: 2011/03/31 (Note: use the appropriate date format as per the regional date settings that are specified in your System Control Panel)

3Select cell A6 and enter the following date: 2011/04/30 (Note: use the appropriate date format as per the regional date settings that are specified in your System Control Panel)

4Use the Auto Fill feature to extend the date series up to 2012/02/29 (from cell A5 to cell A16)

5Select column A and change the number formatting to display the dates with a shortened month name followed by a hyphen and the full four digit year (Tip: Use the Custom number formatting option and specify a formatting type of mmm-yyyy).

6Select cell B5 and enter a SUMIFS formula to calculate the total sales amount for the month which has been included in cell A5.Enter the InvAmount named range in the sum range function argument.Enter the InvDate named range in the criteria range 1 function argument.Enter a DATE function in the criteria 1 function argument which converts the date in cell A5 to the first day of the calendar month. Specify criteria to include all invoices with invoices dates that are greater than or equal to the result of the DATE function in the calculation results (Tip: The mathematical operators should be included within quotation marks and there should be an ampersand between the operators and the DATE function).Tip: Note that the DATE function should include a YEAR function in the year function argument, a MONTH function in the month function argument and both of these functions should refer to the date in cell A5. The day function argument in the DATE function should contain a value of 1.Enter the InvDate named range in the criteria range 2 function argument.Link the criteria 2 function argument to the month end date in cell A5 and specify criteria to include all invoices with invoices dates that are less than or equal to the date in cell A5 in the calculation results. Note that we've entered month end dates to represent all the months in column A.

7copy and paste cell B5 into cells B6 to B16.

8Select cell B17 and use the Auto Sum feature to add a total for all the monthly sales amounts in this cell.

9Apply a single top border and a double bottom border to cell B17.

Note that if we add additional invoices to the Excel table on the Invoices sheet and the invoice dates fall into the months that are included on the Summary sheet, the invoice amounts will automatically be included in the calculations on the Summary sheet because the sales totals are calculated based on the entire columns which form part of the Excel table (via the named ranges that we specified and included in our SUMIFS formula).

&9Page &P of &N

InvoicesInvoice NumberInvoice DateCustomerDescriptionSales AmountTax CodeBank CodeAccount CodePayment DateINV00511/23/11DF ManufacturingConsulting Services8,000.00AB1IS-1003/1/11INV00522/18/11CC SuppliesConsulting Services15,000.00AB1IS-1003/10/11INV00533/14/11IT SolutionsConsulting Services11,200.00EB1IS-1004/13/11INV00543/19/11IQ BondsConsulting Services10,200.00AB1IS-1004/10/11INV00554/9/11WC Financial AdvisorsConsulting Services17,000.00AB1IS-1005/9/11INV00564/22/11DF ManufacturingConsulting Services17,420.00AB1IS-1005/9/11INV00575/5/11GP AccountantsAccounting Services3,000.00AB1IS-1005/10/11INV00585/7/11Energy IncorporatedTaxation Services8,230.00AB1IS-1006/6/11INV00595/10/11Energy IncorporatedConsulting Services22,800.00AB1IS-1006/9/1156800INV00605/31/11CC SuppliesConsulting Services19,050.00AB1IS-1006/30/11INV00616/26/11DF ManufacturingConsulting Services34,000.00AB1IS-1007/26/11INV00626/29/11WC Financial AdvisorsConsulting Services12,540.00AB1IS-1007/16/11INV00637/11/11PTY ConsultantsConsulting Services18,000.00AB1IS-1007/16/11INV00647/22/11WW RetailConsulting Services15,200.00AB1IS-1008/21/11INV00658/13/11EC Estate AgentsConsulting Services14,000.00AB1IS-1009/12/11INV00668/17/11The Paint ShopConsulting Services12,970.00AB1IS-1009/16/11CN000189/5/11IT SolutionsDiscount-3,100.00EB1IS-1009/27/11INV00679/12/11Energy IncorporatedConsulting Services28,000.00AB1IS-1009/30/11INV00689/17/11TRF SolutionsConsulting Services13,200.00AB1IS-10010/4/11INV006910/8/11EC Estate AgentsTaxation Services2,230.00AB1IS-10010/13/11INV007010/8/11GP AccountantsConsulting Services28,800.00AB1IS-10010/13/11INV007110/31/11The Paint ShopConsulting Services25,500.00AB1IS-10011/30/11INV007211/3/11PTY ConsultantsConsulting Services3,120.00AB1IS-10012/3/11INV007311/29/11CC SuppliesConsulting Services13,200.00AB1IS-10012/21/11INV007411/29/11XX Building SuppliesConsulting Services15,400.00AB1IS-10012/29/11INV007512/25/11IT SolutionsConsulting Services8,300.00EB1IS-1001/11/12INV00761/19/12PTY ConsultantsAccounting Services14,440.00AB1IS-1001/31/12INV00771/20/12GP AccountantsTaxation Services3,400.00AB1IS-1002/28/12INV00782/15/12WC Financial AdvisorsConsulting Services20,100.00AB1IS-1002/28/12INV00792/29/12XX Building SuppliesConsulting Services12,000.00AB1IS-100423200

Summary

Monthly Sales ReportMonthTotal Sales31-Mar-1121,400.0030-Apr-1134,420.0031-May-1153,080.0030-Jun-1146,540.0031-Jul-1133,200.0031-Aug-1126,970.0030-Sep-1138,100.0031-Oct-1156,530.0030-Nov-1131,720.0031-Dec-118,300.0031-Jan-1217,840.0029-Feb-1232,100.00400,200.00