Icon

Non-standard format Spreadsheets

There has been no title set for this workflow's metadata.

This workflow shows how to work with spreadsheets that come in a non-standard format using KNIME Analytics Platform. The aim is to clean up and rearrange a spreadsheet in a non-standard format and then apply a row aggregation. We demonstrate this by finding the number of male and female athletes born in January 2000 using the Olympic Athlete Bio file.

Non-standard format Spreadsheets

This workflow reads data from en Excel sheet which contains information other than what is defined by column headers and rowIDs. It extracts, appends, and filters the data into a formatted table and performs aggregations on it. Finally, it writes the results into a new sheet in the same Excel file.


You can find more workflows and resources for spreadsheet users on the related collection page on the KNIME Community Hub.

Task

Find the number of Olympic athletes born in 2000

Read and arrange parts of the Excel sheet

  • Extract column headers from other than the top row

  • Shift data entered into a wrong cell

  • Remove rows without information

Combine and clean the extracted data

  • Concatenate rows after collecting and arranging it in the previous step

  • Define which columns and rows to keep in the table

Aggregate and export the data

  • Calculate summary statistics

  • Append the statistics to the formatted table

  • Write the formatted table into a new sheet in the original Excel file

Read the Athlete Bio file (non-standard format)
Excel Reader
Split the table by the separator row
Table Splitter
Concatenate the transformed tables
Concatenate
Extract the date from the misplaced cell
Cell Extractor
Crop the table to the desired shape
Table Cropper
Set the second row ascolumn header
Row to Column Names
Remove unnescessary columns
Column Filter
Count the number of males and females
Row Aggregator
Place the extracted cell content in the correct place
Cell Updater
Remove the row with RowID "Row5"
Row Filter
Append the modified table to a saparate sheet
Excel Writer
Column Appender
Column Renamer

Nodes

Extensions

Links