Բաց թողնել հիմնական բովանդակությունը

Ինչպե՞ս Excel- ում նախանշված արժեքը դնել / ցույց տալ բացվող ցուցակի համար:

Լռելյայնորեն, ձեր ստեղծած ընդհանուր բացվող ցուցակը դատարկ է, նախքան ցուցակից մեկ արժեք ընտրելը, բայց որոշ դեպքերում գուցե ցանկանաք ցուցադրել կամ սահմանել նախընտրած արժեք / կանխադրված արժեք բացվող ցուցակի համար, նախքան օգտվողները մեկը ընտրեն ցուցակը, ինչպես ցույց է տրված սքրինշոթը: Այստեղ այս հոդվածը կարող է օգնել ձեզ:


նետ կապույտ աջ պղպջակ Սահմանեք նախնական արժեքը (նախընտրական ընտրված արժեքը) բացվող ցուցակի համար բանաձևով

Բացվող ցուցակի նախնական արժեքը սահմանելու համար հարկավոր է նախ ստեղծել ընդհանուր բացվող ցուցակ, ապա օգտագործել բանաձև:

1. Ստեղծեք բացվող ցուցակ: Ընտրեք բջիջ կամ տիրույթ, որը ցանկանում եք տեղադրել բացվող ցուցակը, ահա K1- ը և կտտացրեք Ամսաթիվ > Տվյալների վավերացում, Տեսեք,
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 2

2. Հետո Տվյալների վավերացում երկխոսություն, տակ Կարգավորումներ ընտրեք Ցուցակ - ից Թույլ տալ ցուցակը, ապա բացվող ցուցակում ընտրեք այն արժեքը, որը ցանկանում եք ցույց տալ Աղբյուր տեքստային տուփ: Տեսեք,
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 3

3. Այնուհետեւ կտտացրեք Erգուշացման սխալ էջանշանը է Տվյալների վավերացում երկխոսություն և ապանշել Invույց տալ սխալ ազդանշանը անվավեր տվյալների մուտքագրումից հետո տարբերակ: տե՛ս սքրինշոթը.
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 4

4: սեղմեք OK երկխոսությունը փակելու համար և անցեք բացվող ցուցակում և մուտքագրեք այս բանաձևը = ԵԹԵ (J1 = "", "- ընտրեք -") մեջը և սեղմեք Մտնել բանալի. Տեսեք,
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 5

Ձեր պատասխանը ուղարկված չէ: Բանաձևում J1 K1- ի կողքին դատարկ բջիջ է, համոզվեք, որ բջիջը դատարկ է, և "- ընտրել -«նախընտրական արժեքն է, որը ցանկանում եք ցույց տալ, և կարող եք դրանք փոխել ըստ ձեզ անհրաժեշտության:

5. Դրանից հետո ընտրված պահեք ցուցակի բջիջը և կտտացրեք Ամսաթիվ > Տվյալների վավերացում ցույց տալ Տվյալների վավերացում նորից երկխոսություն և անցեք Erգուշացման սխալ ներդիր և ստուգել Invույց տալ սխալ ազդանշանը անվավեր տվյալների մուտքագրումից հետո տարբերակը հետ է: Տեսեք,
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 6

7: սեղմեք OK, այժմ նախքան օգտվողները բացվող ցուցակից արժեքներ կընտրեն, նշված բջիջում ցուցադրվում է կանխադրված արժեք ՝ բացվող ցուցակով:
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 7

Նշում: Մինչ բացվող ցուցակից մի արժեք ընտրվում է, լռելյայն արժեքը անհետանում է:
փաստաթուղթ ցուցադրել ընտրված արժեքը բացվող ցուցակ 8


Գրասենյակի արտադրողականության լավագույն գործիքները

🤖 Kutools AI օգնականՀեղափոխություն կատարել տվյալների վերլուծության հիման վրա՝ Խելացի կատարում   |  Ստեղծեք ծածկագիր  |  Ստեղծեք հատուկ բանաձևեր  |  Վերլուծել տվյալները և ստեղծել գծապատկերներ  |  Invoke Kutools-ի գործառույթները...
Հանրաճանաչ հատկություններ: Գտեք, ընդգծեք կամ նույնականացրեք կրկնօրինակները   |  Deleteնջել դատարկ շարքերը   |  Միավորել սյունակները կամ բջիջները՝ առանց տվյալների կորստի   |   Կլոր առանց բանաձևի ...
Super Փնտրել: Բազմաթիվ չափանիշների VLookup    Բազմակի արժեք VLookup  |   VLookup բազմաթիվ թերթերում   |   Fuzzy Փնտրել ....
Ընդլայնված բացվող ցուցակ: Արագ ստեղծեք բացվող ցուցակը   |  Կախված բացվող ցուցակ   |  Բազմակի ընտրություն Drop Down ցուցակ ....
Սյունակի կառավարիչ: Ավելացրեք որոշակի քանակությամբ սյունակներ  |  Տեղափոխել սյունակները  |  Փոխարկել թաքնված սյունակների տեսանելիության կարգավիճակը  |  Համեմատեք միջակայքերը և սյունակները ...
Առանձնահատկություններ: Ցանցի կենտրոնացում   |  Դիզայնի տեսք   |   Մեծ Formula Bar    Աշխատանքային գրքույկի և թերթիկների կառավարիչ   |  Ռեսուրսների գրադարան (Ավտոմատ տեքստ)   |  Ամսաթիվ ընտրող   |  Միավորել աշխատանքային թերթերը   |  Գաղտնագրել/գաղտնազերծել բջիջները    Ուղարկեք նամակներ ըստ ցանկի   |  Սուպեր զտիչ   |   Հատուկ զտիչ (զտել թավ/շեղ/շեղված...) ...
Լավագույն 15 գործիքների հավաքածու12 Տեքստ Գործիքներ (Ավելացրեք տեքստ, Հեռացնել նիշերը, ...)   |   50+ Աղյուսակ Տեսակներ (Գանտի աղյուսակը, ...)   |   40+ Գործնական Բանաձեւեր (Հաշվարկել տարիքը ՝ ելնելով ծննդյան տարեդարձից, ...)   |   19 միացում Գործիքներ (Տեղադրեք QR կոդ, Տեղադրեք նկար ուղուց, ...)   |   12 Փոխարկում Գործիքներ (Բառեր համարներ, Արտարժույթի փոխակերպումը, ...)   |   7 Միաձուլում և պառակտում Գործիքներ (Ընդլայնված կոմբինատ տողեր, Պառակտված բջիջներ, ...)   |   ... եւ ավելին

Լրացրեք ձեր Excel-ի հմտությունները Kutools-ի հետ Excel-ի համար և փորձեք արդյունավետությունը, ինչպես երբեք: Kutools-ը Excel-ի համար առաջարկում է ավելի քան 300 առաջադեմ առանձնահատկություններ՝ արտադրողականությունը բարձրացնելու և ժամանակ խնայելու համար:  Սեղմեք այստեղ՝ Ձեզ ամենաշատ անհրաժեշտ հատկանիշը ստանալու համար...

Նկարագրություն


Office Tab- ը Tabbed ինտերֆեյսը բերում է Office, և ձեր աշխատանքը շատ ավելի դյուրին դարձրեք

  • Միացնել ներդիրներով խմբագրումը և ընթերցումը Word, Excel, PowerPoint- ով, Հրատարակիչ, Access, Visio և Project:
  • Բացեք և ստեղծեք բազմաթիվ փաստաթղթեր նույն պատուհանի նոր ներդիրներում, այլ ոչ թե նոր պատուհաններում:
  • Բարձրացնում է ձեր արտադրողականությունը 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