Sei sulla pagina 1di 4

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.
1

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 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.

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 your System Control Panel)

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

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).

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 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.

copy and paste cell B5 into cells B6 to B16.

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

Apply 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).

Page 1 of 4

Invoice
Number
INV0051
INV0052
INV0053
INV0054
INV0055
INV0056
INV0057
INV0058
INV0059
INV0060
INV0061
INV0062
INV0063
INV0064
INV0065
INV0066
CN00018
INV0067
INV0068
INV0069
INV0070
INV0071
INV0072
INV0073
INV0074
INV0075
INV0076
INV0077
INV0078
INV0079

Invoice
Date
1/23/2011
2/18/2011
3/14/2011
3/19/2011
4/9/2011
4/22/2011
5/5/2011
5/7/2011
5/10/2011
5/31/2011
6/26/2011
6/29/2011
7/11/2011
7/22/2011
8/13/2011
8/17/2011
9/5/2011
9/12/2011
9/17/2011
10/8/2011
10/8/2011
10/31/2011
11/3/2011
11/29/2011
11/29/2011
12/25/2011
1/19/2012
1/20/2012
2/15/2012
2/29/2012

Customer
Description
DF Manufacturing
Consulting Service
CC Supplies
Consulting Service
IT Solutions
Consulting Service
IQ Bonds
Consulting Service
WC Financial Advisor Consulting Service
DF Manufacturing
Consulting Service
GP Accountants
Accounting Service
Energy Incorporated Taxation Services
Energy Incorporated Consulting Service
CC Supplies
Consulting Service
DF Manufacturing
Consulting Service
WC Financial Advisor Consulting Service
PTY Consultants
Consulting Service
WW Retail
Consulting Service
EC Estate Agents
Consulting Service
The Paint Shop
Consulting Service
IT Solutions
Discount
Energy Incorporated Consulting Service
TRF Solutions
Consulting Service
EC Estate Agents
Taxation Services
GP Accountants
Consulting Service
The Paint Shop
Consulting Service
PTY Consultants
Consulting Service
CC Supplies
Consulting Service
XX Building Supplies Consulting Service
IT Solutions
Consulting Service
PTY Consultants
Accounting Service
GP Accountants
Taxation Services
WC Financial Advisor Consulting Service
XX Building Supplies Consulting Service

Sales
Amount
Tax Code
8,000.00
A
15,000.00
A
11,200.00
E
10,200.00
A
17,000.00
A
17,420.00
A
3,000.00
A
8,230.00
A
22,800.00
A
19,050.00
A
34,000.00
A
12,540.00
A
18,000.00
A
15,200.00
A
14,000.00
A
12,970.00
A
-3,100.00
E
28,000.00
A
13,200.00
A
2,230.00
A
28,800.00
A
25,500.00
A
3,120.00
A
13,200.00
A
15,400.00
A
8,300.00
E
14,440.00
A
3,400.00
A
20,100.00
A
12,000.00
A
Err:508

Bank Code
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1
B1

Account
Code
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100
IS-100

Payment
Date
3/1/2011
3/10/2011
4/13/2011
4/10/2011
5/9/2011
5/9/2011
5/10/2011
6/6/2011
6/9/2011
6/30/2011
7/26/2011
7/16/2011
7/16/2011
8/21/2011
9/12/2011
9/16/2011
9/27/2011
9/30/2011
10/4/2011
10/13/2011
10/13/2011
11/30/2011
12/3/2011
12/21/2011
12/29/2011
1/11/2012
1/31/2012
2/28/2012
2/28/2012

56800

Monthly Sales Report


Month

Total Sales

31-mars-11

Err:508

30-avr.-11

Err:508

31-mai-11

Err:508

30-juin-11

Err:508

31-juil.-11

Err:508

31-aot-11

Err:508

30-sept.-11

Err:508

31-oct.-11

Err:508

30-nov.-11

Err:508

31-dc.-11

Err:508

31-janv.-12

Err:508

29-fvr.-12

Err:508
400,200.00