Practice Session 3 - Stationery: Computer Science (Code 30424) A.Y. 2018-2019
Practice Session 3 - Stationery: Computer Science (Code 30424) A.Y. 2018-2019
2018-2019
The company that you work for (a small distributor of office stationery) entrusts you with the
creation of a report system showing the revenues performance for its products. All prices are in US
dollars.
Before starting the exercise, you are asked to rename the file Stationery.xlsx as Stationery XX
NNNNNNN.xlsx, where XX is the number of your class (e.g. 15) and NNNNNNN your student ID
(e.g. 1234567).
1) Insert a function in a new column of the Catalogue worksheet, with heading Check category,
to check if the indication of the category of each product meets the standards defined by the
company, i.e. the Category must correspond to the last word of the name of the corresponding
item. If the name of the item is made up of more than two words, the Category must
correspond to all the words of the item name except the first. For each product in the catalog,
the function must return the text "OK" if the rule is respected, otherwise the text "Check
category and item!".
In a new column in the February sales worksheet with the heading Day calculate, using a
function, the day of the week related to each sale date. Make sure that each day is shown with
its full name (Sunday, Monday etc.)
2) In a new worksheet named Pivot, create a pivot table based on the Online sales worksheet
showing the total quantity by item and by sale time. Then:
Set the name “Total quantity” for the field used in the Values area, then change the default
labels for rows and columns with meaningful names
Set the Shipment date and time field as a filter of the pivot table
Create a pivot chart, based on the pivot table, which represents the quantities sold for each
hour, with the products displayed on stacked columns.
1
3) In the Discounts worksheet, you can find a small table prepared to insert the discount rates
that each supplier should communicate. Make sure that next to each supplier it is possible to
enter the discount percentage that will be communicated as a decimal value between 0 and 1.
The insertion of other values must be prevented and in case of an inconsistent entry, an error
message with the title “Warning!” and text “The value must be between 0% and 100%” must be
shown. Insert at least three values to test the worksheet.
The company asks you to perform specific analysis on product sales. Based on data available
in the column Revenue of the February sales worksheet calculate, in a new worksheet called
Revenues, the total revenue for each category of product, considering only the sales carried
out between 2/10 and 2/20 (both inclusive). Sort the categorys of product, in the Revenues
worksheet, in ascending order.
4) In the Analysis worksheet you find, in column A, the list of items sold by the company with two
columns of data already computed:
The number of orders issued with quantity greater than or equal to 100 units
The total revenue for orders with quantity greater than or equal to 100 units
Create a mixed chart with two axes, in the same worksheet, representing at the same time the
two columns of data for the products. Complete the chart with a chart title and titles of the
vertical axes. Show the currency labels without decimal places.
Return to the Online sales worksheet and calculate, in a new column with the heading Days
for shipment, the number of days that have elapsed since the sale date to the shipping date,
as integers. E.g.: if the sale date is March 1 and the shipping date is March 2, the result must
be 1 regardless of the time of sale and shipping.
5) In a new column of the Online sales worksheet with the heading Efficiency use a function to
show, for each sale:
the text “Ok Sunday” if the sale took place on Sunday (use the Sale date and time column)
and the time (expressed as the number of hours) elapsed between the date and time of
the sale and that of shipping is equal to or lower than 50 hours
the text “Ok weekday” if the sale took place in any other day of the week and the time
elapsed between the date and time of the sale and that of shipping is equal to or lower
than 30 hours
Apply the appropriate formatting and organize data in an appropriate manner, in order to ensure
maximum readability and give a neat and professional appearance to the worksheets.