0% found this document useful (0 votes)
2 views

Lab 1

Uploaded by

Azennith Gijapon
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lab 1

Uploaded by

Azennith Gijapon
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Data Analytics for Business & Decision Making Lab 1

In This Lab: Exploring Excel Spreadsheet

Using the file Cities.csv, complete the following in order.

⚫ Insert and delete rows:


Insert Tokyo, Japan, 35.65, 139.84, 16.55
Delete the above information
⚫ Insert columns:
Insert a column to the left of the “temperature” column (column E) with the
header name Fahrenheit
Enter the corresponding temperature in Fahrenheit by the formula:
Formula: Fahrenheit = (Celsius*9/5) + 32
(Enter the formula in the cell, then "copy" the formula to each cell below)
⚫ Sorting:
Select the entire “temperature” column, select Data→Sort, what happened?
Select Cancel
⚫ Select the entire data sheet (click the top left corner), data→sort, sort by
temperature, smallest to largest

⚫ Re-sort by Country, then add a new level, and sort by Latitude in descending
order (largest to smallest)
⚫ Filtering :
Select the entire data sheet, select Data→Filter, select the drop-down menu
of the temperature column, you can check several values, or click "filter by
number", filter by "greater than" 10, and then use the “Country” column to
filter by "text" , select "contains" ia (or "ends with" a)

⚫ If you want to calculate the filtered data, you must consider the hidden
data during the filtering, which may also be included in the calculation,
and the result will be wrong: the filtered data needs to be calculated with a
special formula (please Google: Excel calculate the filtered data) or we can
copy the filtered data directly to a new data sheet for calculation.

⚫ Formulas/Functions (the cell range and other parameters are usually


required in the functions)
➢ Calculate the maximum and minimum values of latitude and longitude:
Use formulas: =MAX(C:C), =MIN(D:D)
➢ After filtering “temperature > 10”, calculate the average temperature
(copy the filtered data to a new data sheet): use =AVERAGE("Range")
➢ Calculate the number of cities whose longitude < 0, which can be
calculated in a variety of ways:
Try using: =COUNTIF("Range", condition), e.g.: =countif(D:D, "<0")
➢ Calculate the average longitude of a certain country (that is, the
average longitude of cities in this country):
Use AVERAGEIF(criteria range, criteria, [data range])
For example: =averageif(B:B, "Italy", E:E)
Remark. In the Cities.csv file, multiple cities may come from the same country,
so the country name in the Country column are possibly repeated several
times. If we want to know how many countries are in this data, we need count
duplicate countries only once for the data in the Country column, if we want
to list the names of these countries, only one name should be listed for each
country. In Excel 365 (version after 2020), we can apply the UNIQUE
function, and use the
Country column as the
data range. Other
Excel versions also
have several different
methods to accomplish
this, for example, we
can use the "Remove
Duplicates" in the data
tool (right picture):

You can also use the


advanced function of
filtering (Left):
After pressing OK, you
can see the unique
record.
This non-repetitive
record is very useful,
used as a (comparison,
search) data range in
various functions!!

You might also like