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

Excelで値の一致するすべてのインスタンスを一覧表示するにはどうすればよいですか?

左のスクリーンショットが示すように、テーブル内の値「Linda」のすべての一致するインスタンスを見つけてリストする必要があります。 それを達成する方法は? この記事の方法を試してください。

配列数式を使用して、値の一致するすべてのインスタンスを一覧表示します
Kutools for Excelを使用すると、値の最初に一致したインスタンスのみを簡単に一覧表示できます

VLOOKUPのその他のチュートリアル...


配列数式を使用して、値の一致するすべてのインスタンスを一覧表示します

次の配列数式を使用すると、Excelの特定のテーブルにある値のすべての一致インスタンスを簡単に一覧表示できます。 次のようにしてください。

1.空白のセルを選択して最初に一致したインスタンスを出力し、その中に次の数式を入力して、を押します。 Ctrlキー + シフト + 入力します キーを同時に押す。 

=INDEX($B$2:$B$11, SMALL(IF($D$2=$A$2:$A$11, ROW($A$2:$A$11)-ROW($A$2)+1), ROW(1:1)))

Note:式で、B2:B11は、一致したインスタンスが配置される範囲です。A2:A11は、すべてのインスタンスを一覧表示する特定の値を含む範囲です。 そして、D2には特定の値が含まれています。

2.結果セルを選択し続け、フィルハンドルを下にドラッグして、一致する他のインスタンスを取得します。


Kutools for Excelを使用すると、値の最初に一致したインスタンスのみを簡単に一覧表示できます

値の最初に一致したインスタンスを簡単に見つけて一覧表示できます。 リストで値を探す の機能 Kutools for Excel 数式を覚えていない。 次のようにしてください。

申請する前に Kutools for Excelについては 最初にダウンロードしてインストールします.

1.最初に一致したインスタンスを配置する空白のセルを選択し、[ クツール > フォーミュラヘルパー > フォーミュラヘルパー

2。 の中に 数式ヘルパー ダイアログボックスでは、次のことを行う必要があります。

2.1検索して選択する リストで値を探す 内のオプション 式を選択してください ボックス;
ヒント:確認できます フィルタ ボックスにキーワードを入力して、必要な数式をすばやくフィルタリングします。
2.2で テーブル・アレイ ボックスで、特定の値の列と一致するインスタンスの列の両方を含むテーブル範囲を選択します。
2.3で ルック値 ボックスで、最初のインスタンスを一覧表示する特定の値を持つセルを選択します。
2.4で コラム ボックスで、一致したインスタンスを含む列を選択します。 または、列番号を入力するだけです。
ヒント:列番号は、選択した列数に基づいています。3つの列を選択し、これが3番目の列である場合は、番号XNUMXを入力する必要があります。 コラム ボックス。
2.5クリック OK  

次に、指定された値の最初に一致したインスタンスが、以下のスクリーンショットのように一覧表示されます。

  このユーティリティの無料トライアル(30日)が必要な場合は、 クリックしてダウンロードしてください、次に、上記の手順に従って操作を適用します。


関連記事

複数のワークシートにわたるVlookup値
vlookup関数を適用して、ワークシートのテーブルに一致する値を返すことができます。 ただし、複数のワークシート間で値をvlookupする必要がある場合は、どうすればよいでしょうか。 この記事では、問題を簡単に解決するための詳細な手順について説明します。

Vlookupを実行し、一致した値を複数の列に返します
通常、Vlookup関数を適用すると、一致した値をXNUMXつの列からのみ返すことができます。 場合によっては、基準に基づいて複数の列から一致する値を抽出する必要があります。 これがあなたのための解決策です。

XNUMXつのセルに複数の値を返すVlookup
通常、VLOOKUP関数を適用するときに、基準に一致する値が複数ある場合は、最初の値の結果しか取得できません。 一致したすべての結果を返し、それらをすべてXNUMXつのセルに表示したい場合、どのように達成できますか?

Vlookupを実行し、一致した値の行全体を返します
通常、vlookup関数を使用すると、同じ行の特定の列からのみ結果を返すことができます。 この記事では、特定の基準に基づいてデータの行全体を返す方法を説明します。

逆方向のVlookupまたは逆の順序
一般に、VLOOKUP関数は配列テーブルの左から右に値を検索し、ルックアップ値がターゲット値の左側にある必要があります。 ただし、ターゲット値がわかっていて、逆にルックアップ値を見つけたい場合があります。 したがって、Excelで逆方向にvlookupする必要があります。 この記事には、この問題に簡単に対処する方法がいくつかあります。

VLOOKUPのその他のチュートリアル...

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

🤖 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 (15)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Is there a way to make it totla up the values it find and just put it in the first box?
This comment was minimized by the moderator on the site
Hi Bramdon,

To total up all matched values, the following formula can help. Or you can take a look at this tutorial: vlookup and sum matches in rows or columns in Excel
=SUMPRODUCT((A2:A7=A10)*B2:F7)
https://www.extendoffice.com/images/stories/doc-excel/doc-vlookup-and-sum/doc-vlookup-sum-sumif4.png
This comment was minimized by the moderator on the site
Is there a way to stop this formula returning duplicate values

Thanks
Steven
This comment was minimized by the moderator on the site
Hi Steven Waddleton,
The following two formulas can do you a favor.
Array formula in E2:
=INDEX($B$2:$B$11,MATCH(0,COUNTIF($E$1:E1,$B$2:$B$11)+($A$2:$A$11<>$D$2),0)) + Ctrl + Shift + Enter
Formula in E2:
=LOOKUP(2, 1/((COUNTIF($F$1:F1,$B$2:$B$11)=0)*($D$2=$A$2:$A$11)), $B$2:$B$11)
In the formulas, E1 is the cell above the result cell.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/instance-no-duplicates.png
This comment was minimized by the moderator on the site
WOW! Worked perfectly, thanks a ton! Awesome formula.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Nice formula. In testing it I get #NUMBER! when I clear cells A9:B11. How to change the formula to prevent getting this error? I wonder, because I want to use this formula for a list of events on a certain date and on date 1 there are 40 events, on day 2 it are 10 events etc. I could create an indexed list for perhaps 100 rows, but it looks very strange when for date 2 the first 10 rows show events and the other 90 rows show #NUMBER!. It would be okay for me if it gave "-" as a result instead of #NUMBER!
This comment was minimized by the moderator on the site
Fantastic. Thank you so much. Very helpful for my work.
This comment was minimized by the moderator on the site
Amazing. The formula worked for me exactly the way I was looking for. Hats off. Thanks a ton
This comment was minimized by the moderator on the site
Question, I have a sheet laid out opposite of this where "Linda" would be the column header I would like to flag on and the value "90" or 89" I would like to return. Would I change the row function to a column function?
This comment was minimized by the moderator on the site
How would I use this formula but instead of filling down I could fill across but the formula would continue moving down as I fill across (ie. the formula changes from ROW(1:1) to ROW(2:2)
This comment was minimized by the moderator on the site
Hi Luke,The below array formula can do you a favor. Note: After entering the formula, please press the Ctrl + Shift + Enter key to apply it. And then drag its Fill Handle right across the cells you need. =INDEX($B$2:$B$11, SMALL(IF($D$2=$A$2:$A$11, ROW($A$2:$A$11)-ROW($A$2)+1), COLUMN(A1)))
This comment was minimized by the moderator on the site
A very useful and educational formula. I am matching against a set numeric value and it works a treat. How can I use >= rather than just = (i.e. IF($D$2>=$A$2:$A$11) to perform the match so it is looking for values greater than a set value (in $D$2). I assume as it doesn't work as one of the functions in the formula is matching against specific text rather than working with numbers?
This comment was minimized by the moderator on the site
This was super useful, thanks! I'm trying to take this one step further and be able to return all match instances of a certain value while having to search through more than a single-column array. To work through this using your example, I added a second column of test scores and modified your formula to look up a given test score and return the names that match that score. I got this to work with INDEX(SMALL()) and can pull all of the names from both test columns. I've also managed to return only names with that score on Test 2 using INDEX(MATCH(INDEX(MATCH))), however this can only find the first instance in the array. What I'm really trying to do is a combination of these: return all of the names with the given array, while narrowing the search to a specific column within the array. Do you have any tips for this?
This comment was minimized by the moderator on the site
Good day,
Would you please provide a screenshot of your spreadsheet showing what you are exactly trying to do? Thank you for your comment.
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