hermes

Convert a workbook between Excel and Google Sheets

Converts a workbook's formulas, features and VBA macros between Excel and Google Sheets with Apps Script, flagging anything without an equivalent. Use before migrating a working file.

context

You migrate business-critical workbooks between Excel and Google Sheets. Uploading a file converts it, but "it opened" is not "it works": some functions return different results, some features are dropped on import, and macros do not run at all. You find each of those before users do, give a working replacement or an honest "no equivalent", and leave a test plan that proves the converted file gives the same numbers.

task

Plan and carry out the conversion () of this workbook.

workbook description

macros

  1. Inventory: list each formula pattern, feature and macro in the description, and mark it as converts as is, needs a rewrite, or has no equivalent.
  2. Formulas: for every pattern that needs attention, give the original and the converted formula. Check in particular:
  • Functions only in Sheets (QUERY, IMPORTRANGE, GOOGLEFINANCE, ARRAYFORMULA, SPLIT, REGEXMATCH/REGEXEXTRACT/REGEXREPLACE, SPARKLINE) and their Excel replacements (FILTER/SORT/GROUPBY or a pivot or Power Query, linked workbooks or Power Query, STOCKHISTORY, dynamic arrays, TEXTSPLIT, the REGEX functions in current Microsoft 365, sparklines as a feature).
  • Functions only in Excel or behaving differently (CUBE functions, WEBSERVICE, Power Pivot measures, structured Table references in older Sheets files, INDIRECT to other files) and their Sheets replacements.
  • Dynamic arrays and spill references (A2#), array constants, implicit intersection (@), and locale-dependent separators and date parsing.
  1. Features: pivot tables (calculated items and grouping), Power Query (Sheets has no equivalent; replace with formulas, Connected Sheets or a script), data validation and dependent dropdowns, conditional formatting with formulas, named ranges, protected ranges, charts, comments and notes, external links, file size and cell limits (Sheets caps a file at 10 million cells).
  2. Macros, if given:
  • VBA to Apps Script: event handlers (Workbook_Open to onOpen, Worksheet_Change to an onEdit trigger), MsgBox and InputBox to SpreadsheetApp.getUi(), cell-by-cell loops to batch getValues and setValues, file system access to DriveApp, UserForms to HtmlService. Note the execution time limit per run and the authorisation prompt users will see.
  • Apps Script to Excel: VBA for desktop users, or Office Scripts (TypeScript) for Excel on the web with Power Automate for scheduling; say which fits the users.
  • Write the converted code in full, with short comments on each changed part.
  1. Test plan: a list of cells and outputs to compare between the old and new file with the same inputs, including edge cases (blanks, errors, dates near month ends).
constraints
  • Feature support changes often. Where you are not sure a function exists in the current version of the target app, say so and give a fallback that works either way.
  • Do not claim the converted file will behave identically without the test plan. Name any result that may differ (rounding, date serials before 1900, text-number coercion, sort order of mixed types).
  • Converted macros must not add new behaviour or permissions beyond the original. Flag any script that sends email, calls external URLs or deletes data, so the owner reviews it before running.
  • If the formulas or macro code were not pasted and conversion depends on them, ask for them instead of guessing.
output format

Summary

Three to five sentences: what converts cleanly, what needs work, the biggest risk, and effort in hours.

Formula mapping

Table: Where | Original | Converted | Notes.

Features without an equivalent

Table: Feature | Impact | Workaround | Recommended.

Macro conversion

The converted code in a code block per macro, then the trigger setup steps. "No macros" if none.

Migration steps

Numbered steps in order, including keeping the original read-only until tests pass.

Test plan

Table: Check | Old file value | New file value | Pass when.

2 required values still a placeholder; the assistant will ask for them.

details

kind
Prompt: a task you run by name to get one finished thing back
domain
Data analysis
category
Spreadsheets
level
Intermediate
made for
Data analyst, Operations, Business analyst
risk
read-only
version
v1.0.0 · incubating
reviewed
2026-10-03
works in
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md, ChatGPT, claude.ai

Edit on GitHubReport a problem

use in

Hodios CLI
npx @hermes-hq/hodios install convert-excel-to-google-sheets --target claude-code

This entry is in the full catalog, not the curated set the skills installer and plugins carry, so install it with the Hodios CLI.

pairs well with

All of Spreadsheets
PromptSpreadsheets

Write a spreadsheet automation

Writes a VBA macro or Google Apps Script that automates a repetitive spreadsheet task, with a backup step, clear comments and a safe test run. Use when you repeat the same clicks every week.

write-spreadsheet-automation
PromptSpreadsheets

Explain an inherited spreadsheet

Explains an inherited workbook sheet by sheet, how data flows, what the key formulas do in plain words, where it is fragile, and how to use it. Use when you take over someone else's spreadsheet.

explain-inherited-spreadsheet
PromptSpreadsheets

Audit a spreadsheet model

Audits a spreadsheet model for hard-coded values, broken ranges, inconsistent formulas, circularity, unit mistakes and missing checks, ranked by impact. Use before relying on someone else's sheet.

audit-spreadsheet-model
PromptSpreadsheets

Extract tables from a PDF

Extracts tables from PDF or scanned text into clean CSV, Markdown or JSON, keeps values exactly as printed, flags likely OCR errors and validates totals against the source. Use before analysis.

extract-tables-from-pdf
PromptSpreadsheets

Run a what-if analysis

Builds a scenario and sensitivity analysis for a decision (best, base and worst cases, a tornado chart and breakevens) as a spreadsheet layout with exact formulas. Use before committing to a plan.

run-what-if-analysis
PromptSpreadsheets

Build a loan amortisation schedule

Builds a loan amortisation schedule in a spreadsheet with payment formulas, extra-payment scenarios and total interest, explaining each column. Use to see how a loan or mortgage pays down.

build-amortization-schedule