Share via

auto populate data to another sheet in a workbook based on a populated field

Miller, Shelly 0 Reputation points
2026-05-27T20:06:21.2333333+00:00

I have an excel workbook that contains numerous tabs. Each tab tracks data for a unit and i need to be able to copy an entire row from any of the tabs to a separate tab based on whether or not a date is populated in one of the columns.

all of the examples I have found show how to do it looking for a certain word or term but none are based on simply if the cell in the column is populated and how to copy all the data in that row to a separate sheet if it is.

thanks for any assistance!!

Microsoft 365 and Office | Excel | Other | Other

1 answer

Sort by: Most helpful
  1. AI answer

    2026-05-27T20:06:38.88+00:00

    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:

    1. Organize each unit’s data as an Excel Table on its own worksheet (Insert > Table).
    2. Create another worksheet with a target Table that has the same columns.
    3. Use an Office Script (or VBA macro) that:
      1. Loops through each source table (each unit tab).
      2. Checks the date column in each row.
      3. 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.