In Rows, you can merge data from two different tables using two distinct methods:
APPEND
Data – Adding one dataset below another.JOIN
Data – Combining tables by matching columns.
This article explains how to use the APPEND
and JOIN
functions to merge data efficiently.
APPEND function
Stacking Tables
Use the APPEND
function to add one dataset below another. This is useful when both tables have similar structures but may have columns in different orders.
Example: Combining Morning and Evening Orders
Scenario: You have two tables:
- Morning Orders: Contains columns
Name
,Email
,Order Date
,Order ID
.
- Evening Orders: Contains the same columns but in a different order.
Steps:
- Click on Data.
- Search for
APPEND
function - Under Data1, select columns A:D from the Morning orders table
- Toggle Set more data(s) on and select columns A:D from the Evening orders table.
- Click Create Data Table.
Result:
A new table is created, stacking the second dataset below the first. The column order follows that of the first table.
JOIN function
Adding Columns Based on Matching Keys
Use the JOIN
function to merge two tables based on a common column (key). This is useful when different tables contain complementary information.
Example: Merging Orders with Shipping Data
Scenario: You have two tables:
- Orders Table: Contains
Name
,Email
,Order ID
, andOrder Date
.
- Shipping Data: Contains
Email ID
(same asEmail
in Orders),Shipping Date
andShipping Id
.
Steps:
- Click on Data.
- Search for
JOIN
function - Under Data1, select columns A:D from the Orders table
- Under Data2, select columns A:C from the Shipping table
- For
Key1
, ChooseEmail
from Orders table. - For
Key2
, ChooseEmail ID
from Shipping table. - Click Create Data Table.
Result:
A new table is created, combining all columns while keeping matching rows together based on the common email identifier.
Conclusion
- Use
APPEND
when you need to stack data vertically. - Use
JOIN
when you need to merge related data horizontally.
With these functions, you can seamlessly merge datasets in Rows to streamline data analysis and reporting.