I have a master spreadsheet which has the excel function:
=INDEX(D2:D4,MATCH(F11,B2:B4,0))
How would you express this in Google Apps or is there anything close to it?
Here is the part of the code which needs to be modified:
var link = masterSheet.getRange('F11').getValues();//here is the problem
//=INDEX(D2:D4,MATCH(F11,B2:B4,0))
var ss = SpreadsheetApp.openById(link);
If you are wanting to achieve the same functionality in Google Apps Script, and if I’m understanding correctly:
Caveat: if you are searching for dates and/or times, this will fail. You will need to convert the date objects into something else that can be found with indexOf. Post back if this is the case.