Hi all,
I have 2 excel tables in 2 different sheets;
Table A
Trade ID | Book_Nm | Book CD | Sap Company CD | Country CD | Country Nm | Trade Mnth | Date.Period | |
1234 | Bear | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 | * |
1234 | Apple | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 | |
1234 | Solid | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 | * |
1234 | Done | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
Table B
Trade ID | Book_Nm | Book CD | Sap Company CD | Country CD | Country Nm | Trade Mnth | Date.Period |
1234567 | Cheese | Mama | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 6790 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 6790 | SG | Singapore | 2023-03 | 3/8/2022 |
57823 | Brie | Papa | 5670 | SG | Singapore | 2023-03 | 3/8/2022 |
How do I combine the rows marked with * with table B? It should look like something below to form Table C;
Table C
Trade ID | Book_Nm | Book CD | Sap Company CD | Country CD | Country Nm | Trade Mnth | Date.Period |
1234567 | Cheese | Mama | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 6790 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
1234567 | Cheese | Mama | 6790 | SG | Singapore | 2023-03 | 3/8/2022 |
57823 | Brie | Papa | 5670 | SG | Singapore | 2023-03 | 3/8/2022 |
1234 | Bear | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
1234 | Solid | Gumbo | 5279 | SG | Singapore | 2023-03 | 3/8/2022 |
Appreciate the help!
Load Data
Filter Rows in Table A:
Union:
Output
User | Count |
---|---|
107 | |
82 | |
69 | |
54 | |
40 |