Help needed with non structural XLSX file

I believe this is close to what you need. You basically have three steps:

  1. Read A:I (dt1) and J (dt2) as separate datatables
  2. Work out how many columns you need added to Dt1 and add them.
  3. Cycle through dt2 adding each row item to dt1, moving onto the next row when required. This is done by monitoring both row index of the dt2 item and the target column index of dt1.

Source file looks like:

image

Output looks like:

UnstructuredExcel2.zip (9.6 KB)

edit: just realised its been solved above, the solution here does not use LINQ if you prefer

1 Like

Nice, thank you! I will check out this as well :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.