ExcelFormulas logoExcelFormulas.
AIに聞く

仕組みと動作原理

SPARKLINE関数はExcel業務を効率化する代表的な関数です。Generates a miniature chart within a single spreadsheet cell. 複雑な集計や参照処理を簡素化し、データ分析の精度と生産性を飛躍的に高めます。

構文.

標準Excel表記法
=SPARKLINE(data, [options])
ヒント: カッコの中の [角カッコ] で囲まれた引数は省略可能です。その他の引数は必須です。

引数一覧.

この関数で指定できるすべての引数について詳しく解説します。

data必須

The range of numbers to chart.

指定例: A2:D2
options省略可

Optional key-value parameters enclosed in curly brackets (e.g. charttype, color).

指定例: {"charttype", "bar"}

具体的な計算例

ステップ別の実務シナリオ

Quarterly Revenue Trend

Render an in-cell trendline showing performance across Q1 to Q4.

Q1Q2Q3Q4Annual Trend
120180160240—
適用する数式
=SPARKLINE(A2:D2)
期待される結果::[Sparkline: 4 points]

Evaluates SPARKLINE over the sample table cells, placing the verified output in cell E2.

数式ジェネレーター

ウィザードを開く

引数を入力するだけで、シートにそのまま貼り付けて使える数式を作成できます。

Generated Formulaコピー準備完了

出力される値の特性

Returns "[Sparkline: 4 points]" based on sample evaluation criteria and active cell references.

出力サンプル::[Sparkline: 4 points]
戻り値の型::Text

実務上のベストプラクティス

  • Set {"charttype", "bar"; "max", 100} to render progress completion meters in dashboard tables.

よくあるミスと注意点

  • Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.
互換性情報

各プラットフォーム対応表

実際のExcelおよびGoogleスプレッドシートの計算エンジン仕様に基づいた検証結果です。

Excel✕
非対応
Excel 365✕
非対応
Excel 2021✕
非対応
Excel 2019✕
非対応
Google Sheets✓
対応
Excelバージョン対応履歴

Not available as a worksheet formula function in Microsoft Excel. Entering =SPARKLINE() in Excel returns a #NAME? error.

Googleスプレッドシート対応状況

Native Google Sheets function that draws miniature in-cell charts (line, bar, column, winloss) directly from a formula.

よくある質問と回答

技術解説
Can I use SPARKLINE across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =SPARKLINE(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in SPARKLINE?↓

Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.

Does SPARKLINE work in Microsoft Excel?↓

No. SPARKLINE is a proprietary Google Sheets function and is not supported in Microsoft Excel. Recommended Excel alternative: In Microsoft Excel, sparklines are embedded graphical objects created via the Ribbon (Insert > Sparklines > Line/Column), not through a formula.