Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Pull a column of data from one sheet to another based on a matching criteria

$
0
0

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.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>