Μετάβαση στο κύριο περιεχόμενο

Πώς να ορίσετε / εμφανίσετε προεπιλεγμένη τιμή για την αναπτυσσόμενη λίστα στο Excel;

Από προεπιλογή, η γενική αναπτυσσόμενη λίστα που έχετε δημιουργήσει είναι κενή πριν επιλέξετε μια τιμή από τη λίστα, αλλά σε ορισμένες περιπτώσεις, μπορεί να θέλετε να εμφανίσετε ή να ορίσετε μια προεπιλεγμένη τιμή / προεπιλεγμένη τιμή για την αναπτυσσόμενη λίστα πριν οι χρήστες επιλέξουν μία από εμφανίζεται η λίστα ως παρακάτω στιγμιότυπο οθόνης. Εδώ αυτό το άρθρο μπορεί να σας βοηθήσει.


βέλος μπλε δεξιά φούσκα Ορίστε την προεπιλεγμένη τιμή (προεπιλεγμένη τιμή) για την αναπτυσσόμενη λίστα με τον τύπο

Για να ορίσετε την προεπιλεγμένη τιμή για την αναπτυσσόμενη λίστα, πρέπει πρώτα να δημιουργήσετε μια γενική αναπτυσσόμενη λίστα και, στη συνέχεια, να χρησιμοποιήσετε έναν τύπο.

1. Δημιουργήστε μια αναπτυσσόμενη λίστα. Επιλέξτε ένα κελί ή ένα εύρος που θέλετε να τοποθετήσετε την αναπτυσσόμενη λίστα, εδώ είναι το K1 και κάντε κλικ στο ημερομηνία > επικύρωση δεδομένων. Δείτε το στιγμιότυπο οθόνης:
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 2

2. Στη συνέχεια, στο επικύρωση δεδομένων διαλόγου, κάτω ρυθμίσεις καρτέλα, επιλέξτε Λίστα από Επιτρέψτε λίστα και, στη συνέχεια, επιλέξτε την τιμή στην οποία θέλετε να εμφανιστεί στην αναπτυσσόμενη λίστα Πηγή πλαίσιο κειμένου. Δείτε το στιγμιότυπο οθόνης:
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 3

3. Στη συνέχεια κάντε κλικ στο κουμπί Ειδοποίηση σφάλματος καρτέλα στο επικύρωση δεδομένων διαλόγου και καταργήστε την επιλογή Εμφάνιση ειδοποίησης σφάλματος μετά την εισαγωγή μη έγκυρων δεδομένων επιλογή. δείτε το στιγμιότυπο οθόνης:
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 4

4. κλικ OK για να κλείσετε το διάλογο και μεταβείτε στην αναπτυσσόμενη λίστα και πληκτρολογήστε αυτόν τον τύπο = IF (J1 = "", "--select--") σε αυτό και πατήστε εισάγετε κλειδί. Δείτε το στιγμιότυπο οθόνης:
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 5

Συμβουλή: Στον τύπο, J1 είναι ένα κενό κελί δίπλα στο K1, βεβαιωθείτε ότι το κελί είναι κενό και "--επιλέγω--"είναι η προεπιλεγμένη τιμή που θέλετε να δείξετε και μπορείτε να τις αλλάξετε όπως χρειάζεστε.

5. Στη συνέχεια, κρατήστε επιλεγμένο το κελί της αναπτυσσόμενης λίστας και κάντε κλικ στο ημερομηνία > επικύρωση δεδομένων να δείξω επικύρωση δεδομένων διαλόγου ξανά και μεταβείτε στο Ειδοποίηση σφάλματος καρτέλα και ελέγξτε Εμφάνιση ειδοποίησης σφάλματος μετά την εισαγωγή μη έγκυρων δεδομένων επιλογή πίσω. Δείτε το στιγμιότυπο οθόνης:
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 6

7. κλικ OK, τώρα προτού οι χρήστες επιλέξουν τιμές από την αναπτυσσόμενη λίστα, υπάρχει μια προεπιλεγμένη τιμή που εμφανίζεται στο καθορισμένο κελί με την αναπτυσσόμενη λίστα.
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 7

