I have two Google Speadsheet sheets. I want to cross-reference the two sheets, and update the rows in SheetA with the value of cellA in SheetB, if CellC in SheetB contains the value of CellA in SheetA.
SheetA looks like this:
A. Word | B. Other value | C. Another value
---------------------------------------------
word 1 | 1234 | 5678
word 2 | 3921 | 73643
word 3 | 4020 | 43985
word 4 | 32323 | 32325
SheetB looks like this:
A. Code | B. Category | C. List of words
-----------------------------------------------
1.1.1 | Cat1a | word 1, word 5, word 7
1.1.2 | Cat1b | word 3, word 2, word 9
1.2 | Cat2 | word 5, word 6, word 4
1.2.1 | Cat2a | word 8, word 10
Now, if cellC, "List of words" contains the word from cellA, "Word" in SheetA, then update that row in SheetA with the value in CellA ("Code") from SheetB.
How can I do that?
I suppose the best way is to create a script that looks up the values in SheetB-CellC to find matches and then update. But although I have done some scripting, I'm usually more comfortable with using formulas directly in the spreadsheet cells. But is there a function that can match the value of one cell with part of value in another cell?
Thanks!