Getting the value of specific cells in an Excel file

One of the good things about Excel files is that they give you the freedom to write anywhere on the sheets, which sometimes is good if you want to prioritize the look and feel. However, that could cause troubles when it's time to automatically process the data in those files. Suppose that you have an Excel file with values for a couple of variables you'd like to set, as shown in the following screenshot:

Getting the value of specific cells in an Excel file

In this example, you want to set values for three variables: Year, ProductLine, and Origin. The problem is, that you don't know where in the sheet that table is. It can be anywhere, near the upper ...

Get Pentaho Data Integration Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.