{"data":{"slug":"github-composiohq-awesome-claude-skills-composio-skills-excel-automation-28d88eafb5c9","title":"Excel Automation for Spreadsheet Management","summary":"Create and manage Excel workbooks, write and format data in Google Sheets, and upsert rows by matching a key column. Deliverables include uploaded Excel files, formatted spreadsheets, and updated worksheet data.","url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-excel-automation-28d88eafb5c9","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-composiohq-awesome-claude-skills-composio-skills-excel-automation-28d88eafb5c9","markdown_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-excel-automation-28d88eafb5c9.md","download_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-excel-automation-28d88eafb5c9\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"This skill requires an active connection to the Rube MCP server at `https:\/\/rube.app\/mcp` before executing any tools. Ensure the connection is established via `RUBE_MANAGE_CONNECTIONS`.","instructions":"---\nname: Excel Automation\ndescription: \"Excel Automation: create workbooks, manage worksheets, read\/write cell data, and format spreadsheets via Microsoft Excel and Google Sheets integration\"\nrequires:\n  mcp: [rube]\n---\n\n# Excel Automation\n\nAutomate spreadsheet operations including creating workbooks, writing data, formatting cells, upserting rows, and managing worksheets. Works with Microsoft Excel (OneDrive) and Google Sheets.\n\n**Toolkit docs:** [composio.dev\/toolkits\/excel](https:\/\/composio.dev\/toolkits\/excel)\n\n---\n\n## Setup\n\nThis skill requires the **Rube MCP server** connected at `https:\/\/rube.app\/mcp`.\n\nBefore executing any tools, ensure an active connection exists for the `excel` (and optionally `googlesheets`) toolkit. If no connection is active, initiate one via `RUBE_MANAGE_CONNECTIONS`.\n\n---\n\n## Core Workflows\n\n### 1. Create a New Excel Workbook\n\nUse `EXCEL_CREATE_WORKBOOK` to generate a new `.xlsx` file and upload it to OneDrive.\n\n**Tool:** `EXCEL_CREATE_WORKBOOK`\n\n**Steps:**\n1. Call `EXCEL_CREATE_WORKBOOK` with worksheet names and data\n2. The tool creates a `.xlsx` file and uploads it to OneDrive\n3. Use the returned file path\/URL for subsequent operations\n\n---\n\n### 2. Write Data to a Spreadsheet\n\nUse `GOOGLESHEETS_BATCH_UPDATE` to write values to a specific range or append rows.\n\n**Tool:** `GOOGLESHEETS_BATCH_UPDATE`\n\n**Key Parameters:**\n- `spreadsheet_id` (required) -- The spreadsheet ID from the URL (44-char alphanumeric string)\n- `sheet_name` (required) -- Tab name, e.g., `\"Sheet1\"`, `\"Sales Data\"`\n- `values` (required) -- 2D array of cell values, e.g., `[[\"Name\",\"Amount\"],[\"Alice\",100]]`\n- `first_cell_location` -- Starting cell in A1 notation (e.g., `\"A1\"`, `\"D3\"`). Omit to append rows\n- `valueInputOption` -- `\"USER_ENTERED\"` (default, parses formulas) or `\"RAW\"` (stores as-is)\n\n**Example:**\n```\nTool: GOOGLESHEETS_BATCH_UPDATE\nArguments:\n  spreadsheet_id: \"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms\"\n  sheet_name: \"Sheet1\"\n  values: [[\"Item\",\"Cost\",\"Stocked\"],[\"Wheel\",20.50,true],[\"Screw\",0.50,true]]\n  first_cell_location: \"A1\"\n```\n\n---\n\n### 3. Upsert Rows by Key Column\n\nUse `GOOGLESHEETS_UPSERT_ROWS` to update existing rows by matching a key column, or append new rows if no match is found. Ideal for CRM syncs, inventory updates, and deduplication.\n\n**Tool:** `GOOGLESHEETS_UPSERT_ROWS`\n\n**Key Parameters:**\n- `spreadsheetId` (required) -- The spreadsheet ID\n- `sheetName` (required) -- Tab name\n- `rows` (required) -- 2D array of data rows (min 1 row). If `headers` is omitted, the first row is treated as headers\n- `headers` -- Column names for the data, e.g., `[\"Email\",\"Phone\",\"Status\"]`\n- `keyColumn` -- Column header to match on, e.g., `\"Email\"`, `\"SKU\"`, `\"Lead ID\"`\n- `strictMode` -- `true` (default) errors on mismatched columns; `false` truncates silently\n\n**Example:**\n```\nTool: GOOGLESHEETS_UPSERT_ROWS\nArguments:\n  spreadsheetId: \"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms\"\n  sheetName: \"Contacts\"\n  keyColumn: \"Email\"\n  headers: [\"Email\",\"Phone\",\"Status\"]\n  rows: [[\"john@example.com\",\"555-0101\",\"Active\"],[\"jane@example.com\",\"555-0102\",\"Pending\"]]\n```\n\n---\n\n### 4. Format Cells\n\nUse `GOOGLESHEETS_FORMAT_CELL` to apply bold, italic, font size, and background colors to ranges.\n\n**Tool:** `GOOGLESHEETS_FORMAT_CELL`\n\n**Key Parameters:**\n- `spreadsheet_id` (required) -- The spreadsheet ID\n- `range` -- Cell range in A1 notation, e.g., `\"A1:D1\"`, `\"B2:B10\"` (recommended over index-based)\n- `sheet_name` -- Worksheet name, e.g., `\"Sheet1\"`\n- `bold` -- `true`\/`false`\n- `italic` -- `true`\/`false`\n- `fontSize` -- Font size in points, e.g., `12`\n- `red`, `green`, `blue` -- Background color components (0.0--1.0 float scale, NOT 0--255)\n\n**Example (bold header row with blue background):**\n```\nTool: GOOGLESHEETS_FORMAT_CELL\nArguments:\n  spreadsheet_id: \"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms\"\n  range: \"A1:D1\"\n  sheet_name: \"Sheet1\"\n  bold: true\n  fontSize: 12\n  red: 0.2\n  green: 0.4\n  blue: 0.9\n```\n\n---\n\n### 5. Add New Worksheet Tabs\n\nUse `GOOGLESHEETS_ADD_SHEET` to create new tabs within an existing spreadsheet.\n\n**Tool:** `GOOGLESHEETS_ADD_SHEET`\n\n**Key Parameters:**\n- `spreadsheetId` (required) -- The spreadsheet ID\n- `title` -- Name for the new tab, e.g., `\"Q4 Report\"`\n- `forceUnique` -- `true` (default) auto-appends suffix if name exists\n\n**Example:**\n```\nTool: GOOGLESHEETS_ADD_SHEET\nArguments:\n  spreadsheetId: \"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms\"\n  title: \"Q4 Report\"\n  forceUnique: true\n```\n\n---\n\n### 6. Read Data and Verify Content\n\nUse `GOOGLESHEETS_BATCH_GET` to retrieve data from specified cell ranges for validation or further processing.\n\n**Tool:** `GOOGLESHEETS_BATCH_GET`\n\n**Steps:**\n1. Call `GOOGLESHEETS_BATCH_GET` with the spreadsheet ID and target ranges\n2. Validate headers and data alignment\n3. Use results to inform subsequent write or update operations\n\n**Supporting Tools:**\n- `GOOGLESHEETS_GET_SHEET_NAMES` -- List all tab names in a spreadsheet\n- `GOOGLESHEETS_GET_SPREADSHEET_INFO` -- Get metadata (sheet IDs, properties)\n- `GOOGLESHEETS_FIND_WORKSHEET_BY_TITLE` -- Check if a specific tab exists\n\n---\n\n## Recommended Execution Plan\n\n1. **Create or locate the spreadsheet** using `GOOGLESHEETS_CREATE_GOOGLE_SHEET1` or reuse an existing `spreadsheetId`\n2. **Confirm the destination tab** using `GOOGLESHEETS_GET_SHEET_NAMES` or `GOOGLESHEETS_FIND_WORKSHEET_BY_TITLE`; create it with `GOOGLESHEETS_ADD_SHEET` if missing\n3. **Read existing headers** (optional) using `GOOGLESHEETS_BATCH_GET` to align columns\n4. **Write or upsert data** using `GOOGLESHEETS_BATCH_UPDATE` or `GOOGLESHEETS_UPSERT_ROWS`\n5. **Apply formatting** (optional) using `GOOGLESHEETS_FORMAT_CELL`\n6. **Verify results** (optional) using `GOOGLESHEETS_BATCH_GET`\n7. **Fallback:** If Google Sheets creation is blocked (HTTP 403), use `EXCEL_CREATE_WORKBOOK` for local `.xlsx` output\n\n---\n\n## Known Pitfalls\n\n| Pitfall | Detail |\n|---------|--------|\n| **HTTP 403 on sheet creation** | `GOOGLESHEETS_CREATE_GOOGLE_SHEET1` fails when Drive create scope is missing. Reuse an existing `spreadsheetId` or fall back to `EXCEL_CREATE_WORKBOOK`. |\n| **Cell limit and rate throttling** | Google Sheets has a ~5,000,000 cell limit per spreadsheet. Excessive write frequency triggers HTTP 429. Batch changes and chunk large writes (~500 rows\/call). |\n| **Format range off-by-one** | `GOOGLESHEETS_FORMAT_CELL` uses 0-based, endIndex-exclusive ranges when using index mode. Background color uses 0--1 float RGB, NOT 0--255 integer RGB. |\n| **Sheet title uniqueness** | Sheet titles are not guaranteed unique across API responses. Prefer operating by numeric `sheetId` and verify the resolved tab before writing. |\n| **Upsert payload shape** | `GOOGLESHEETS_UPSERT_ROWS` requires headers + 2D rows array. Sending list-of-dicts or empty `rows` causes validation errors. Ensure at least 1 data row. |\n\n---\n\n## Quick Reference\n\n| Tool Slug | Description |\n|-----------|-------------|\n| `EXCEL_CREATE_WORKBOOK` | Create a new `.xlsx` workbook and upload to OneDrive |\n| `GOOGLESHEETS_BATCH_UPDATE` | Write values to a range or append new rows |\n| `GOOGLESHEETS_UPSERT_ROWS` | Update existing rows by key or append new ones |\n| `GOOGLESHEETS_FORMAT_CELL` | Apply text\/background formatting to cell ranges |\n| `GOOGLESHEETS_ADD_SHEET` | Add a new worksheet tab to a spreadsheet |\n| `GOOGLESHEETS_CREATE_GOOGLE_SHEET1` | Create a new Google Spreadsheet in Drive |\n| `GOOGLESHEETS_GET_SHEET_NAMES` | List all worksheet names in a spreadsheet |\n| `GOOGLESHEETS_GET_SPREADSHEET_INFO` | Retrieve spreadsheet metadata |\n| `GOOGLESHEETS_FIND_WORKSHEET_BY_TITLE` | Check if a worksheet exists by title |\n| `GOOGLESHEETS_BATCH_GET` | Read data from specified cell ranges |\n\n---\n\n*Powered by [Composio](https:\/\/composio.dev)*\n","use_cases":["Create a new Excel workbook and upload it to OneDrive","Write data to a specific range in a Google Sheet","Upsert rows in a spreadsheet by matching a key column","Format cells with bold, italic, font size, and background colors","Add new worksheet tabs to an existing spreadsheet","Read data from a spreadsheet for validation or further processing"],"limitations":[],"compatibility":[],"setup_tip":"This skill requires the **Rube MCP server** connected at `https:\/\/rube.app\/mcp`.\n\nBefore executing any tools, ensure an active connection exists for the `excel` (and optionally `googlesheets`) toolkit. If no connection is active, initiate one via `RUBE_MANAGE_CONNECTIONS`.\n\n---","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/ComposioHQ\/awesome-claude-skills\/blob\/be2a406907dbc61b73e6827ded415c96139d13a2\/composio-skills\/excel-automation\/SKILL.md","source_commit":"be2a406907dbc61b73e6827ded415c96139d13a2","license":null,"version":null,"listing_approved_at":"2026-11-20","created_at":"2026-11-19T16:55:10.000000Z","updated_at":"2026-11-20T07:26:29.000000Z","seo_title":"Excel Automation for Spreadsheet Tasks","seo_description":"Automate spreadsheet operations including creating workbooks, writing data, formatting cells, and managing worksheets with Excel and Google Sheets.","seo_keywords":["Excel automation tools","Google Sheets batch update","Upsert rows in spreadsheet","Format cells in Excel","Create Excel workbook","Manage worksheet tabs"]}}