I have a Google Spreadsheet that has 2 sheets, People & Companies:
If a cell in Column B of People matches the text in a cell of Column A in Companies then I need the contents of Column B in Companies added to Column C in People
PEOPLE SHEET BEFORE :
COMPANY SHEET :
PEOPLE SHEET AFTER :
I've been attempting to use a matching script found elsewhere on Stackoverflow but it's been unsuccessful:
function myFunction(){
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var people = sheet.getSheetByName("People");
var companies = sheet.getSheetByName("Companies");
var people = people.getRange(column(b));
var data1 = people.getValues();
var data2 = companies.getValues();
}
I'm really stuck, any idea? Thank you in advance for any help.