Note: The other languages of the website are Google-translated. Back to English
Vpiši se  \/ 
x
or
x
Registracija  \/ 
x

or

Kako nastaviti / prikazati vnaprej izbrano vrednost za spustni seznam v Excelu?

Privzeto je splošni spustni seznam, ki ste ga ustvarili, prazen, preden izberete eno vrednost s seznama, v nekaterih primerih pa boste morda želeli prikazati ali nastaviti vnaprej izbrano vrednost / privzeto vrednost za spustni seznam, preden ga bodo uporabniki izbrali seznam kot spodaj prikazan posnetek zaslona. Tu vam lahko pomaga ta članek.


puščica modri desni mehurček Nastavite privzeto vrednost (vnaprej izbrana vrednost) za spustni seznam s formulo

Če želite nastaviti privzeto vrednost za spustni seznam, morate najprej ustvariti splošni spustni seznam in nato uporabiti formulo.

1. Ustvarite spustni seznam. Izberite celico ali obseg, v katerega želite umestiti spustni seznam, tukaj je K1, in kliknite datum > Preverjanje podatkov. Oglejte si posnetek zaslona:
doc prikaže spustni seznam vnaprej izbranih vrednosti 2

2. Nato v Preverjanje podatkov pogovorno okno, pod Nastavitve jeziček, izberite Seznam iz Dovoli in izberite vrednost, ki jo želite prikazati na spustnem seznamu vir besedilno polje. Oglejte si posnetek zaslona:
doc prikaže spustni seznam vnaprej izbranih vrednosti 3

3. Nato kliknite Opozorilo o napaki Jeziček na Preverjanje podatkov in počistite polje Pokaži opozorilo o napaki po vnosu neveljavnih podatkov možnost. glej posnetek zaslona:
doc prikaže spustni seznam vnaprej izbranih vrednosti 4

4. klik OK , da zaprete pogovorno okno, pojdite na spustni seznam in vnesite to formulo = IF (J1 = "", "--select--") vanj in pritisnite Vnesite tipko. Oglejte si posnetek zaslona:
doc prikaže spustni seznam vnaprej izbranih vrednosti 5

Nasvet: V formuli: J1 je prazna celica poleg K1, poskrbite, da je celica prazna, in "--izberi--"je vnaprej izbrana vrednost, ki jo želite prikazati, in jih lahko spremenite po potrebi.

5. Nato obdržite celico spustnega seznama in kliknite datum > Preverjanje podatkov pokazati Preverjanje podatkov znova pogovorno okno in pojdite na Opozorilo o napaki in preverite Pokaži opozorilo o napaki po vnosu neveljavnih podatkov možnost nazaj. Oglejte si posnetek zaslona:
doc prikaže spustni seznam vnaprej izbranih vrednosti 6

7. klik OK, zdaj preden uporabniki izberejo vrednosti s spustnega seznama, je v navedeni celici s spustnim seznamom prikazana privzeta vrednost.
doc prikaže spustni seznam vnaprej izbranih vrednosti 7

Opomba: Medtem ko je vrednost izbrana s spustnega seznama, privzeta vrednost izgine.
doc prikaže spustni seznam vnaprej izbranih vrednosti 8



Najboljša orodja za pisarniško produktivnost

Kutools za Excel rešuje večino vaših težav in poveča produktivnost za 80%

  • Ponovna uporaba: Hitro vstavite zapletene formule, grafikoni in vse, kar ste že uporabljali; Šifriraj celice z geslom; Ustvari poštni seznam in pošiljanje e-pošte ...
  • Vrstica Super Formula (enostavno urejanje več vrstic besedila in formule); Bralna postavitev (enostavno branje in urejanje velikega števila celic); Prilepite v filtrirani obseg...
  • Združi celice / vrstice / stolpce brez izgube podatkov; Vsebina razdeljenih celic; Združi podvojene vrstice / stolpce... prepreči podvojene celice; Primerjaj obsege...
  • Izberite Duplicate ali Unique Vrstice; Izberite prazne vrstice (vse celice so prazne); Super Find in Fuzzy Find v mnogih delovnih zvezkih; Naključna izbira ...
  • Natančna kopija Več celic brez spreminjanja sklica formule; Samodejno ustvarjanje referenc na več listov; Vstavi oznake, Potrditvena polja in še več ...
  • Izvleček besedila, Dodaj besedilo, Odstrani po položaju, Odstrani presledek; Ustvari in natisni vmesne seštevke strani Pretvarjanje med vsebino celic in komentarji...
  • Super filter (shranite in uporabite sheme filtrov za druge liste); Napredno razvrščanje glede na mesec / teden / dan, pogostost in drugo; Poseben filter s krepko, ležeče ...
  • Združite delovne zvezke in delovne liste; Spoji tabele na podlagi ključnih stolpcev; Razdelite podatke na več listov; Paketna pretvorba xls, xlsx in PDF...
  • Več kot 300 zmogljivih funkcij. Podpira Office / Excel 2007-2019 in 365. Podpira vse jezike. Preprosta namestitev v vašem podjetju ali organizaciji. Vse funkcije 30-dnevnega brezplačnega preskusa. 60-dnevno jamstvo za vračilo denarja.
zavihek kte 201905

Kartica Office prinaša vmesnik z zavihki v Office in poenostavi vaše delo

  • Omogočite urejanje in branje z zavihki v Wordu, Excelu, PowerPointu, Publisher, Access, Visio in Project.
  • Odprite in ustvarite več dokumentov v novih zavihkih istega okna in ne v novih oknih.
  • Poveča vašo produktivnost za 50% in vsak dan zmanjša na stotine klikov z miško!
dno pisarniške mize
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    miradek · 2 years ago
    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!
  • To post as a guest, your comment is unpublished.
    JStirfry · 2 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Justin · 2 years ago
    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
  • To post as a guest, your comment is unpublished.
    Dary · 4 years ago
    The idea is nice, but my problem is that if the dropdown value is deleted, it doesn't revert to the default.
    • To post as a guest, your comment is unpublished.
      zaid · 3 years ago
      I also have the same issue , please reply if you solved it
    • To post as a guest, your comment is unpublished.
      Scott · 4 years ago
      Exactly!!! I'm having the same issue, have you found a solution?
      • To post as a guest, your comment is unpublished.
        Alex · 3 years ago
        You can insert the function in that specific cell using VBA, make sure you call the insert function when workbook is opening.
        • To post as a guest, your comment is unpublished.
          Elizabeth Taylor · 2 years ago
          Only works if you speak VBA, not all of us code.