• Home
  • Blog
  • Pivot Tables and Data Cleaning Excel Task

Pivot Tables and Data Cleaning Excel Task

0 comments

PARTONE

You will be following the scenario of a recently hired Junior Data Analyst in a local government office, who has been tasked with importing some data from another department which relates to inventory information about their fleet of vehicles. The data is in comma-separated value (CSV) format and the data also needs cleaning up before you can start to run any kind of analysis on it. Download the file https://cf-courses-data.s3.us.cloud-object-storage… Upload and open the file with Excel for the web and convert it to an .XLSX file. Then clean the data as detailed below.

Tasks to perform:

  1. Save      the CSV file as an XLSX file: Click the ‘Edit Workbook’ button in the      ToolTip to save the file as an XLSX file. The file is converted when you      click ‘OK’ in the prompt.
  2. Column      widths: Sort      out the widths of all columns so that the data is clearly visible in all      cells.
  3. Empty      rows: Use      the Filter feature to look for blanks and remove all empty rows from the      data.
  4. Duplicate      records: Use      either the Conditional Formatting or Remove Duplicates feature to look for      and remove any duplicated records from the data.
  5. Spelling: The original source      file data has not been checked for errors in the spelling. Check for      spelling mistakes in the data and fix them.
  6. Whitespace: Use the Find and      Replace feature to remove all double-spaces from the data.
  7. Department      names: When      the data was converted from its data source, the department names (see      correct list below) didn’t import correctly and they are now split over      two columns in the data. Use Flash Fill to reduce the department names to      just one column, and then remove any unnecessary columns.

   

Department

Department

 

Board of Elections

Economic Development

 

Circuit Court

Environmental Protection

 

Community Engagement Cluster

Finance

 

Community Use of Public   Facilities

Fire and Rescue

 

Consumer Protection

General Services

 

Correction and Rehabilitation

Health and Human Services

 

County Executives Office

  1. Save      your workbook: Use      ‘Save As’ to save your completed workbook as Montgomery_Fleet_Equipment_Inventory_FA_PART_1_END.XLSX

PART TWO

You will be following the scenario of a recently hired Junior Data Analyst in a local government office, who has been tasked with sorting and analyzing fleet inventory data that was previously imported and cleaned. You plan to use pivot tables to analyze the data in preparation for the results to be visualized in a dashboard and added to a data findings report later. Download and open the https://cf-courses-data.s3.us.cloud-object-storage… file in Excel for the web.

Tasks to perform:

  1. Format      the data as a table: Use the Format as Table option to format the data as a table.
  2. Use      AutoSum to calculate values: Use AutoSum to find the following values      for column ‘C’ and record each of the values:
  3. Create      a Pivot Table: Use      the PivotTable feature to create a pivot table that displays the      Department field in the Rows section, and the Equipment Count in the      Values section, so that the pivot table displays the sum of equipment      count by department.
  4. Sort      the pivot table data: Use the Sort By Value setting on the pivot table to sort it      in descending order by the sum of equipment count.
  5. Make      two more pivot tables exactly the same as task 3: Follow the same steps      you performed in Tasks 3 and 4 to create two more identical pivot tables      so that you end up with 3 worksheets that contain identical pivot tables.
  6. Analyze      data in the pivot table: Use the PivotTable Fields pane to      manipulate and analyze data in the two copied pivot table as follows:
  7. Save      your workbook: Use      ‘Save As’ to save your workbook as Montgomery_Fleet_Equipment_Inventory_FA_PART_2_END.XLSX

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}