انتقل إلى المحتوى الرئيسي

 كيفية تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة في ورقة عمل Excel؟

في ورقة عمل Excel ، قد يكون تطبيق التحقق من صحة البيانات على خلية أمرًا شائعًا بالنسبة لنا ، ولكن هل سبق لك أن حاولت استخدام التحقق من صحة البيانات المتعددة في خلية واحدة؟ في هذه المقالة ، سأتحدث عن بعض الأمثلة المختلفة لحل هذه المهمة في Excel.

تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 1)

تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 2)

تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 3)


تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 1)

على سبيل المثال ، أرغب في إعداد التحقق من صحة البيانات للخلايا باستخدام هذه المعايير: إذا تم إدخال رقم ، فيجب أن يكون أقل من 100 ، وإذا تم إدخال نص ، فيجب أن يكون في القائمة من D2 إلى D7 كما هو موضح في لقطة الشاشة التالية:

1. حدد الخلايا التي تريد تطبيق التحقق من صحة البيانات المتعددة ، ثم انقر فوق البيانات > التحقق من صحة البيانات > التحقق من صحة البيانات، انظر لقطة الشاشة:

2. في التحقق من صحة البيانات مربع الحوار ، تحت الإعدادات علامة التبويب ، قم بالعمليات التالية:

(1.) اختر Custom من السماح قائمة منسدلة؛

(2.) أدخل هذه الصيغة: =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) في المعادلة مربع الكتابة.

ملاحظات: في الصيغة أعلاه ، A2 هي الخلية التي تريد تطبيق التحقق من صحة البيانات ، C2 و D2: D7 هي المعايير التي تحتاجها لتطبيق التحقق من صحة البيانات بناءً على.

3. ثم اضغط OK، من الآن فصاعدًا ، يمكن فقط إدخال القيم التي تطابق المعايير في الخلايا ، وإذا لم يكن الأمر كذلك ، فسيظهر مربع تحذير تحذير لتذكيرك ، انظر لقطة الشاشة:


تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 2)

في هذا المثال ، سأسمح فقط بإدخال النص "Kutools for Excel" أو التاريخ بين 12/1/2017 و 12/31/2017 في الخلايا المحددة كما هو موضح أدناه. لحل هذه الوظيفة ، يرجى القيام بما يلي:

1. انتقل إلى التحقق من صحة البيانات مربع الحوار ، وفي مربع الحوار ، يرجى إجراء العمليات التالية:

(1.) انقر الإعدادات التبويب؛

(2.) حدد Custom الخيار من السماح قائمة منسدلة؛

(3.) اكتب هذه الصيغة: =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) في المعادلة مربع الكتابة.

ملاحظات: في الصيغة أعلاه ، A2 هي الخلية التي تريد تطبيق التحقق من صحة البيانات ، C2, 2017,12,1 و 2017,12,31 هي المعايير التي تحتاجها لتطبيق التحقق من صحة البيانات بناءً على.

2. ثم اضغط OK الزر ، الآن ، يمكن السماح فقط للقيم المطابقة للمعايير بالكتابة ، وسيتم تقييد الآخرين كما هو موضح في لقطة الشاشة التالية:


تطبيق التحقق من صحة البيانات المتعددة في خلية واحدة (مثال 3)

المثال الثالث ، أريد أن تبدأ السلسلة النصية بـ "KTE" أو "www" ، وإذا كانت تبدأ بـ "KTE" ، فيمكن السماح بـ 6 أحرف فقط ؛ إذا كانت تبدأ بـ "www" ، فيمكن السماح بـ 10 أحرف فقط ، انظر لقطة الشاشة:

يمكن أن تساعدك الصيغة التالية في التحقق من صحة البيانات في التعامل معها.

1. انتقل إلى التحقق من صحة البيانات في مربع الحوار ، يرجى القيام بالعمليات التالية:

(1.) انقر الإعدادات التبويب؛

(2.) حدد Custom الخيار من السماح قائمة منسدلة؛

(3.) اكتب هذه الصيغة: =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) في المعادلة مربع الكتابة.

ملاحظات: في الصيغة أعلاه ، A2 هي الخلية التي تريد تطبيق التحقق من صحة البيانات ، ويمكنك تغيير المعايير في الصيغة إلى المعايير الخاصة بك.

2. ثم اضغط OK ، والآن ، يُسمح فقط بإدخال القيم النصية التي تطابق المعايير التي حددتها ، انظر الصورة:

ملاحظات: قد تكون هناك معايير أخرى مختلفة للتحقق من صحة البيانات يلزم تطبيقها ، يمكنك إنشاء الصيغ الخاصة بك لمعايير مختلفة كما تريد.

أفضل أدوات إنتاجية المكتب

🤖 مساعد Kutools AI: إحداث ثورة في تحليل البيانات على أساس: التنفيذ الذكي   |  إنشاء التعليمات البرمجية  |  إنشاء صيغ مخصصة  |  تحليل البيانات وإنشاء الرسوم البيانية  |  استدعاء وظائف Kutools...
الميزات الشعبية: البحث عن التكرارات أو تمييزها أو تحديدها   |  حذف الصفوف الفارغة   |  دمج الأعمدة أو الخلايا دون فقدان البيانات   |   جولة بدون صيغة 
سوبر بحث: معايير متعددة VLookup    VLookup ذات القيمة المتعددة  |   VLookup عبر أوراق متعددة   |   بحث غامض ....
قائمة منسدلة متقدمة: إنشاء القائمة المنسدلة بسرعة   |  القائمة المنسدلة التابعة   |  قائمة منسدلة متعددة التحديد ....
مدير العمود: إضافة عدد محدد من الأعمدة  |  نقل الأعمدة  |  تبديل حالة رؤية الأعمدة المخفية  |  مقارنة النطاقات والأعمدة 
الميزات المميزة: التركيز على الشبكة   |  عرض تصميم   |   شريط الفورمولا الكبير    مدير المصنفات والأوراق   |  مكتبة الموارد (النص السيارات)   |  منتقي التاريخ   |  اجمع أوراق العمل   |  تشفير/فك تشفير الخلايا    إرسال رسائل البريد الإلكتروني عن طريق القائمة   |  سوبر تصفية   |   مرشح خاص (تصفية غامق / مائل / يتوسطه خط ...) ...
أفضل 15 مجموعة أدوات12 نص الأدوات (إضافة نص, إزالة الأحرف، ...)   |   +50 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى 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