Category: Transform / Advanced
This action fills the empty cells in selected columns by duplicating the value of the last non-empty cell above the empty ones. The cells are filled downwards.
Setting | Description |
---|---|
Fill gaps in selected columns | Select one or more columns to fill empty cells within. |
Group by selected columns | Select the column(s) where matching values will determine what the source value is to fill in. |
Example 1: Add the name of the country in the empty cells of the column "Country".
Table: Countries and States/ Provinces
Country | State/ Province |
---|---|
Canada | Alberta |
British Columbia | |
Manitoba | |
USA | Alabama |
Alaska | |
Arizona |
Action parameters:
Select "Country" column.
Result table:
Country | State/ Province |
---|---|
Canada | Alberta |
Canada | British Columbia |
Canada | Manitoba |
USA | Alabama |
USA | Alaska |
USA | Arizona |
Example 2: Fill in empty cells in "First Name" based on the values in "Last Name" and "Position".
Table: Staff positions
Row Num | First Name | Last Name | Position |
---|---|---|---|
1 | Bob | Wilson | Admin |
2 | Wilson | Admin | |
3 | Lisa | Smith | CEO |
4 | Darci | Wilson | Accountant |
5 | Wainright | Accountant | |
6 | Tony | Smith | Accountant |
7 | Smith | Accountant | |
8 | Roger | Wainright | Accountant |
9 | Smith | Custodial | |
10 | Wilson | Admin |
Action parameters:
Fill gaps in "First Name" column
Group by "Last Name" and "Position" columns
Result table:
Row Num | First Name | Last Name | Position |
---|---|---|---|
1 | Bob | Wilson | Admin |
2 | Bob | Wilson | Admin |
3 | Lisa | Smith | CEO |
4 | Darci | Wilson | Accountant |
5 | Wainright | Accountant | |
6 | Tony | Smith | Accountant |
7 | Tony | Smith | Accountant |
8 | Roger | Wainright | Accountant |
9 | Smith | HR Manager | |
10 | Bob | Wilson | Admin |