I am new to Google sheet formula and need some help from the community.
I have two tabs from a spreadsheet, A and B:
- Both tabs basically have the same number of columns (col1, col2 and col3) except that col3 of B is all empty
- In terms of records, A is a subset of B. All the records in A should have matching records in B using col1 and col2.
- The orders of records in A and B are different which makes the matching more complicated
What I wanted to do is to pull col3 from A and to copy its values to corresponding records in B.
Here are visual examples:
A
+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| 10 | 12 | 11 |
+------+------+------+
| 9 | 8 | 10 |
+------+------+------+
B
+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| 10 | 12 | | <-- this should have 11 from A
+------+------+------+
| 9 | 8 | | <-- this should have 10 from A
+------+------+------+
| 9 | 7 | | <-- this should be still empty since there is no matching record.
+------+------+------+
How can I do this by using google sheet formula?
I tried FILTER function and but I wasn't sure how to specify the matching criteria.
=SUMIFS(<$source col3>,<$source col1>,<cell in B col1>,<$source col2>,<cell in B col2>)