Excel.run(function (context) { var range = context.workbook.worksheets.getItem("Sheet1").getRange("A1:D4"); var sumOfTwoLookups = context.workbook.functions.sum( context.workbook.functions.vlookup("Wrench", range, 2, false), context.workbook.functions.vlookup("Wrench", range, 3, false) ); sumOfTwoLookups.load('value'); return context.sync() .then(function () { console.log(' Number of wrenches sold in November and December = ' + sumOfTwoLookups.value); }); }).catch(errorHandlerFunction);