Σημείωση: Ενώ μια τιμή επιλέγεται από την αναπτυσσόμενη λίστα, η προεπιλεγμένη τιμή εξαφανίζεται.
doc show προεπιλεγμένη αναπτυσσόμενη λίστα τιμών 8


Τα καλύτερα εργαλεία παραγωγικότητας γραφείου

🤖 Kutools AI Aide: Επανάσταση στην ανάλυση δεδομένων με βάση: Ευφυής Εκτέλεση   |  Δημιουργία κώδικα  |  Δημιουργία προσαρμοσμένων τύπων  |  Αναλύστε δεδομένα και δημιουργήστε γραφήματα  |  Επίκληση Λειτουργιών Kutools...
Δημοφιλή χαρακτηριστικά: Εύρεση, επισήμανση ή αναγνώριση διπλότυπων   |  Διαγραφή κενών γραμμών   |  Συνδυάστε στήλες ή κελιά χωρίς απώλεια δεδομένων   |   Γύρος χωρίς φόρμουλα ...
Σούπερ Αναζήτηση: VLookup πολλαπλών κριτηρίων    VLookup πολλαπλών τιμών  |   VLookup σε πολλά φύλλα   |   Ασαφής αναζήτηση ....
Σύνθετη αναπτυσσόμενη λίστα: Γρήγορη δημιουργία αναπτυσσόμενης λίστας   |  Εξαρτημένη αναπτυσσόμενη λίστα   |  Πολλαπλή αναπτυσσόμενη λίστα ....
Διαχειριστής στήλης: Προσθέστε έναν συγκεκριμένο αριθμό στηλών  |  Μετακίνηση στηλών  |  Εναλλαγή κατάστασης ορατότητας κρυφών στηλών  |  Συγκρίνετε εύρη και στήλες ...
Επιλεγμένα Χαρακτηριστικά: Εστίαση πλέγματος   |  Προβολή σχεδίου   |   Μεγάλη Formula Bar    Διαχείριση βιβλίου εργασίας & φύλλου   |  Βιβλιοθήκη πόρων (Αυτόματο κείμενο)   |  Επιλογή ημερομηνίας   |  Συνδυάστε φύλλα εργασίας   |  Κρυπτογράφηση/Αποκρυπτογράφηση κελιών    Αποστολή email ανά λίστα   |  Σούπερ φίλτρο   |   Ειδικό φίλτρο (φίλτρο με έντονη γραφή/πλάγια γραφή/διαγραφή...) ...
Κορυφαία 15 σύνολα εργαλείων12 Κείμενο Εργαλεία (Προσθήκη κειμένου, Κατάργηση χαρακτήρων, ...)   |   50 + Διάγραμμα Τύποι (Gantt διάγραμμα, ...)   |   40+ Πρακτικό ΜΑΘΗΜΑΤΙΚΟΙ τυποι (Υπολογίστε την ηλικία με βάση τα γενέθλια, ...)   |   19 Εισαγωγή Εργαλεία (Εισαγωγή κωδικού QR, Εισαγωγή εικόνας από το μονοπάτι, ...)   |   12 Μετατροπή Εργαλεία (Αριθμοί σε λέξεις, Μετατροπή Συναλλάγματος, ...)   |   7 Συγχώνευση & διαχωρισμός Εργαλεία (Σύνθετες σειρές συνδυασμού, Διαίρεση κελιών, ...)   |   ... κι αλλα

Αυξήστε τις δεξιότητές σας στο Excel με τα Kutools για Excel και απολαύστε την αποτελεσματικότητα όπως ποτέ πριν. Το Kutools για Excel προσφέρει πάνω από 300 προηγμένες δυνατότητες για την ενίσχυση της παραγωγικότητας και την εξοικονόμηση χρόνου.  Κάντε κλικ εδώ για να αποκτήσετε τη δυνατότητα που χρειάζεστε περισσότερο...

Περιγραφή


Το Office Tab φέρνει τη διεπαφή με καρτέλες στο Office και κάνει την εργασία σας πολύ πιο εύκολη

  • Ενεργοποίηση επεξεργασίας και ανάγνωσης καρτελών σε Word, Excel, PowerPoint, Publisher, 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