メインコンテンツへスキップ

Excelに行を挿入するときに数式を更新するにはどうすればよいですか? 

行を挿入するドキュメント更新式1

たとえば、セルD2に数式= sum(D7:D8)があります。ここで、3番目の行に行を挿入して新しい数値を入力すると、数式は自動的に= sum(D8:D2)に変更されます。次のスクリーンショットに示すように、セルD2。 この場合、行を挿入するたびに数式のセル参照を変更する必要があります。 Excelに行を挿入するときに、セルDXNUMXから始まる数値を常に合計するにはどうすればよいですか?

式を使用して行を自動的に挿入するときに式を更新する


矢印青い右バブル 式を使用して行を自動的に挿入するときに式を更新する

次の簡単な数式は、新しい行を挿入するときにセル参照を手動で変更せずに数式を自動的に更新するのに役立ちます。次のようにしてください。

1。 次の式を入力します。 = SUM(INDIRECT( "D2:D"&ROW()-1)) (D2 合計したいリストの最初のセルです)番号リストを合計したいセルの最後にあり、を押します 入力します キー。

2。 そして今、番号リストの間のどこかに行を挿入すると、数式は自動的に更新されます。スクリーンショットを参照してください。

行を挿入するドキュメント更新式2

ヒント:数式は、データリストの最後に配置した場合にのみ正しく機能します。

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you very much.
This comment was minimized by the moderator on the site
Hello,
You are welcome. Glad it helps. Any questions, please feel free to contact us. Have a great day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Please help me with Excel formula that update automatically without changing the cell reference manually when inserting new row at the bottom only. But not when inserting new row at the top. Thanks
This comment was minimized by the moderator on the site
This is really helpful ... except it does not update the row/column when copying and pasting this formula, so if I have a bunch of them, I have to update the column/row manually (like in the example, if I copy this to the adjacent column E, it still has D ...)

Unless someone knows a workaround to that problem, too?
This comment was minimized by the moderator on the site
you can use a different formula SUM(D$2:D12) as you insert a new row it continues to sum it up
This comment was minimized by the moderator on the site
I found that this only works if there is more than 1 row to total at the start.  Any ideas how you would do this for totalling 1 row to start and then adding in rows as you work on the spreadsheet?

This comment was minimized by the moderator on the site
You are the best! It works!
This comment was minimized by the moderator on the site
I have a simple cell reference in one of my cells down a column e.g.:"=H6", “=H7” etc. When I insert a row in Excel and copy formulas from row above, the cell reference in 'Opening Stock' does not update automatically in the row after the new blank row (should be equal to previous row balance, which is 60 now). But it updates correctly in all other rows below. Is there a way to force Excel to update cell reference to the cell in blank row above? Have searched the web, but did not get any satisfactory answer. I do not want to convert the data to a table, since it messes up the filters and formatting. Macros don't solve the problem either - they don't copy to the row following the blank one. Can anyone please help?
This comment was minimized by the moderator on the site
Hi Rayan!

Please if you see this let me know! You are the only one I found online who brought this issue up. However, my data is table not normal range. The automatic filling of the formula really helps and copy/pasting is a hassle. Anyway, when insert a row, the formulas update for all columns except one! In the row and the cell, instead of the formula shifting from =if(C24 = C25) to =if(C25 = C26), it goes to =if(C24 = C26) although C24 is not fixed!!! I've really tried all possible solutions...................
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations