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

隣接するセルが等しいか、空白であるか、Excelでテキストを含むかを合計する方法は?

Microsoft Excelを使用しているときに、隣接するセルが特定の範囲の基準に等しい値を合計するか、隣接するセルが空白またはテキストを含む値を合計する必要がある場合があります。 このチュートリアルでは、これらの問題に対処するための公式を提供します。

Sumif隣接セルがExcelの基準に等しい
Sumif隣接セルがExcelで空白
Excelのテキストを含むSumif隣接セル


Sumif隣接セルがExcelの基準に等しい

以下のスクリーンショットが示すように、牛肉のすべての価格を合計する必要があります。 次のようにしてください。

1.結果を表示するセルを指定します。

2.数式をコピーして貼り付けます =SUM(IF(A4:E10=A13, B4:F10, 0))数式バー、を押してから Ctrlキー + シフト +キーを同時に入力して結果を取得します。

Note:数式で、A4:E10は必要な特定の基準を含むデータ範囲、A13はセルを合計する基準、B4:F10は合計する値を含む範囲です。 。 自分のデータに基づいて範囲を変更してください。


Excelの重複に基づいて、ある列の重複を簡単に結合し、別の列の値を合計します

  Kutools for Excel's 高度な結合行 ユーティリティを使用すると、列内の重複行を簡単に結合し、Excelの重複に基づいて別の列の値を計算または結合できます。
ダウンロードして今すぐ試してみてください! (30 日間の無料トレイル)


Sumif隣接セルがExcelで空白

たとえば、範囲A2:B7があり、隣接するセルが空白の値を合計する必要があるだけです。 以下のスクリーンショットを参照してください。 次のようにする必要があります。

1.空白のセルを選択して、結果を表示します。 数式をコピーして貼り付けます = SUM(IF(ISBLANK(B2:B7)、A2:A7,0)) (B2:B7は空白のセルを含むデータ範囲であり、A2:A7は合計するデータです)を数式バーに入力し、を押します。 Ctrlキー + シフト + 入力します 同時にキーを押して結果を取得します。

次に、隣接するセルが空白であるすべての値が合計され、指定されたセルに表示されます。

Excelのテキストを含むSumif隣接セル

上記の方法は、隣接するセルが特定の範囲で空白になっている値を合計するのに役立ちます。 このセクションでは、隣接するセルにExcelでテキストが含まれている場合に値を合計する方法を学習します。

上記の方法と同じ例を使用してください。

1.空白のセルを選択し、数式をコピーして貼り付けます = SUMIF(B2:B7、 "<>"& ""、A2:A7) (B2:B7はテキストセルを含むデータ範囲であり、A2:A7は合計するデータです)を数式バーに入力し、を押します。 Ctrlキー + シフト + 入力します キー。

隣接するセルにテキストが含まれているすべての値が合計され、選択したセルに表示されます。

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

🤖 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 (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Sumif Adjacent Cell Equals A Criterion In Excel formula is not working for me, it is adding everything instead of just the cells with data we want.
This comment was minimized by the moderator on the site
Hi Cole,
Which Excel version are you using? Would you mind providing a screenshot of your data?
This comment was minimized by the moderator on the site
Hello I am trying to set up a pricing list. I have used a dropdown list for the selected products. How do I make excel input a price based on the choice of the text in the dropdown list.
This comment was minimized by the moderator on the site
Hi erin,
Methods in this article can help you. Please have a try: https://www.extendoffice.com/documents/excel/2400-excel-drop-down-list-auto-populate.html
This comment was minimized by the moderator on the site
I am trying to get a return value of "yes" if A1:A7 contains any text. What formulas can I use?
This comment was minimized by the moderator on the site
Dear Wyman Thomas,
Supposing you need to return value of "Yes" if cell A1 contains "Apple", this formula can help you =IF(ISNUMBER(SEARCH("Apple",A1)), "Yes", "No").
This comment was minimized by the moderator on the site
Pretty sure

=SUMIF(B2:B7,"<>"&"",A2:B7) should be


=SUMIF(B2:B7,"<>"&"",A2:A7)
This comment was minimized by the moderator on the site
Few People Notice that, We take it A2:A7
This comment was minimized by the moderator on the site
Hi,
Thank you for your reminding.
This comment was minimized by the moderator on the site
Dear all. I would like to use the SUMIF function in the following way: -Sum range is 1:1 -Criteria Range is 2:2 -Criteria is "jorge" However, I would like the function o work a little bit different. If "jorge" is found on B2, I would like A1 to be sum instead of A2. I tried =SUMIF(1:1,OFFSET(2:2,,1),"jorge") but excel does not accept such criteria range argument. How to get it working?
This comment was minimized by the moderator on the site
I am looking to create a budget spreadsheet. My goal is to plug in my daily expenses, with the category in one cell and the amount in the cell beneath. As far as my spending goes, I have no problem calculating. However, I am struggling with a formula to create a running tally of each category. Can you help?
This comment was minimized by the moderator on the site
Mike I am working on the same problem I created a drop down list for column D and my costs are in column C. Simply change the name (Contracts) of the formula to your category name. =SUMIF(D2:D31,""Contracts"",C2:C31)
This comment was minimized by the moderator on the site
hi, hope you could help me on this i want to create a formula where-in the codes under the subnet, be reflected on the net. see below place(net) 1 place1 2 place2 3 place3 4 place4 5 place5 where place net should have a code 1+2+3+4+5, i know how to concatenate and use "&" but i need to have a formula where i could drag it down since its not the only net in my specs, hoping for your answer? bog thanks regards, jayson
This comment was minimized by the moderator on the site
I would like to get the return value "yes" if the cells in A1:A7 contain data. What formula can I use?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations