How to extract data from specific Excel cells
This article explains how to extract data from specific Excel cells.
In this example:
- The tFileInputExcel component reads an Excel file and extracts data.
- The tFixedFlowInput component generates one input flow including the data of the specific cells, using the context variables.
- The tJavaRow component allows you to enter customized code.
- The tLogRow component displays data in the Run console.
Dropping and linking the components
Procedure
- Create a new Job and drop the following components from the Palette onto the design workspace: tFileInputExcel, tFixedFlowInput, tJavaRow and tLogRow.
- Connect tFileInputExcel to tFixedFlowInput using a connection.
- Connect tFileInputExcel to tJavaRow and tFixedFlowInput to tLogRow using links.
Configuring the input component - tFileInputExcel
Before you begin
For this example, you must have an Excel file you will use in the Job, as follows.
In this example, you will extract data from cells A4, B1, C9 and D6.
Procedure
Creating context variables
For this example, you will define four variables: a4,
b1, c9 and d6.
These variables will set the name of the cells the
tFixedFlowinput component will extract from the Excel
file.