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

Excelの基準に基づいて最大値または最小値を見つける方法は?

doc-find-max-value-with-criteria-1

次のデータ範囲があり、列Aに製品名が含まれ、列Bに注文数量があるとすると、次のスクリーンショットのように、製品KTEの最大注文値を見つけます。 Excelでは、XNUMXつ以上の基準に基づいて最大値または最小値をどのように抽出できますか?

XNUMXつの基準のみに基づいて最大値または最小値を見つけます

複数の基準に基づいて最大値または最小値を見つける


矢印青い右バブル XNUMXつの基準のみに基づいて最大値または最小値を見つけます

XNUMXつの基準で最大値または最小値を返すために、MAX関数が役立ちます。

1。 次の式を入力します。 =MAX((A2:A13=D2)*B2:B13) 必要な特定のセルに、スクリーンショットを参照してください。

doc-find-max-value-with-criteria-2

ヒント:この式では: A2:A13 i■基準を含む範囲セル、 D2 に基づいて最大値を見つけたい基準です。 B2:B13 対応する値を返す範囲です。

2。 次に、 Ctrl + Shift + Enter キーを合わせてKTEの最大値を取得します。スクリーンショットを参照してください。

doc-find-max-value-with-criteria-3

Note:特定の基準に基づいて最小値を取得するには、次の式を入力してください =MIN(IF(A2:A13=D2,B2:B13))、数式を入力した後、を押す必要があります Ctrl + Shift + Enter キーを一緒にすると、次の結果が得られます。

doc-find-max-value-with-criteria-4


矢印青い右バブル 複数の基準に基づいて最大値または最小値を見つける

複数の基準で最大値または最小値を検索する場合は、次の式を使用できます。

次のデータを例にとると、XNUMX月のKTEの最大または最小の順序を見つける必要があります。

doc-find-max-value-with-criteria-5

1。 結果を配置するセルにこの数式を入力します。 =MAX(IF(A2:A13=F1,IF(B2:B13=F2,C2:C13)))、スクリーンショットを参照してください:

doc-find-max-value-with-criteria-7

ヒント:この式では: A2:A13 基準を含むデータです1。 B2:B13 は、criteria2を含むデータ範囲です。 F1 & F2 あなたが基づいている基準は、 C2:C13 最大値を返す範囲を指します。

2。 次に、 Ctrl + Shift + Enter 同時にキーを押すと、対応する値が A2:A13 の値に等しい F1、および対応する値 B2:B13 の値に等しい F2 返されます。

doc-find-max-value-with-criteria-8

Note:これらの基準に基づいて最小値を取得するには、次の式を適用してください。 =MIN(IF(A2:A13=F1,IF(B2:B13=F2,C2:C13)))、を押すのを忘れないでください Ctrl + Shift + Enter 一緒にキー。


高度な結合行:(キー列に基づいて最大値または最小値を見つけます)

Kutools for Excelさん 高度な結合行 便利なことに、キー列に基づいて複数の重複行をXNUMXつのレコードにすばやく結合できます。また、他の列に合計、平均、カウントなどの計算を適用することもできます。

  • 1.他の列が基づいている最大値または最小値を検索するキー列を指定します。
  • 2.必要な計算をXNUMXつ選択します。

doc-find-max-value-with-criteria-9

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


関連記事:

Excelのmax関数で最大データ/値を選択するにはどうすればよいですか?

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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Tip: use MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) or MINIFS...


The solution presented here is stupid and doesn't really work.
This comment was minimized by the moderator on the site
This was super helpful, thank you so much!
This comment was minimized by the moderator on the site
i'm finding min value from each cell (which not in a range), and it give me answer '-'. how to solve this? =min(A3, B3, D3, G3). but the B3 is zero.
This comment was minimized by the moderator on the site
Hello,

Similar to above example, where the MAX array formula finds the max value for KTE and Jan (two conditions) --> i am trying to do almost same, but i need to return not just the maximum value, but the name of the row which contains this maximum value... Imagine, if there is one more column between B and C, which contains the name of the person who did the order, for example... I was trying to use INDEX formula, but it doesn't really work. Like this: =INDEX(C2:C13,MAX(IF(A2:A13=F1,IF(B2:B13=F2,D2:D13)),0) What can be the solution here?
This comment was minimized by the moderator on the site
Hi,

I would like to get help to retrieve a value from a table based on an Object's Name (Multiple objects with multiple data from a same objects which differentiate by date) to get the latest data based on specified date ( more latest data may be available than the specified data).

No. Well Start Date End Date Oil Rates (stb/d)
1 BT-101L 1/1/2017 0:00 1/2/2017 0:00 59
2 BT-106L 1/7/2017 0:00 1/8/2017 0:00 124
3 BT-106S 1/8/2017 0:00 1/9/2017 0:00 132
4 BT-101L 1/9/2017 0:00 1/10/2017 0:00 138
5 BT-201S 1/10/2017 0:00 1/11/2017 0:00 144
6 BT-203S 1/11/2017 0:00 1/12/2017 0:00 150
7 BT-101L 1/29/2017 0:00 1/30/2017 0:00 269

In the results mode, I need to populate the data based on latest available data.

Date BT-101L
1-Jan 59
2-Jan 59
3-Jan 59
4-Jan 59
5-Jan 59
6-Jan 59
7-Jan 59
8-Jan 132
9-Jan 132
10-Jan 132
11-Jan 132
12-Jan 132
13-Jan 132
14-Jan 132
15-Jan 132
16-Jan 132

Can anyone help?
This comment was minimized by the moderator on the site
Similar question but based on reversed information. I work in land investment. I have a list of counties and corresponding values. The lower the value the more I need to work in the area. If I plug say "County A" with a value of 100, then County B with a value of 85, then County C with a value of 66, what statement can I use to identify County C as the one I need to work on?
This comment was minimized by the moderator on the site
Hi, when I try the MIN formula it doesn't work and just gives me 0??
This comment was minimized by the moderator on the site
Virtualcoyright - Do you have blanks in the range you are using the MIN for? If so, it will return with the following formula 0:

=MIN(IF(A2:A13=D2,B2:B13))

To prevent it getting 0 if blanks exist in the range B2:B13, write the formula in the following manner:

=MIN(IF(A2:A13=D2,IF(B2:B13<>0,B2:B13)))
This comment was minimized by the moderator on the site
Sir you have just saved my bacon ! I was facing a problem that i didn't have any blanks & all values where > 0 but the minimum formula resulted in 0 while i wanted the least positive value and your modified formula did just that. I think they should modify the article to include your modified formula.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations