Import Row and Column Headers from Excel with an Offset from A1

Import Row and Column Headers from Excel with an Offset from A1

sastanin
Collaborator Collaborator
1,361 Views
2 Replies
Message 1 of 3

Import Row and Column Headers from Excel with an Offset from A1

sastanin
Collaborator
Collaborator

[ FlexSim 21.0.2 ]

I noticed that options "Use Row Headers" and "Use Column Headers" in Excel Import tool do not work the same when the data is not at the top left corner of the sheet (A1).

In particular, if Excel sheet looks like this:

36505-1612450778800.png

And Import is configured to start from row 2

36528-1612450875000.png

Then the table is imported like this (headers are imported as data):

36532-1612450921300.png

And if data starts from A1, and Starting Row = 0, Starting Column = 3, then the table is imported like this:

36533-1612450991500.png

(OK)

I also noticed, that if the table starts at B2, then automatic detection of the table boundary (Total Rows = 0, Total Columns = 0) doesn't work.

0 Likes
Accepted solutions (1)
1,362 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

The start row and column is where the data starts - not the headers- and the number of rows and columns should not include the headers (this is different to the tooltip displayed when you hover over - will email that to dev). The tooltips of the row and column header checkboxes are also misleading - you should instead consider reading them as "include an extra column to the left of the data for the row headers" and "include an extra row above the data for column headers"

The automatic number of rows and columns works fine too - you need to make sure your start column and row is in the data and not the header space, and of course that you've saved your Excel workbook.

0 Likes
Message 3 of 3

sastanin
Collaborator
Collaborator

Thank you. It was not obvious that Import settings should define offset to the first data cell, not the top-left table cell.

From the usability point of view I suggest to use Excel coordinates directly, like "C3" in this case, and call it "Top-left data cell: C3", and change the default to B2 when "Use Row Headers" and "Use Column Headers" are active. It would also eliminate the need to count columns.

36805-1613378564700.png

0 Likes