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

Excelのテキスト基準に基づいて値を合計する方法は?

Excelで、テキスト基準の別の列に基づいて値を合計しようとしたことがありますか? たとえば、次のスクリーンショットに示すように、ワークシートにデータの範囲があります。次に、列Aのテキスト値に対応する、列Bのすべての数値を合計して、特定の基準を満たすものとします。列AのセルにはKTEが含まれています。

テキストに基づくドキュメント合計-1

特定のテキストが含まれている場合は、別の列に基づいて値を合計します

特定のテキストで始まる場合は、別の列に基づいて値を合計します

特定のテキストで終わる場合は、別の列に基づいて値を合計します

特定のテキストのみの場合は、別の列に基づいて値を合計します


矢印青い右バブル 特定のテキストが含まれている場合は、別の列に基づいて値を合計します

上記のデータを例にとると、列Aに「KTE」というテキストを含むすべての値を合計すると、次の式が役立ちます。

この式を入力してください = SUMIF(A2:A6、 "* KTE *"、B2:B6) 空白のセルに入れて、 入力します キーを押すと、列Aの対応するセルにテキスト「KTE」が含まれている列Bのすべての数字が合計されます。 スクリーンショットを参照してください:

テキストに基づくドキュメント合計-2
-1
テキストに基づくドキュメント合計-3

先端:上記の式では、 A2:A6 は、に基づいて値を追加するデータ範囲です。 * KTE * は必要な基準を表し、B2:B6は合計する範囲です。


矢印青い右バブル 特定のテキストで始まる場合は、別の列に基づいて値を合計します

テキストが「KTE」で始まる列Aの対応するセルである列Bのセル値を合計するだけの場合は、次の数式を適用できます。 = SUMIF(A2:A6、 "KTE *"、B2:B6)、スクリーンショットを参照してください:

テキストに基づくドキュメント合計-4
-1
テキストに基づくドキュメント合計-5

先端:上記の式では、 A2:A6 は、に基づいて値を追加するデータ範囲です。 KTE * は必要な基準を表し、B2:B6は合計する範囲です。


矢印青い右バブル 特定のテキストで終わる場合は、別の列に基づいて値を合計します

列Aの対応するセルのテキストが「KTE」で終わる列Bのすべての値を合計するには、次の数式を使用します。 = SUMIF(A2:A6、 "* KTE"、B2:B6)(以下、A2:A6 は、に基づいて値を追加するデータ範囲です。 KTE * 必要な基準を表し、 B2:B6 合計したい範囲です)スクリーンショットを参照してください:

テキストに基づくドキュメント合計-6
-1
テキストに基づくドキュメント合計-7

矢印青い右バブル 特定のテキストのみの場合は、別の列に基づいて値を合計します

対応するセルの内容のみが列Aの「KTE」である列Bの値を合計するだけの場合は、次の数式を使用してください。 = SUMIF(A2:A6、 "KTE"、B2:B6)(以下、A2:A6 は、に基づいて値を追加するデータ範囲です。 KTE 必要な基準を表し、 B2:B6 合計する範囲です)、テキストのみが列Aの「KTE」であり、列Bの相対数が合計されます。スクリーンショットを参照してください。

テキストに基づくドキュメント合計-8
-1
テキストに基づくドキュメント合計-9

高度な行の結合:(重複する行を結合し、対応する値を合計/平均します):
  • 1.他の列を組み合わせるベースのキー列を指定します。
  • 2.結合されたデータに対してXNUMXつの計算を選択します。

doc-sum-columns-7-criteria-XNUMX

Kutools for Excel:200以上の便利なExcelアドインがあり、60日以内に制限なしで無料で試すことができます。 今すぐダウンロードして無料トライアル!


関連記事:

Excelでn行ごとに合計する方法は?

Excelでセルをテキストと数値で合計するにはどうすればよいですか?

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

🤖 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 (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I try already.cause I apply the whole range it's still could not get the total sum. I am used sumif
This comment was minimized by the moderator on the site
i need to reference my sumifs criteria to a specific cell, the cell acts as a filter
EG: =SUMIFS(LV215:LV237,WC7,AB215:AB237) where WC7 is equal to a specific cell is this possible?
This comment was minimized by the moderator on the site
i cannot find this tool. "Combine Rows Based on Column" at the top of the page. i also cannot find info on what is on the free version vs. what is on the paid version. is this on the paid version? if not, where is it? thanks!
This comment was minimized by the moderator on the site
Hello, jenna,
We have moved this feature under the Merge & Split group, please see the below screenshot.
Sorry for this inconvenience.
Please try, thank you!
This comment was minimized by the moderator on the site
I create a dynamic string which contains the cells to sum and pass this string to sum function and it gives me #value error. Any solution to this.
This comment was minimized by the moderator on the site
Hi, Desu,
Could you give your problem more detailed, thank you!
This comment was minimized by the moderator on the site
By the way, I’m using the =SUMIF(A2:A6,"*KTE*",B2:B6) formula, and I want to do more than just the B column (up to column AM).
This comment was minimized by the moderator on the site
Hello, Paige,
For solving your problem, may be there is no simple formula, you should join the SUMIF function together to get the result as you need, for example, you can use the below formula: (you can add other columns data with combining the sumif function)

=SUM(SUMIF(A2:A6,"*kte*",B2:B6), SUMIF(A2:A6,"*kte*",C2:C6), SUMIF(A2:A6,"*kte*",D2:D6))

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
This works but what if I want to use the last part of the formula to cover multiple columns instead of just one?
This comment was minimized by the moderator on the site
how do I use a sumif in the following. If a certain cell contains the values of an substring of data, than sum a nearby column. for example, Cell A1 has (Dan,Tom,Bill,Smith). Then a separate table has Dan - 2, Bill - 3, John - 4. Assuming that is a 2x3 table. I want to create a formula that can sum the Dan and Bill numbers (2+3) because those texts could be found in cell A1. So the total would return 5.
This comment was minimized by the moderator on the site
How do you us sumif formula to with two criteria? For instance, If Column A = X and Column C = C then Sum Column G.
This comment was minimized by the moderator on the site
Hello, Matusiak
To sumif values based on multiple criteria, please view the following screenshot:

Also, you can go to the article https://www.extendoffice.com/documents/excel/2471-excel-sumif-multiple-criteria.html to get your solution.
This comment was minimized by the moderator on the site
Hi, any one here is having an idea of how to calculate value containing in a cell (Or with text?
For Example: in Cell A= MR134 , B= MR143, C = MR187 and result will be like sum of 134+143+187 =?
This comment was minimized by the moderator on the site
I am looking for this solution too.
This comment was minimized by the moderator on the site
Hello, guys,
May be the below array formula can help you: (after typing the formula, please press Ctrl+Shift+Enter together)
=SUM(IF(ISNUMBER(SEARCH("MR",B1:B4)),SUBSTITUTE(B1:B4,"MR",""))+0)
Please change the cell references to your need.
This comment was minimized by the moderator on the site
This is super clear and understandable, thank you so much!!!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations