A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use a helper method that moves or copies rows that meet the condition (date cell is populated) into a separate sheet. This can be done either manually with filters and copy, or with automation (scripts/VBA). The context provides a closely related pattern: moving rows between tables based on a condition.
A general approach based on the “move rows across tables” pattern:
- Organize each unit’s data as an Excel Table on its own worksheet (Insert > Table).
- Create another worksheet with a target Table that has the same columns.
- Use an Office Script (or VBA macro) that:
- Loops through each source table (each unit tab).
- Checks the date column in each row.
- If the date cell is not empty, appends that entire row to the target table on the separate tab.
The sample “Move rows across tables” script described in the context does exactly this kind of operation, differing only in the condition used to select rows. Instead of checking for a specific value (FILTER_VALUE), adjust the condition to test whether the date column value is nonblank.
This pattern:
- Selects rows from the source table where a column meets a condition.
- Moves all selected rows into a target table in another worksheet.
- Reapplies filters to the source table.
That same pattern can be reused for any number of unit tabs in the workbook.
References: