Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, we start with a simple template file that contains data markers:

Here is the template after it has been populated with data:

Image Added

Below is break down of what was affected when the data was imported.

Content below the data markers

In this example, there is content below the data marker row (a Grand Total row and a blue footer row). This These will be pushed down as new rows are inserted.

Before

...

importing data


After :the data is imported, these rows are moved from rows 4 and 5 to rows 7 and 8.

Formatting on the data marker row

There are several formatting elements on the data marker row. This formatting will be applied to each new row of data.

  • Currency number formatting on B3
  • Italic font on B3
  • Red font on C3
Before importing data

Image Added

Formulas

  • There are two formulas
    • B4 contains a SUM formula that references a data marker cell. The lower boundary will expand to include new rows.
    • C3 contains a formula that references a data marker cell. The row values will be updated for each new row.
Before:

After:

Formatting on the data marker row

  • The italic and red font formatting will be applied for each row of data that is imported

Before:

Image Removed

After:

Image Added

Image Added

Worksheet.ImportData

How does ExcelWriter create rows when inserting data?

...