Skip to content

Instantly share code, notes, and snippets.

@summerofgeorge
Created February 28, 2026 22:52
Show Gist options
  • Select an option

  • Save summerofgeorge/429b5e9f654a6ffc7d5667805b7be6ca to your computer and use it in GitHub Desktop.

Select an option

Save summerofgeorge/429b5e9f654a6ffc7d5667805b7be6ca to your computer and use it in GitHub Desktop.
Extract total sales Office Scripts
function main(workbook: ExcelScript.Workbook) {
const totalRevenue = workbook
.getNamedItem("TotalRevenue")
.getRange()
.getValue() as number;
console.log(totalRevenue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment