Task 1#

1.1 - Loading#

Create an Excel file called lab10.xlsx where the first sheet is called rawdata and contains the orginal loaded dataset with no changes. Follow the following steps for loading the csv file as an excel sheet (rawdata)

  • First open a blank workbook, click on Data > Get External Data > Import Text File… (See screenshot for guidance)

  • Then choose the data.csv file located in the lab 10 directory and click Get Data.

  • A Text Import Wizard window will pop up where you choose Delimited and then Next >

  • Choose the delimiter Comma and then click Next >

  • Choose data format: General and click Finish

  • Finally, rename sheet to rawdata

loading sheet#

lab1_loading_rawdata.png

rawdata sheet#

Your output for the rawdata sheet should look similar to the screenshot provided below:

lab1_rawdata.png

1.2 - Cleaning and Formatting#

Create a second sheet called data that contains the data set after all incorrect and out-of-range values have been removed:

  • Any data that is not a number (eg. “#ERROR#”, “#NA#”), is less than 0, or above 100 should be replaced by an empty string (“”). Hint: May need to use IF

  • Header fields must be in bold font.

  • timestamp field must be formatted as a date field in this format yyyy/mm/dd hh:mm:ss. Hint: May need to use DATEVALUE function and function like MID to convert date. More info. Note that both the DATE and TIME need to be converted and added together to get a DATETIME. You need to add some / between the day, month, and year. e.g =DATEVALUE(MID(rawdata!A2,9,2)&”/”&….

  • Data must be sorted by siteid (ascending), sensorid (ascending), then timestamp (ascending).

  • Add a column called global_sensor_id that is generated by siteid&”_”&sensorid (for e.g. if siteid = 3 and sensor_id = 1, then global_sensor_id should be 3_1)

Task 1 data sheet#

Your final output for the data sheet should look similar to the screenshot provided below:

lab1_data.png

SUBMISSION DETAILS:#

  1. Submit ONE Screenshot of the data sheet with cell D2 selected so we can see what formula you used in the formula bar

  2. Submit ONE Screenshot of the data sheet with cell E2 selected so we can see what formula you used in the formula bar