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

كيفية تعيين / إظهار القيمة المحددة مسبقًا للقائمة المنسدلة في Excel؟

بشكل افتراضي ، تظهر القائمة المنسدلة العامة التي أنشأتها فارغة قبل اختيار قيمة واحدة من القائمة ، ولكن في بعض الحالات ، قد ترغب في إظهار أو تعيين قيمة / قيمة افتراضية محددة مسبقًا للقائمة المنسدلة قبل أن يختار المستخدمون قيمة من القائمة كما هو موضح أدناه لقطة الشاشة. هنا يمكن أن تساعدك هذه المقالة.


السهم الأزرق الحق فقاعة قم بتعيين القيمة الافتراضية (القيمة المحددة مسبقًا) للقائمة المنسدلة مع الصيغة

لتعيين القيمة الافتراضية للقائمة المنسدلة ، تحتاج إلى إنشاء قائمة منسدلة عامة أولاً ، ثم استخدام صيغة.

1. إنشاء قائمة منسدلة. حدد خلية أو نطاقًا تريد وضع القائمة المنسدلة فيه ، هنا K1 ، وانقر البيانات > التحقق من صحة البيانات. انظر لقطة الشاشة:
عرض المستند القائمة المنسدلة للقيمة المحددة مسبقًا 2

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

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

4. انقر OK لإغلاق مربع الحوار ، وانتقل إلى القائمة المنسدلة ، واكتب هذه الصيغة = IF (J1 = ""، "- حدد--") في ذلك ، واضغط أدخل مفتاح. انظر لقطة الشاشة:
عرض المستند القائمة المنسدلة للقيمة المحددة مسبقًا 5

تلميح: في الصيغة ، J1 هي خلية فارغة بجوار K1 ، تأكد من أن الخلية فارغة ، و "--تحديد--"هي القيمة المحددة مسبقًا التي تريد إظهارها ، ويمكنك تغييرها حسب حاجتك.

5. ثم استمر في تحديد خلية القائمة المنسدلة ، وانقر فوق البيانات > التحقق من صحة البيانات لإظهار التحقق من صحة البيانات الحوار مرة أخرى ، وانتقل إلى تنبيه خطأ علامة التبويب والتحقق إظهار تنبيه خطأ بعد إدخال بيانات غير صالحة خيار العودة. انظر لقطة الشاشة:
عرض المستند القائمة المنسدلة للقيمة المحددة مسبقًا 6

7. انقر OK، الآن قبل أن يحدد المستخدمون القيم من القائمة المنسدلة ، توجد قيمة افتراضية معروضة في الخلية المحددة مع القائمة المنسدلة.
عرض المستند القائمة المنسدلة للقيمة المحددة مسبقًا 7

ملحوظة: أثناء تحديد قيمة من القائمة المنسدلة ، تختفي القيمة الافتراضية.
عرض المستند القائمة المنسدلة للقيمة المحددة مسبقًا 8


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

🤖 مساعد 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,

How to count (D71) conditionally formatted RED color cell (D40:D70)?

Pls guide...

Thanks.
This comment was minimized by the moderator on the site
Hi,

How to make default value (UP) for certain range of column (C40:C70) only in the below code? Add what command?

Private Sub Worksheet_Change(ByVal Target As Range)
‘Updated by ARUN
Dim xObjV As Validation
On Error Resume Next
Set xObjV = Target.Validation
If xObjV.Type = xlValidateList Then
If IsEmpty(Target.Value) Then Target.Value = “UP”
End If
End Sub

Pls guide…

Thanks.
This comment was minimized by the moderator on the site
Try this code
Private Sub Worksheet_Change(ByVal Target As Range)
    'Updated by ExtendOffice
    Dim xObjV As Validation
    On Error Resume Next
    Set xObjV = Target.Validation
    
    'Check if the target is within C40:C70
    If Not Intersect(Target, Range("C40:C70")) Is Nothing Then
        If xObjV.Type = xlValidateList Then
            If IsEmpty(Target.Value) Then Target.Value = "UP"
        End If
    End If
End Sub
This comment was minimized by the moderator on the site
Hi,

Its working...

Thanks
This comment was minimized by the moderator on the site
Hello, How can I get defined value limit in excel dropdown menu, like I want to Enter Apple in product against three name and it should not put 4th entry and give error if i do so, any solution please.
This comment was minimized by the moderator on the site
Sorry, I do not understand your question, could you describe with more details or upload a file to describe it?
This comment was minimized by the moderator on the site
Hello, How can I get defined value limit in excel dropdown menu, like I want to Enter Apple in product against three name and it should not put 4th entry and give error if i do so, any soluition please.
This comment was minimized by the moderator on the site
hello, my data is about names and phone numbers. can make it if two names selected in one cells using data validations, the particular name which their name as selected, their phone numbers will be shown next to it.

help me!
This comment was minimized by the moderator on the site
Hello!

How can I set a data validation list such that if the drop down value in the cell is deleted, the cell will automatically show a default value (i.e. "-Select-")?

For example, I have a worksheet with multiple drop down lists that I want to show a default value of "-Select-" once the sheet is opened. A user will select values from the lists that will impact the result of calculations throughout the entire spreadsheet. A user may accidentally "delete" the cell contents of the lists. If this happens, rather than the cell becoming blank, I want the cell to show a default value of "-Select-". This scenario occurs in multiple random locations throughout the spreadsheet, not just in one localized place.

I was able to find the following VBA code so far, but it only applies the concept over a range, rather than just individual cells that contain drop down lists. The problem with what I have coded so far is that every single blank cell in the range ends up with "-Select-" in it. Some of the lists are in ranges, but some are also scattered throughout the sheet. The problem I'm having with my current code is that every single blank cell in the range ends up with "-Select-" in it. I'm trying to get this to apply over the entire worksheet to ONLY cells that are drop down lists.

Is what I'm trying to accomplish even possible?

Example file can be found here:
https://drive.google.com/file/d/1VoO8VgFs3IJ0ALwqfk0i8gt69UE4vEKW/view?usp=sharing

Example code:

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
' If Target.Cells.Count > 1 Then Exit Sub 'turning this off allows multiple cells to be selected and deleted at the same time
If Not Intersect(Target, Range("f2:p17")) Is Nothing Then
For Each cel In Range("f2:p17")
Application.EnableEvents = False
If IsEmpty(cel.Value) Then cel.Value = "-Select-"
Next cel
End If
Application.EnableEvents = True
End Sub


Thanks in advance!
This comment was minimized by the moderator on the site
How can I set a data validation list such that if the drop down value in the cell is deleted, the cell will automatically show the a default value (i.e. "-Select-")?

For example, I have a worksheet with multiple drop down lists that I want to show a default value of "-Select-" once the sheet is opened. A user will select values from the lists that will impact the result of calculations throughout the entire spreadsheet. A user may accidentally "delete" the cell contents. If this happens, rather than the cell becoming blank, I want the cell to show a default value of "-Select-". This scenario occurs in multiple random locations throughout the spreadsheet, not just in one localized place.

I was able to come up with the following VBA code so far, but I've only figured out how to apply the concept over a range, rather than just cells that contain a drop down list. The problem with what I have coded so far is that every single blank cell in the range ends up with "-Select-" in it.

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
' If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("f2:p17")) Is Nothing Then
For Each cel In Range("f2:p17")
Application.EnableEvents = False
If IsEmpty(cel.Value) Then cel.Value = "-Select-"
Next cel
End If
Application.EnableEvents = True
End Sub
This comment was minimized by the moderator on the site
The idea is nice, but my problem is that if the dropdown value is deleted, it doesn't revert to the default.
This comment was minimized by the moderator on the site
I also have the same issue , please reply if you solved it
This comment was minimized by the moderator on the site
Exactly!!! I'm having the same issue, have you found a solution?
This comment was minimized by the moderator on the site
You can insert the function in that specific cell using VBA, make sure you call the insert function when workbook is opening.
This comment was minimized by the moderator on the site
Only works if you speak VBA, not all of us code.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations