Excel: Fill from earlier sheets

Fill empty cells on a sheet from what was typed for the same name on earlier sheets.

Help Centre › Building Processes

Fill empty cells on a sheet from what was typed for the same name on earlier sheets.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Fill from earlier sheets under Excel › Cells & Ranges, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
Columns to fillYesThe columns to fill, by heading or letter, comma-separated, e.g. CR CONTR, ACC NO. Only empty cells are filled: cells with a value or a formula are left alone.
RulesNoNames that always get the same values, one per line: name = value, value. Without * a rule means "the name starts with", e.g. 04-300-407-5 = G/L, G/L. The name part needs at least 3 characters, so a rule cannot catch every name starting with one letter. Rules are used before the earlier sheets.
Sheets to searchNoThe sheets to look in, one per line, e.g. *NED* and *STD*. * matches any characters. Leave empty to look in every sheet.
Sheets to leave outNoSheets to leave out, one per line, e.g. *BALANCE*. * matches any characters.
Sheet to fillYesThe sheet whose empty cells are filled, e.g. NOV'26 NED. Supports wildcards: * matches any characters.
Name columnYesThe column holding the name to look up, by its heading (e.g. NAME) or its letter (e.g. B).
Fill whenNoThe last n times agree: the name's newest n rows all have the same values, so a changed account is picked up once it has been used n times. n times agree in total: n rows have the same values and they are at least 80% of that name's rows. Choices: The last n times agree, n times agree in total. Default: last.
Search orderNoNewest to oldest: the month and year are read from each sheet's name (NOV'26, OCT'2020, SEPT'21), so tabs out of order do not matter; sheets without a date are searched last. Tab order: the last tab is taken as the newest. Choices: Newest to oldest (from the sheet names), Tab order, last tab first. Default: date.
VariableNoName of the variable where the result is stored: the rows filled, the rows left blank and why, and rows whose typed values disagree with the earlier sheets. A customer's first new account number also shows up as disagreeing until it has been used n times. Default: filled.
Times (n)NoHow many earlier rows with the same name must agree before a cell is filled. More is safer; fewer fills more. Default: 3.
Months backNoOnly look in sheets up to this many months older than the sheet being filled. Sheets without a date in their name are then left out. Leave empty to look in all of them.
Date columnNoOptional: the column holding each row's date, by heading (e.g. DATE) or letter. When given, a name's earlier rows are taken newest first by this date, so the NED and STD sheets of one month mix by day. Rows without a date keep their place.
Colour filled cellsNoA colour for the cells this step fills, so a person can check them, e.g. #FFF2CC. Cells with this colour are then not used to fill other rows on later runs, which keeps a wrong fill from spreading. This reads a cell's colour for each earlier row it relies on, so it is slower on a Mac.
Only sheets like the one being filledNoOnly look in sheets matching the same pattern as the sheet being filled, so a NED sheet is filled from NED sheets only. Default: off.

See all Excel steps.

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.