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

ドロップダウンリストで以前に使用したアイテムを非表示にするにはどうすればよいですか?

Excelでは、通常のドロップダウンリストをすばやく作成できますが、100つのアイテムを選択したときにドロップダウンリストを作成しようとしたことがありますか?以前に使用したものはリストから削除されますか? たとえば、99個の名前のドロップダウンリストがある場合、名前を選択するときに、この名前をドロップダウンリストから削除すると、ドロップダウンにはXNUMX​​個の名前が含まれ、ドロップダウンリストが空になるまで続きます。 たぶん、これは私たちのほとんどにとって難しいことです。ここでは、Excelでこのようなドロップダウンリストを作成する方法について説明します。

ヘルパー列を使用して、ドロップダウンリストで以前に使用したアイテムを非表示にします


矢印青い右バブル ヘルパー列を使用して、ドロップダウンリストで以前に使用したアイテムを非表示にします

次のスクリーンショットに示すように、列Aに名前のリストがあるとします。次に、以下の手順をXNUMXつずつ実行してこのタスクを完了します。

doc-hide-used-items-dropdown-list-1

1。 名前リストの他に、この式を入力してください = IF(COUNTIF($ F $ 1:$ F $ 11、A1)> = 1、 ""、ROW()) セルB1に、スクリーンショットを参照してください。

doc-hide-used-items-dropdown-list-1

Note:上記の式では、 F1:F11ドロップダウンリストに配置するセル範囲であり、 A1 あなたの名前のセルです。

2。 次に、塗りつぶしハンドルをこの数式を含む範囲にドラッグすると、次の結果が得られます。

doc-hide-used-items-dropdown-list-1

3。 そして、列Cに数式を適用し続けます。次の数式を入力してください: =IF(ROW(A1)-ROW(A$1)+1>COUNT(B$1:B$11),"",INDEX(A:A,SMALL(B$1:B$11,1+ROW(A1)-ROW(A$1)))) セルC1に、スクリーンショットを参照してください。

doc-hide-used-items-dropdown-list-1

4。 次に、この数式を必要な範囲まで入力します。スクリーンショットを参照してください。

doc-hide-used-items-dropdown-list-1

5。 次に、列Cでこれらの名前の範囲名を定義し、C1:C11(手順4で数式を適用する範囲)を選択して、[ > 名前を定義する、スクリーンショットを参照してください:

doc-hide-used-items-dropdown-list-1

6。 の中に 新しい名前 ダイアログボックスで、[名前]テキストボックスに名前を入力し、この数式を入力します =OFFSET(Sheet2!$C$1,0,0,COUNTA(Sheet2!$C$1:$C$11)-COUNTBLANK(Sheet2!$C$1:$C$11),1) を参照する フィールド、スクリーンショットを参照してください:

doc-hide-used-items-dropdown-list-1

Note:上記の式で、C1:C11は、手順3で作成したヘルパー列の範囲であり、シート2は現在使用しているシートです。

7。 設定が完了したら、ドロップダウンリストを作成し、ドロップダウンリストを配置するセルF1:F11を選択して、をクリックします。 且つ > データ検証 > データ検証、スクリーンショットを参照してください:

doc-hide-used-items-dropdown-list-1

8。 の中に データ検証 ダイアログボックスで、をクリックします。 設定 タブをクリックし、 リスト 次を許可します。 ドロップダウンリスト、次に下 ソース セクションに、次の式を入力します。 = namecheck(以下、ネームチェック 手順6)で作成した範囲名です。スクリーンショットを参照してください。

doc-hide-used-items-dropdown-list-1

9。 そして、 OK ボタンをクリックしてこのダイアログを閉じると、選択した範囲にドロップダウンリストが作成され、ドロップダウンからXNUMXつの名前を選択すると、この使用済みの名前がリストから削除され、使用されていない名前のみが表示されます。 、スクリーンショットを参照してください:

doc-hide-used-items-dropdown-list-1

先端:上記の手順で作成したヘルパー列は削除できません。削除すると、ドロップダウンリストが無効になります。


関連記事:

Excelでドロップダウンリストを挿入するにはどうすればよいですか?

Excelで動的ドロップダウンリストをすばやく作成するにはどうすればよいですか?

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 (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Does any one know how to get the formula to reset itself once all the items on the list are selected?
e.g.
List 1, 2, 3, 4 - Then after selecting 1, List 2, 3, 4 - Then after Selecting 2, List 3, 4 - Then after selecting 3, List 4 and last, after selecting 4, list empty. How can this be reset so that after you select 4, all the items in the list reset to original list? So, after selecting 4, instead of List being empty, for list to go back to List 1, 2, 3, 4.

Thank you
This comment was minimized by the moderator on the site
This worked like a charm ... expect I need to have this "repeat" in three places on the same spreadsheet. I can't make it function properly, the second time. The items from the first drop down list are eliminated but when an entry is selected in the second location, it isn't removed from the list. Any idea on how to may this function properly?
KL
This comment was minimized by the moderator on the site
Can this formula be used successfully across multiple columns on one spreadsheet? I'm trying to have three columns where someone can select up to three items from a drop down list, i.e. item 1 in column 3, items2 in column 4, and item 3 in column 5. I can get the formula to work at the first occurrence, however, the second time I try to copy the formula, the selection(s) don't disappear from the drop down list, as they do in the column of the first occurrence.
This comment was minimized by the moderator on the site
Bravo! Fantastic solution! I have my workbook set up such that the items in my list are in a separate worksheet that I'm index-matching to through my number and helper columns leaving only them two on my calculation page. Again, very clean solution, Programmer!
This comment was minimized by the moderator on the site
Step 6 isn't working for me. I keep getting an error message saying the syntax of this name isn't correct... Can anyone help?
This comment was minimized by the moderator on the site
Is there a way to have only some of the options get removed when selected and others be permanent?
This comment was minimized by the moderator on the site
How do I get this activity to work if I transpose from Row to Column
This comment was minimized by the moderator on the site
I’ve entered all the formulas correctly, but the only name showing up is the first one on the list. What am I doing wrong??
This comment was minimized by the moderator on the site
Works great, however, if you have two people on the list with the same name e.g. John Smith it removes both incidents of 'John Smith' from the list when you select one of them.


Is there a way to amend this so that you have have multiple versions of the one name without them all being removed?


Thanks.
This comment was minimized by the moderator on the site
How would you change this formula for use of data validation list across multiple rows instead of a single column. Is that possible? Thanks
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