VLOOKUP is a function that vertically searches for a certain value in a column to return a corresponding piece of information. VLOOKUP helps bring the information together across multiple sheets or even different databases.
Example:
Sheet 1 “Statistiche_globali”
Sheet 2 “Dettaglio_pezzi”
Task: in the Global_Statistics sheet (sheet 1), retrieve the Cpk of the piece PZ-002 by reading the data from the Piece_Details sheet (sheet 2).
How to split data from the following table with the GPS coordinates of the Colosseum in Rome, Italy to obtain latitude and longitude: insert SPLIT function in a new cell, A4 is the cell where the text is located, “-“ means that the text is divided based on minus sign.
Step 3: Delete extra spaces in cells with string data
Highlight the data in the spreadsheet, click on the Data tab, from Data cleanup select Trim whitespaces
The following message explains that extra spaces were deleted in 4 cells:
Step 4: Change case (upper and lower) text
Google Sheets provides an Add-On for this task: click on the Add-ons option at the top of Google Sheets, click on Get add-ons and search for ChangeCase.
To change the case, select the text to be edited, e.g. a column, click on the Add-Ons tab and select ChangeCase and select the option All lowercase or the needed option
to obtain all lowercase in the selected column
This step can be reverted with Clear formatting: click the Format tab and select the Clear Formatting option.
Data cleaning based on a hands-on activity of Google Data Analytics Professional issued by Coursera
Skills: #datacleaning #filtering #GoogleSheets
Goal: understand how to improve the performance of students in a public school. Data source: reports and surveys of two public schools (named GP, MS). Information included in data: student grades, background information, study time, participation in extracurricular activities.
Click on the top right corner (Use model) to get a working copy
Rename the spreadsheet
Before sorting, select all the data
Sort from menu: Data->Sort Range->Advanced
Then sort by school and by age
To obtain
Potential issue: scrolling through the data, you see that the age range of the students at GP school is 15-22 years, and the age range of the students at MS school is 15-20 years.
Filtering to add a restraint: the age range should be 15-19 for both schools. Any student outside this age range should be deleted from the dataset: i.e. remove the ages 20, 21, and 22 from the dataset. To apply a filter to the age column, select the age column by clicking the letter at the top of the column.
From the menu bar, select Data, then Create a filter
Click on the filter icon (highlighted in yellow) to deselect 20, 21 and 22
To obtain
Turn off filter: Data and Turn off filter
Filling in missing data
Student’s reason for choosing a specific school is important to know for this analysis: the reason column should be complete and without blanks. Apply a filter across the entire spreadsheet, clicking on any cell in the sheet. Then, from the menu bar, select Data and Create a filter.
Click the Filter icon on the reason column (K). Filter this column for blanks by unchecking all the other values (course, home, reputation).
Replace the missing values with the value, e.g. none_given. To do this while the column is still filtered for blanks, enter none_given in the first empty cell (K38). Then, press Enter.
Double click the fill handle to fill all the other blank cells with the value none_given.