mcpField
E
excel-analysis

excel-analysis

github.com/spjoshisデータ・データベース7111 回インストール38 週間前に更新
リポジトリ

excel-analysis について

アドホックな分析から関係者向けレポートまで、ビジネス分析を行う人向けの Excel 分析スキルです。ピボットテーブル、数式、Power Query による変換と、信頼できるブックを保つ実践を扱います。

主な機能

  1. 01ピボットテーブル分析を作成
  2. 02検索・集計数式を活用
  3. 03Power Query でデータを変換
  4. 04構造化テーブルと名前付き範囲を利用
  5. 05データを検証し前提を記録

活用シーン

  1. 01地域・月別に売上を分析
  2. 02CSV データを整理・変換
  3. 03財務モデルや業務計算を作成
  4. 04関係者向けレポートを作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/spjoshis/claude-code-plugins --skill excel-analysis

インストール後、Claude Code で/excel-analysisを入力して読み込まれたか確認します。

詳細

Excel 分析

ピボットテーブル、数式、Power Query、高度な機能を活用して、ビジネス分析に役立つ Excel のスキルを身につけます。

このスキルを使う場面

  • アドホック分析
  • 簡易レポートの作成
  • データのクレンジング
  • 財務モデリング
  • ビジネス計算
  • データ変換
  • ステークホルダー向けレポート
  • セルフサービス分析

主な概念

1. ピボットテーブル
## Sales Analysis Pivot Table

**Source Data**: Sales transactions (Date, Region, Product, Sales Rep, Amount)

**Pivot Table Setup**:
- Rows: Region, Sales Rep
- Columns: Month (Date grouped by month)
- Values: Sum of Amount
- Filters: Product, Date Range

**Calculated Fields**:
- Average Sale = Sum of Amount / Count of Transactions
- Target vs Actual = Sum of Amount - Target
- % of Total = Sum of Amount / Grand Total

**Formatting**:
- Currency format for amounts
- Percentage for % of Total
- Conditional formatting: Above/below average
2. 便利な数式
# VLOOKUP - Lookup customer name from ID
=VLOOKUP(A2, Customers!A:B, 2, FALSE)

# SUMIFS - Sum sales for specific region and product
=SUMIFS(Sales, Region, "West", Product, "Widget")

# INDEX/MATCH - More flexible than VLOOKUP
=INDEX(Customers!B:B, MATCH(A2, Customers!A:A, 0))

# Array Formula - Count unique values
=SUM(1/COUNTIF(A2:A100, A2:A100))

# TEXTJOIN - Combine values with delimiter
=TEXTJOIN(", ", TRUE, A2:A10)

# IFS - Multiple conditions
=IFS(A2>90, "A", A2>80, "B", A2>70, "C", TRUE, "F")

# Date calculations
=EDATE(A2, 3)  # Add 3 months
=NETWORKDAYS(A2, B2)  # Business days between dates
3. Power Query
## ETL with Power Query

**Transform Sales Data**:
1. Load data from CSV
2. Remove duplicates
3. Filter out cancelled orders
4. Split full name into first/last
5. Change date format
6. Group by customer, sum amounts
7. Add calculated column: Tier (based on total)
8. Load to Excel table

**M Code Example**:
```m
let
    Source = Csv.Document(File.Contents("sales.csv")),
    RemoveDuplicates = Table.Distinct(Source),
    FilterCancelled = Table.SelectRows(RemoveDuplicates, each [Status] <> "Cancelled"),
    SplitName = Table.SplitColumn(FilterCancelled, "Name", Splitter.SplitTextByDelimiter(" "), {"FirstName", "LastName"}),
    GroupedRows = Table.Group(SplitName, {"CustomerID"}, {{"TotalSales", each List.Sum([Amount]), type number}}),
    AddTier = Table.AddColumn(GroupedRows, "Tier", each if [TotalSales] > 10000 then "Gold" else if [TotalSales] > 5000 then "Silver" else "Bronze")
in
    AddTier

## Best Practices

1. **Use tables** - Structured references, auto-expansion
2. **Name ranges** - Formulas more readable
3. **Avoid merged cells** - Breaks sorting, filtering
4. **Document assumptions** - Comments, separate tab
5. **Validate data** - Data validation rules
6. **Use shortcuts** - Ctrl+T (table), Alt+D+P (pivot)
7. **Power Query for ETL** - Repeatable transformations
8. **Version control** - Save versions, track changes

## Resources

- **Excel Jet**: Formula reference and tips
- **Mr. Excel**: Advanced Excel techniques

コメント