Chuyển đến nội dung
Skillpedia
PDF, Word và slide77k · #2034

Excel Automation

Skill này làm gì

Công cụ này giúp bạn sắp xếp và quản lý dữ liệu trong bảng tính như Excel và Google Sheets. Bạn có thể tạo bảng tính mới, thêm thông tin, cập nhật dữ liệu hiện có và thay đổi giao diện của ô.

Khi nào nên dùng

  • ✓Khi bạn cần tạo một tệp theo dõi chi phí mới.
  • ✓Khi cần cập nhật danh sách liên hệ với thông tin mới.
  • ✓Khi cần định dạng báo cáo với tiêu đề in đậm và màu sắc.

Liên kết skill

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/excel-automation/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/excel-automation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một bảng tính Excel mới tên “Sales Report” với các cột “Product”, “Quantity” và “Price”, rồi điền dữ liệu: T-shirt, 10, $50; Pants, 5, $120.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kết nối với Excel (qua OneDrive) hoặc Google Sheets. Nó dùng các lệnh cụ thể để tạo tệp, ghi hoặc cập nhật dữ liệu trong ô, và áp dụng định dạng như chữ in đậm hoặc màu sắc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Excel Automation

Automate spreadsheet operations including creating workbooks, writing data, formatting cells, upserting rows, and managing worksheets. Works with Microsoft Excel (OneDrive) and Google Sheets.

Toolkit docs: composio.dev/toolkits/excel


Setup

This skill requires the Rube MCP server connected at https://rube.app/mcp.

Before 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.


Core Workflows

1. Create a New Excel Workbook

Use EXCEL_CREATE_WORKBOOK to generate a new .xlsx file and upload it to OneDrive.

Tool: EXCEL_CREATE_WORKBOOK

Steps:

  1. Call EXCEL_CREATE_WORKBOOK with worksheet names and data
  2. The tool creates a .xlsx file and uploads it to OneDrive
  3. Use the returned file path/URL for subsequent operations

2. Write Data to a Spreadsheet

Use GOOGLESHEETS_BATCH_UPDATE to write values to a specific range or append rows.

Tool: GOOGLESHEETS_BATCH_UPDATE

Key Parameters:

  • spreadsheet_id (required) -- The spreadsheet ID from the URL (44-char alphanumeric string)
  • sheet_name (required) -- Tab name, e.g., "Sheet1", "Sales Data"
  • values (required) -- 2D array of cell values, e.g., [["Name","Amount"],["Alice",100]]
  • first_cell_location -- Starting cell in A1 notation (e.g., "A1", "D3"). Omit to append rows
  • valueInputOption -- "USER_ENTERED" (default, parses formulas) or "RAW" (stores as-is)

Example:

Tool: GOOGLESHEETS_BATCH_UPDATE
Arguments:
  spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  sheet_name: "Sheet1"
  values: [["Item","Cost","Stocked"],["Wheel",20.50,true],["Screw",0.50,true]]
  first_cell_location: "A1"

3. Upsert Rows by Key Column

Use 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.

Tool: GOOGLESHEETS_UPSERT_ROWS

Key Parameters:

  • spreadsheetId (required) -- The spreadsheet ID
  • sheetName (required) -- Tab name
  • rows (required) -- 2D array of data rows (min 1 row). If headers is omitted, the first row is treated as headers
  • headers -- Column names for the data, e.g., ["Email","Phone","Status"]
  • keyColumn -- Column header to match on, e.g., "Email", "SKU", "Lead ID"
  • strictMode -- true (default) errors on mismatched columns; false truncates silently

Example:

Tool: GOOGLESHEETS_UPSERT_ROWS
Arguments:
  spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  sheetName: "Contacts"
  keyColumn: "Email"
  headers: ["Email","Phone","Status"]
  rows: [["john@example.com","555-0101","Active"],["jane@example.com","555-0102","Pending"]]

4. Format Cells

Use GOOGLESHEETS_FORMAT_CELL to apply bold, italic, font size, and background colors to ranges.

Tool: GOOGLESHEETS_FORMAT_CELL

Key Parameters:

  • spreadsheet_id (required) -- The spreadsheet ID
  • range -- Cell range in A1 notation, e.g., "A1:D1", "B2:B10" (recommended over index-based)
  • sheet_name -- Worksheet name, e.g., "Sheet1"
  • bold -- true/false
  • italic -- true/false
  • fontSize -- Font size in points, e.g., 12
  • red, green, blue -- Background color components (0.0--1.0 float scale, NOT 0--255)

Example (bold header row with blue background):

Tool: GOOGLESHEETS_FORMAT_CELL
Arguments:
  spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  range: "A1:D1"
  sheet_name: "Sheet1"
  bold: true
  fontSize: 12
  red: 0.2
  green: 0.4
  blue: 0.9

5. Add New Worksheet Tabs

Use GOOGLESHEETS_ADD_SHEET to create new tabs within an existing spreadsheet.

Tool: GOOGLESHEETS_ADD_SHEET

Key Parameters:

  • spreadsheetId (required) -- The spreadsheet ID
  • title -- Name for the new tab, e.g., "Q4 Report"
  • forceUnique -- true (default) auto-appends suffix if name exists

Example:

Tool: GOOGLESHEETS_ADD_SHEET
Arguments:
  spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  title: "Q4 Report"
  forceUnique: true

6. Read Data and Verify Content

Use GOOGLESHEETS_BATCH_GET to retrieve data from specified cell ranges for validation or further processing.

Tool: GOOGLESHEETS_BATCH_GET

Steps:

…

Câu hỏi thường gặp

Điều gì xảy ra nếu tôi không tạo được bảng tính trong Google Sheets?

Nếu có lỗi khi tạo trong Google Sheets, công cụ có thể tạo một tệp Excel (.xlsx) trong OneDrive của bạn.

Công cụ biết đặt dữ liệu vào đâu?

Bạn có thể chỉ định bảng tính (sheet), vùng ô (như “A1” hoặc “B2:C5”), và việc thêm dữ liệu hay cập nhật thông tin hiện có dựa trên một cột khóa.

Tôi có thể đổi màu nền của ô không?

Có, bạn có thể đặt màu nền cho ô bằng cách nhập giá trị đỏ, xanh lá và xanh dương (từ 0.0 đến 1.0).

Chi tiết

Mô tả gốc của tác giả

Excel Automation: create workbooks, manage worksheets, read/write cell data, and format spreadsheets via Microsoft Excel and Google Sheets integration

repo: ComposioHQ/awesome-claude-skills

Độ phổ biến

Sao GitHub
77k
Vị trí xếp hạng
#2034
Giấy phép
—
Cập nhật
18/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự