sharepoint-spreadsheet-formula-builder
FreeNo executable scriptsNot checkedDesign, repair, and roll out formulas in SharePoint-hosted workbooks with connector-aware retrieval, validation, and upload discipline. Use when the user…
by fanfan-de★ 55 GitHub starsAbout this skill
SharePoint Spreadsheet Formula Builder
Use this skill when the formula itself is the task and the workbook lives in SharePoint.
This workflow depends on the Microsoft SharePoint connector for file discovery and binary transfer, not formula-aware editing. The relevant connector actions on the exposed Codex surface are get_site, list_site_drives, search, list_folder_items, fetch, update_file, and upload_file.
In Codex, use those direct Microsoft SharePoint app tools rather than generic MCP resource-listing flows. The backend wrapper routes connector actions through tool calls, not through user-facing SharePoint resource enumeration.
Read ./references/formula-patterns.md before drafting the first formula. The point is to refresh exact Excel syntax, formula-shape choices, and SharePoint-specific rollout risks before editing the workbook.
Workflow
- Ground the formula in the live workbook first: exact SharePoint file, sheet, target cell or output column, input columns, and a few representative rows.
- Use the SharePoint connector flow to locate the exact workbook:
get_sitewhen you need to confirm the canonical site before path-based operationslist_site_driveswhen the site is known but the right library is notsearch(query="...")when you have keywordssearch(query=None, hostname=..., site_path=..., folder_path=...)to browse a known site or folderlist_folder_itemswhen the exact folder path is already known- prefer the exact Graph-style
urlreturned by keyword search or browse results as the input tofetch fetchonce for extracted content to identify sheets and likely target rangesfetch(download_raw_file=true)for the actual.xlsxbytes before editing formulas
- Choose the formula shape deliberately:
- table or row formula when the logic is local to one record and should fill down
- spill formula when one anchor cell should populate the whole output range
- lookup formula when the task is key-to-value retrieval
- filter or summary formula when the output should derive a live subset or aggregate view
LETwhen repeated subexpressions make the formula hard to read or maintainLAMBDAor a named formula only when the logic is conceptually reusable and the workbook environment supports it- if workbook compatibility is unknown, bias toward broadly compatible Excel formulas before modern dynamic-array features
- Preserve the workbook's existing reference style. If the sheet already uses structured references in tables, continue using them instead of switching to ad hoc A1 references.
- Draft the formula in a helper cell, scratch column, or local workbook copy first rather than replacing the production range immediately.
- Test on a small representative slice, including blanks, missing lookups, spill collisions, and unusual values.
- Roll the formula out to the intended target cells while preserving neighboring formulas, formatting, named ranges, and table behavior.
- Write the revised workbook back through the connector using the exact drive-root-relative path from SharePoint metadata:
update_filewhen replacing an existing workbook at a known pathupload_fileonly when creating a new workbook or when the workflow genuinely requires upload semantics
- Re-fetch the workbook or update metadata and verify the exact target formula cells or output column after upload.
SharePoint-Specific Safety
- Do not treat a SharePoint workbook like a live Google Sheet. Formula design happens against a downloaded
.xlsx, then goes back through the SharePoint file-update path. - The connector does not expose cell-level formula editing, workbook recalculation controls, or formula-engine introspection. Do not imply that SharePoint tooling itself validated Excel semantics beyond successful file round-trip.
- The implementation prefers exact Graph item URLs returned by keyword search or browse results. Browser or sharing URLs are supported by
fetch, but they are fallback inputs rather than the preferred primary path. - Use explicit browse mode for site discovery. Do not treat user-recency as a substitute for site or library discovery.
searchonly returns text-friendly document types and enforces the connector's file-size gate. If keyword search is not the right tool, switch to site-scoped browse mode instead of using a vague fallback.- If local tooling does not recalculate formulas exactly, verify both the formula text and the dependency ranges, then say clearly that final computed values depend on Excel or SharePoint recalculation after upload.
- Treat modern Excel functions such as
XLOOKUP,FILTER,LET, andLAMBDAas workbook-compatibility choices, not connector features. Use them when the target workbook is expected to open in Microsoft 365-era Excel or Excel for the web, and call out compatibility risk otherwise. - When compatibility is unclear, prefer conservative formulas suc
Install sharepoint-spreadsheet-formula-builder in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the sharepoint-spreadsheet-formula-builder skill do?
Design, repair, and roll out formulas in SharePoint-hosted workbooks with connector-aware retrieval, validation, and upload discipline. Use when the user wants to add a formula column, fix a broken formula, choose between a fill-down formula and a spill formula, build a lookup or filter formula, or reuse workbook logic safely.
How do I install the sharepoint-spreadsheet-formula-builder skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the sharepoint-spreadsheet-formula-builder skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic