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

 ExcelワークシートのXNUMXつのセルに複数のデータ検証を適用するにはどうすればよいですか?

Excelワークシートでは、セルにXNUMXつのデータ検証を適用するのが一般的かもしれませんが、XNUMXつのセルに複数のデータ検証を使用しようとしたことがありますか? この記事では、Excelでこのタスクを解決するためのいくつかの異なる例について説明します。

1つのセルに複数のデータ検証を適用する(例XNUMX)

2つのセルに複数のデータ検証を適用する(例XNUMX)

3つのセルに複数のデータ検証を適用する(例XNUMX)


1つのセルに複数のデータ検証を適用する(例XNUMX)

たとえば、次の基準でセルのデータ検証を設定したいと思います。数値を入力する場合は100未満、テキストを入力する場合は次のスクリーンショットのようにD2からD7までのリストに含める必要があります。

1。 複数のデータ検証を適用するセルを選択し、をクリックします 且つ > データ検証 > データ検証、スクリーンショットを参照してください:

2。 の中に データ検証 ダイアログボックス、下 設定 タブで、次の操作を実行します。

(1.)選択 カスタム 次を許可します。 ドロップダウンリスト;

(2.)次の式を入力します。 =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) テキストボックス。

Note:上記の式では、 A2 データ検証を適用するセルです。 C2 & D2:D7 に基づいてデータ検証を適用するために必要な基準です。

3。 次に、をクリックします OK、今後は、条件に一致する値のみをセルに入力できます。入力できない場合は、警告プロンプトボックスが表示され、通知が表示されます。スクリーンショットを参照してください。


2つのセルに複数のデータ検証を適用する(例XNUMX)

この例では、「Kutools for Excel」というテキストのみを許可するか、以下のスクリーンショットに示すように、12年1月2017日から12年31月2017日までの日付を特定のセルに入力できます。 このジョブを解決するには、次のようにしてください。

1。 に行く データ検証 ダイアログボックス、およびダイアログボックスで、次の操作を実行してください。

(1.)クリック 設定 タブ;

(2.)選択 カスタム オプションから 次を許可します。 ドロップダウンリスト;

(3.)次の式を入力します。 =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) テキストボックス。

Note:上記の式では、 A2 データ検証を適用するセルです。 C2, 2017,12,1 & 2017,12,31 に基づいてデータ検証を適用するために必要な基準です。

2。 次に、をクリックします OK ボタンをクリックすると、基準に一致する値のみを入力できるようになり、他の値は次のスクリーンショットのように制限されます。


3つのセルに複数のデータ検証を適用する(例XNUMX)

6番目の例では、テキスト文字列を「KTE」または「www」で始める必要があります。「KTE」で始まる場合は、10文字しか使用できません。 「www」で始まる場合、許可できる文字はXNUMX文字のみです。スクリーンショットを参照してください。

データ検証の次の式は、それに対処するのに役立ちます。

1。 行く データ検証 ダイアログボックスのダイアログで、次の操作を行ってください。

(1.)クリック 設定 タブ;

(2.)選択 カスタム オプションから 次を許可します。 ドロップダウンリスト;

(3.)次の式を入力します。 =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) テキストボックス。

Note:上記の式では、 A2 はデータ検証を適用するセルであり、数式の基準を独自のものに変更できます。

2。 次に、をクリックします OK ボタンをクリックすると、指定した基準に一致するテキスト値のみを入力できるようになります。スクリーンショットを参照してください。

Note:適用する必要のある他のさまざまなデータ検証基準がある場合があります。必要に応じて、さまざまな基準に対して独自の数式を作成できます。

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

🤖 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)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,
I am capturing department (10 departments), rating (5,4,3,2 & 1)and reward type criteria (X, Y and Z) of which i calculate the overall callibration based on certain %. Eg. i have 10 departments having each department 15-20 employees. Now i need a formula wherein in the table against the particular department, lets say department1 to populate the % of employees (only with rating 5 and criteria X) against the total employee of (criteria X and Z).
This comment was minimized by the moderator on the site
I have data in two different columns and i have to apply this with two different criteria. For example, first criteria shows result if a particular cell contains a text "Highlighter" and second criteria show when the cell contain text "Pointer".
Highlighter test results are different than the pointer results and we make separate validation of both data. Is this possible to extract the validation of each criteria in a single cell with no overlapping?
This comment was minimized by the moderator on the site
Hey I want a parent child relationship sort of multiple drop down lists.
For example, if in column one some selects 'a' among the list of a, b & c
Then in the second column the child category of 'a' which is x, y & z should appear
How can that be done?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Team, I failed to build example no.1. I copied and pasted the formula:  =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) and failed. Where is the bug ? Can you please assist ? THX a lot.
This comment was minimized by the moderator on the site
Hello Frank,
Glad to help. The reason why the data validation failed is that you probably didn't choose the data validation cell range. Please select the cell range first (say A2:A10), then click Data > Data Validation > Data Validation to input the formula =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1). Please see the screenshots I uploaded here. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
How can I apply a data validation to multiple columns?
This comment was minimized by the moderator on the site
Hello Fabian,To apple a data validation to multiple columns, the trick is almost identical to the ways we mentioned above. The most important thing is that you select the columns first, then you can set up the rules in the Data Validation dialog box. Plesase have a try. Any question, please feel free to contact us. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
i am confuse
This comment was minimized by the moderator on the site
Hi,
I need to validate multiple columns before entering a value into cell. please find my requirement below,
I have 3 columns for example,

A1-Total Credit limit (Mandatory field)
Should have a minimum amount of 100 and multiples of 100:
=AND(ISNUMBER(A1),A1>=100, MOD(A1,100)=0) - Solved!
B1- Weekly Credit limit (Optional filed)
User should be able to input a value only when A1 is filled, Should not be greater than A1, Minimum amount 100 and multiples of 100
=AND(A1<>"",ISNUMBER(B1),B1<=A1, MOD(B1,100=0) - Solved!
C1-Daily Credit limit (Optional field)
User should be able to input a value only when A1 is filled, Should not be greater than A1&B1, Minimum amount 100 and multiples of 100

I need to add following validation, Please Help
I have to check if A1 is filled or not, then C1 shouldn't be greater than A1 and C1 min value should be 100 and multiples of 100 - I have answer to this
How can add a validation on B1 because B1 is optional it can have value and cannot. so if there's a value I have to make sure C1 is not greater than B1 else ignore B1?

How can i have this in data validation?

Thanks once again for the help
This comment was minimized by the moderator on the site
how can I add another Data validation function with this list function. for example I added a list of "yes" and "no". but I also want to add an OR function to this so that if "yes" is selected in one column then others only have to be "no".
This comment was minimized by the moderator on the site
Is it possible to apply data validation on the calcuated column attribute?
This comment was minimized by the moderator on the site
i'm looking for the ability to have a data validation which allows the user to select multiple choices. I.e. the list pops up and user can select Apple, grape, and/or banana. If they select all three, it shows in cell as: "apple, grade, banana". if only 1: "grape" etc... any ideas?
This comment was minimized by the moderator on the site
Hello, jeffe,
Maybe the below article can help you to deal with your problem, please check it:
https://www.extendoffice.com/documents/excel/2448-excel-drop-down-list-multiple-selection.html
This comment was minimized by the moderator on the site
Any idea how to have multiple data validation and a drop down. Drop down uses "List" and this example uses "Custom". Basically if the correct data is present in another column, I want the drop down to be able to be selected to input data. Otherwise if the dropdown is selected the error message appears.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations