Excelでは、再計算をトリガーする方法がいくつかあります。これには、新しいデータの入力や、ワークブックの一部または全部を再計算する指示が含まれます。また、行や列の削除や挿入、特定のオートフィルターの操作、ワークシートの名前変更なども含まれます。Excelは依存関係ツリーを構築し、計算チェーンを組み立てて、セルの再計算を行います。手動モードでは、必要なセルだけを再計算できるため、大きなワークブックの計算時間を短縮できます。 Excelはボラティル関数をサポートし、自動、手動の計算モードを提供しています。
Excelにおける再計算 : 基本と詳細
はじめに
Microsoft Excelは、データの計算、分析、及び管理に広く使用されているスプレッドシートプログラムです。その中でも「再計算機能」は特に重要で、ユーザーが入力したデータに基づいて結果を自動的に更新します。本記事では、Excelの再計算に関する基本的な概念と詳細について解説します。
再計算のトリガー
Excelでは、再計算は以下のような方法で引き起こされます。
- 新しいデータの入力(自動再計算モードの場合)。
- ユーザーが全体または一部のワークブックを手動で再計算する。
- 行または列の挿入または削除。
- 「保存前に再計算」オプションが有効な状態でのワークブックの保存。
- 一部の自動フィルターアクションの実行。
- 行または列の区切りをダブルクリック(自動計算モードの場合)。
- 定義名の追加、編集、または削除。
- ワークシートの名前変更。
- 他のワークシートに対するワークシートの位置を変更。
- 行の非表示または表示(列は除外)。
依存関係、ダーティセル、再計算セル
Excelでのワークシート計算は、以下の三つのステージで構成されます。
- 依存関係ツリーの構築
- 計算チェーンの構築
- セルの再計算
依存関係ツリーは、どのセルがどのセルに依存しているかを示し、この情報をもとに計算チェーンが構築されます。再計算時にExcelは依存関係を見直し、依存関係が変わった場合にはセルの計算順序を調整します。
ダーティセルのマーク
ワークブックに構造的な変更が加えられた場合、例えば新しい数式が入力されると、Excelはその変更に依存する全てのセルを「ダーティ」としてマークします。ダーティセルは再計算が必要であるとされ、Excelが再計算を行う際に最初に評価されます。
サーキュラーリファレンス
セルが自己依存している場合、Excelはサーキュラーリファレンスを検出し、ユーザーに警告を発します。この状況は、通常エラー条件ですが、場合によっては意図的に存在させることもあります。
再計算モード
Excelには三つの再計算モードがあります。
- 自動
- 自動(テーブルを除く)
- 手動
大きなワークブックでは再計算時間が長くなる場合があるため、ユーザーは手動モードを利用して計算を制御することができます。
ヴォラタイル関数と非ヴォラタイル関数
Excelには、数値が一定でないヴォラタイル関数が存在します。これらの関数は、引数が変更されていなくても、セルが再計算されるたびに評価されます。過度な依存は再計算時間を遅くするため、注意が必要です。
ヴォラタイル関数の例
- NOW
- TODAY
- RANDBETWEEN
- OFFSET
まとめ
Excelの再計算機能は、そのパフォーマンスと効率に影響を与える重要な要素です。計算をトリガーする方法、依存関係やダーティセルの管理、再計算モードの選択などを理解することで、ユーザーは作業効率を向上させることができるでしょう。Excelを効果的に使用するために、再計算についての知識を深めていきましょう。
————-
Excel Recalculation | Microsoft Learn
Source link
The article discusses various methods to trigger recalculation in Microsoft Excel, particularly relevant to users of Excel 2013 and earlier versions. Some key points include:
-
Recalculation Triggers: Users can initiate recalculation by entering new data, using specific commands, inserting/deleting rows or columns, saving the workbook with a relevant option checked, or performing certain actions like filtering or changing worksheet names.
-
Logical Structure of Calculation: Excel uses a three-stage process for recalculating worksheets: building a dependency tree, constructing a calculation chain, and recalculating cells. The dependency tree helps identify which cells rely on others, while the calculation chain determines the order of operations when recalculating.
-
Dirty Cells: Cells that require recalculation due to a change in their dependent cells are marked as "dirty." Excel ensures that all dependents of a changed cell are also marked for recalculation to maintain accuracy.
-
Iterative Calculations and Circular References: If a cell depends on itself (circular reference), Excel alerts the user. However, it supports iterative calculations when appropriately configured.
-
Asynchronous User Defined Functions (UDFs): When encountering an asynchronous UDF during calculation, Excel saves its state, continues with other calculations, and then waits for results from the UDF before recalculating dependent cells.
-
Volatile and Non-Volatile Functions: Volatile functions, such as NOW and RANDBETWEEN, are recalculated every time recalculation occurs, which can slow down performance. Users are advised to use them judiciously.
-
Calculation Modes: Excel supports three modes—Automatic, Automatic Except Tables, and Manual. Users can configure these modes to control when recalculations occur, helping manage performance in larger workbooks.
-
Data Tables: These are unique structures in Excel used to calculate a set of results based on changing inputs. Their recalculation process differs from regular cell recalculation and can be managed separately.
- Recalculation Commands and Controls: The article details various commands and methods (keystrokes, VBA functions) available to force recalculation of ranges, active worksheets, or entire workbooks.
Overall, the article serves as a comprehensive guide to understanding and managing recalculation in Microsoft Excel, particularly for users working with complex data and formulas.
コメント