this is a simple example of the question that I have. How do I use an offset cell in a formula
function main(workbook: ExcelScript.Workbook) {
// Get the currently active cell in the workbook.
let activeCell = workbook.getActiveCell();
// Get the cell to the left of the active cell use it in the formula.
let leftCell = activeCell.getOffsetRange(0, -1);
// Simple formula
activeCell.setValue("=len(leftCell)");
}
function main(workbook: ExcelScript.Workbook) {
// Get the currently active cell in the workbook.
let activeCell = workbook.getActiveCell();
// Get the cell to the left of the active cell use it in the formula.
let leftCell = activeCell.getOffsetRange(0, -1);
// Simple formula
activeCell.setValue("=len(leftCell)");
}