Reshape steps
Files come as people’s tools write them: tables stacked one under another, a column per month, a statement that needs some rows kept and a sign turned. BInbox reads them as they are, with a short list of steps that run on the rows before they are added up. Nothing in your file changes.
Each step says what it did, in numbers: “Kept 99 of 395 rows where Region is North.” BInbox finds the steps a file needs when the file opens, and they lead the summary on the strip over the chart.
Where to see them
Section titled “Where to see them”The steps are in the setup’s Totals step, under “2 steps run before the rows are added up”. Each step is listed as a sentence, with what it did. A step that found nothing to act on is marked, for example “Found no repeated header rows to leave out.” The Preview step lists the steps again under “Before the rows are added up”.
The setup then runs its total rows and grouping files after the steps, as it always has.
The steps
Section titled “The steps”| Step | What it does | Found by BInbox when |
|---|---|---|
| Read the sheet North | Reads one sheet of a workbook, or several one under another, with each sheet’s name in a column. Runs first. | The file is a workbook. |
| Read the column names from line 4, leaving out the 3 lines above | Leaves out title lines above the header. | Lines above the header hold at most one field each. |
| Read the column names from lines 3 and 4, leaving out the 2 lines above | Reads the column names from two lines, each column’s from the line that has one. A label over names is joined to each, and a year goes after the month under it. | A line of labels sits over a line of names, every field a word. See a header over two lines. |
| Leave out the repeated header rows of the stacked tables | Reads tables stacked in one file, each under its own copy of the header, as one table. Their number columns read as numbers. A code such as 007 stays text. |
Every block repeats the header in the same order, both lines of a header over two. |
| Read only table 1 of the tables under a repeated header | Reads one table when a repeated header starts another table of the same rows with other figures, such as an index and then its revisions. The title line above the repeated header names the table left out. | The header repeats, and half or more of a later table’s rows have the dates and names of rows in the first. |
| Keep only the rows under the section NOT ADJUSTED in Kind of Business | Keeps the rows under one section row, a row with only a label in it, and leaves out the other sections. | Two or more section rows split the rows, the first near the top, and the later sections repeat half or more of the first one’s names. |
| Turn the 12 columns Jan 2025 to Dec 2025 into rows, named in Month as months with their values in Value | Turns a column per month into a row per month. Blank cells are left out. | Three or more columns are each named by a month and hold numbers. |
| Turn the 66 columns 1960 to 2025 into rows, named in Year as years with their values in Value | Turns a column per year into a row per year. The report then shows years. | No column is named by a month, and three or more are each named by a year and hold numbers. |
| Leave out rows where Date is Unit, Series Type or Series ID | Leaves rows out by a column’s values. | Up to 15 rows under the header describe each column, as a statistics office’s series do, and every row after them is a date. |
| Split NAME into State and County, with the level each row is at in Level | Splits a column of places and the places within them into the parent, the child and the level each row is at. See rows at their own level. | A column holds plain names and names with their parent after a comma (“Alabama”, “Autauga County, Alabama”), and every parent is a plain name in the same column. |
| Read the level of each row, OEM, Nameplate, Series, Model or Totals, from level (Totals where is_aggregate is 1), into Row level | Reads each row’s level from a column that names it, and marks the rows a flag column says are totals as a level of their own. The names stay in their column. See rows at their own level. | A column named level, tier, row type or record type holds 2 to 12 values beside a column of names; or a 0/1 or yes/no column named for totals (is_aggregate, total_flag, subtotal) marks fewer than half the rows. |
| Read the rows marked in is_aggregate as Totals and the others as Country, into Level | Reads the rows a flag column marks as totals of the others, at a level of their own, and the rest at the level named after the column of names. | A flag column named for totals, with no level column. |
| Read the level of each row, County or City, from the form of its name in City Or County, into Level | Reads a name that ends in County, Parish, Borough or Census Area as a county, and any other as a city. The names stay in their column. See rows at their own level. | A column of 5 or more names holds both kinds, at least 2 and a tenth of each. |
| Read the level of each row, Country, Region, District, Store or Area, as the last of country, region, district, store and area that is filled, into Level | Reads each row’s level from which columns it fills: a region’s own row leaves the district and store blank. See rows at their own level. | Columns with blanks nest one under another, most rows first; the rows above have a row of their own for most of their values; and the values repeat, or the rows above add up the rows under them. |
| Keep only rows where Region is North | Keeps only the rows with these values. | Added by you. |
| Flip the sign of Amount where Type is Sale | Turns a number’s sign, on every row or only where another column holds a value. | Added by you. |
Column names written as months read as the first of the month: Jan 2025, January 2025, Jan. 2025, 2025 Jan,
2025-01, Jan-25, 1/2025, Aug. 2026(p). A month marked (p) or (r) is a first or a revised estimate. The step
says so, “August 2026 is preliminary.”, and the month’s values read as any other’s.
Rows at their own level
Section titled “Rows at their own level”Some tables hold rows at different levels of one group, each with its own figures: states and the counties in them, a maker, its nameplates, their series and their models, or counties and cities. A lower row is not part of the row above it, and the rows below may not add up to it. A survey publishes only the larger counties, for example, and a series figure is the publisher’s own. So each row counts at its own level only, and no level is the sum of another. BInbox reads which level a row is at from one of four sources, and writes it to a level column.
A level column
Section titled “A level column”A level column is a column named level, tier, row type or record type, with a few values that name the levels (OEM,
Nameplate, Series, Model) beside the column of names. The levels run from the one with the fewest names to the
one with the most. A row whose value names no level is left out and counted. A Data Through line (the day the data
runs to) is not a level.
The name’s form
Section titled “The name’s form”A column of places and the places within them, Alabama and Autauga County, Alabama, with each county’s state also a
plain name in the column, is split into three columns: the state, the county and the level.
The other form is a column that mixes counties written the Census’s way, Cook County, Orleans Parish, Bethel Census Area, with plain names, Chicago. In that column a name with a county’s ending is a county, any other name is
a city, and the names stay in their column.
A flag column
Section titled “A flag column”A 0/1 or yes/no column named for totals, such as is_aggregate or total_flag, marks rows that are totals of the
others, such as a segment total among the models, or World and the regions among countries. A marked row is at a level
of its own, “Totals”, and is never in the sum of the members. When the file has a level column too, the flag wins.
The filled columns
Section titled “The filled columns”A table with subtotals, as a statistics office exports one, has a column per level. A row at a level fills that level’s column and leaves the finer ones blank: a region’s own row has the district and store cells blank, and a district’s own row has the store cell blank. The level is the last filled column.
BInbox reads a table this way when the columns with blanks nest one under another, the rows above have a row of their own for most of their values, and the values repeat over the rows (as they do over months) or the rows above add up the rows under them. A column every row fills, just before them, is the top when some rows fill none of the others (a national row). A code column filled on the same rows as a name is not a level of its own. A column whose rows sit beside another’s under the same top (parliamentary constituencies beside the local authorities) is a level too, with no parent at the levels it leaves blank. Without this reading, each blank cell is the level’s “(blank)” row and every subtotal is added to the rows it adds up.
How the levels are used
Section titled “How the levels are used”The levels become one group, and every row counts at its own level only:
- Choosing State shows the state rows. Choosing County shows only the counties. Choosing Totals shows the totals.
- The total above the group is the rows that count at its top level, such as the states’ rows or the makers’ rows. It is never the levels added together.
- A level the level column never names, such as a State column above counties and cities told apart by their form, has no rows of its own and adds up the rows under it. A city then sits in its state, though it has no county.
- A county or city whose name is used in more than one state, such as Washington County, is named with its state,
Washington County, OH, and a map places each county by it. A city is never placed by guesswork, so the map draws the County level from the county shapes, and the City level is not drawn. - The level is named from the places. The parents’ level is “State” when the parents are states or provinces, else “Region”. The children’s level takes the word most of them end in (“County”), else “Place”. The county form gives “County” and “City”. A level column’s values name their own levels. Rename them in the Groups step.
- A row whose level is none of the group’s is left out of every total, and the Preview step’s check says how many.
Under Groups, the group says “Each row counts at the level its Level column names”, with how many rows each level has and which levels add up the rows under them. Untick it to read the group as a plain nesting instead. For a county-and-city column, Grouping files offers a file to group every place by county, with the county rows filled in, so the city rows can be placed too.
A table with one row per place at one level, such as stores in regions, is read as it was, and the upper levels add up the lower. To read a file this way when BInbox did not, choose Add a step… then Read rows at their own level under Totals.
Months, quarters and years in one column
Section titled “Months, quarters and years in one column”Some files carry every period a figure is published at, one row each: a month (2026-03), a quarter (2026-Q2), a
year to date (2026-YTD) and a full year (2021), often with a column beside them that says which (monthly,
quarterly, ytd, full_year). A market file of prices, shares and payments is shipped this way because such
figures do not add up, so the source works out every grain itself.
BInbox reads each row at its own period when the setup’s Dates step has Each row is at its own period: months, quarters, years to date and years ticked, which it suggests for such a column:
- Choosing Quarter reads the quarterly rows, Year the full-year rows, and YTD the year-to-date rows, which run to the file’s last month. A year to date as of December is the year’s row.
- Nothing is added up across grains: a quarter is never its months’ sum or mean, and a year never its quarters’.
- A period the file has no row for, such as a quarter the data ends inside or a year that is not over, is “Not available for this data: no rows at quarter for Q3 ’26 (thru Aug)”. A file with no rows at a grain says “no rows at year”.
- A month cell under a coarser kind in the kind column (
2026-03markedytd) is read as that kind. - The years can run further back than the months, as full years often do.
- A
Data Throughline is the day the data runs to. It is shown in the footer and is not read as a row of figures.
A file of months alone is read as before, and its quarters, years to date and years are added up from its months.
Add a step
Section titled “Add a step”In the Totals step, choose Add a step…:
- Keep only some rows asks for a column under Keep only rows where… and a value under is….
- Flip a column’s sign asks for a number column under Flip the sign of…. Then choose Flip on every row, or on every row, or where… with a column and is… with a value.
- Read rows at their own level asks for the column of names under The rows of…. Under are at the level…, choose whether the level is named in another column, told apart as a county or a city by the name’s ending, or marked as totals by a flag column. Then choose Read the levels. The answers are read again from the rows with the step, as for a step that changes the columns. The filled-columns reading is not offered here, because it comes from the rows or from a setup file.
Each is… list shows the column’s values by name, with numbers in number order. The answers to the other questions stay as they are.
Remove a step
Section titled “Remove a step”Choose Remove beside the step. Removing a stack, a turn into rows or rows at their own level changes the columns, so the answers are read again from the rows without that step. The sheet and title-line steps, and a header over two lines, are read with the file and cannot be removed. For a workbook, pick other sheets in the list beside the sheet step instead.
Pick a workbook’s sheets
Section titled “Pick a workbook’s sheets”The sheet step has a list. It shows each group of sheets that share a header, such as “4 sheets one under another (North, South, East, West)”, then each sheet with its rows, for example “Returns (296 rows, hidden)”. Choosing one reads the file again and keeps you on the Totals step. Save and open the report then saves the setup with those sheets.
Up to 20 steps
Section titled “Up to 20 steps”A setup holds up to 20 steps. They are saved with it and run in order on every later file with the same columns.