Docsity

Excel Data Processing: Transposing, Sorting, Filtering, and Formatting, Study notes of Descriptive statistics

Toggle sidebar
bg1
1
Exercise 1
Use the Excel file Exercise 1.xlsx for this exercise
a) Click on the Transpose sheet.
b) Select the entire table titled Deaths from natural causes, London, 2011.
c) Copy the table once you have selected it.
d) Paste the table in the cell B3 on the Table worksheet but transpose the data (HINT: select
Paste Special)
e) On the Table worksheet, delete the column for the City of London.
f) Resize the remaining columns so that all the text in the headings is visible.
g) Hide columns for East London, North London, South London and West London (HINT:
use the control key to select all the columns at the same time)
h) Select the entire table and select Format as Table.
i) Choose a table style you like.
j) Insert a total row using the Table Tools Design tab.
k) Select SUM in the drop-down menus along your new total row.
l) Convert the table back to a data range.
m) Freeze the first column of the table on the sheet titled Freeze so that when you scroll to the
right you will always see the first column.
n) Select the cell range A4:G13 and copy to Word so that the data range is included in the word
count.
o) Copy the range into Word again as an image file.
p) Save your Exercise 1 file and close it.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Excel Data Processing: Transposing, Sorting, Filtering, and Formatting and more Study notes Descriptive statistics in PDF only on Docsity!

Exercise 1

Use the Excel file Exercise 1.xlsx for this exercise

a) Click on the Transpose sheet.

b) Select the entire table titled Deaths from natural causes, London, 2011.

c) Copy the table once you have selected it.

d) Paste the table in the cell B3 on the Table worksheet but transpose the data (HINT: select Paste Special )

e) On the Table worksheet, delete the column for the City of London.

f) Resize the remaining columns so that all the text in the headings is visible.

g) Hide columns for East London, North London, South London and West London (HINT: use the control key to select all the columns at the same time)

h) Select the entire table and select Format as Table.

i) Choose a table style you like.

j) Insert a total row using the Table Tools Design tab.

k) Select SUM in the drop-down menus along your new total row.

l) Convert the table back to a data range.

m) Freeze the first column of the table on the sheet titled Freeze so that when you scroll to the right you will always see the first column.

n) Select the cell range A4:G13 and copy to Word so that the data range is included in the word count.

o) Copy the range into Word again as an image file.

p) Save your Exercise 1 file and close it.

Exercise 2

Use the Excel file E xercise 2.xlsx

a) On the Sort and Filter worksheet adjust the column widths so that all cell contents are visible.

b) Use the custom sort option to sort the range i) A-Z by Cost centre ii) then A-Z by Account , iii) then highest to lowest by Amount.

c) On the Advanced filter worksheet insert 4 blank rows at the top of the worksheet and copy the existing column headings to the first blank row.

d) Sort the data by surname then add criteria under the copied column headings to filter for women who are 50 or over from Newcastle or Sunderland and who have replied.

e) Using the Advanced filter command ( Data tab) filter the list to a new location, showing the results starting in cell K1.

(Note that Question J can also be completed by using a VLOOKUP function (See next section). The

VLOOKUP solution is on the final page of this booklet.

Exercise 4

Use the Excel file Exercise 4.xlsx

a) On the VLOOKUP worksheet insert a function in cell D4 to calculate the letter grade for the score in cell C4 according to the criteria in the table array I3:K

b) Copy the function in cell D4 to the cell range D5:D Tip: if the function does not copy correctly down the column – check that you have fixed the Criteria Range as an absolute range at step a) above

c) Add a similar function in cell E4 to assign the category for the score in cell C4. Copy the function to the cell range E5:E

d) On the worksheet Data validation Use the conditions (below) to set up useful validation rules, input messages and/or error Alerts for each field. (Tip: you can set the validation rules in row 4 and test them, then copy them down the columns to row 20).

Field Conditions

Booking reference

Whole numbers – 3 digits e.g. range between 300 and 400

Booking date Conference booking closes 31/3/

Surname Text. How many letters allowed?

Firstname Text. How many letters allowed?

Title Field should only accept ‘Mr’, ‘Ms’ or ‘Dr’

No. of nights Accom. Reqd. Min=0, max=

Dietary requirements

Options are: ‘None’, ‘Vegetarian’, ‘Vegan’ or ‘No dairy’

Category

Options are: ‘Full fee’, ‘Discount fee’ or ‘Student’

Cost Options are: ‘£350’, ‘£180’, ‘£90’

Payment method

Options are: ‘Debit/Credit card’, ‘Cheque’, ‘BACS’ or ‘Invoice’

e) Enter 2 sample records to test your validation rules. Ensure that you try both legal and illegal values.

f) Protect the cell range A3:J3 with the password ‘protected’

Exercise 5

Use the Excel file Exercise 5.xlsx

a) On the Pivot table worksheet select the cell range A1:F

b) Create a Pivot table (Insert – Pivot table) on a new worksheet

c) On the pivot table display the Accounting period in the row field and a breakdown of Location in the colunm field. Display a sum of the Salary field as the values.

d) Modify the pivot table to show a breakdown of Salary by Grade rather than Location.

e) Modify the pivot table to show the Acounting period breakdown by Location.

f) On the Pivot table worksheet (the worksheet with the original data) delete the row for Harry Stone. Update (refresh) the pivot table.

g) On the pivot table display only the academic salary data (i.e. grades ACC6-ACC8)

h) Modify the pivot table values to display the count of the the number of staff on each of the grades above.

i) Return to the Pivot table worksheet and reselect the data range. Insert an aditional pivot table using one of the Recommended Pivot Tables options (Insert tab).

j) On the Statistical functions worksheet complete use the cell range B5:N10 to the missing values in the orange cells B 13:B19 using the functions indicated

Calculating descriptive Statistics

a) First add the Data Analysis ToolPak

b) On the Descriptive statistics worksheet From the Data tab choose Data Analysis

c) Choose Descriptive Statistics

d) Select the Input Range of C1 to C108, grouped by columns , which has labels in the

first row. e) Choose an Output Range of E

f) Check the boxes for Summary statistics and Confidence Level for Mean 95%. g)

Choose OK

h) Resize columns E and F to clearly see the set of descriptive statistics. Correlation

a) Go to the Correlation worksheet and Choose Data Analysis

b) Choose Correlation

c) Select the Input Range of A1 to B108 grouped by columns which has Labels in the first row.

d) Choose an Output Range of E

e) Choose OK

f) Widen column G

Exercise 3 – Solution to question J

Using VLOOKUP as an alternative to nested IF functions Solution:

First create a Lookup table, which should look something like the one shown below. Note that the values in the first column (the ones you will ‘lookup’ in your data range) need to be in ascending order.

Enter the VLOOKUP function shown below into the first cell

Function syntax:

=VLOOKUP(I2,$L$1:$M$6,2,TRUE)

Note that the Table_array must be set to absolute Col_index_no is the number of the column in the Table_array which contains the corresponding value i.e. column 2 In this case we need to set the Range_lookup to TRUE because we are not looking for an exact match Copy the function down the column