Note: The other languages of the website are Google-translated. Back to English
Logáil isteach  \/ 
x
or
x
Cláraigh  \/ 
x

or

Conas luach réamhroghnaithe don liosta anuas in Excel a shocrú / a thaispeáint?

De réir réamhshocraithe, taispeántar an liosta anuas ginearálta a chruthaigh tú bán sula roghnaíonn tú luach amháin ón liosta, ach i gcásanna áirithe, b’fhéidir gur mhaith leat luach réamhroghnaithe / luach réamhshocraithe a thaispeáint nó a shocrú don liosta anuas sula roghnóidh úsáideoirí ceann as an liosta mar a thaispeántar pictiúr bellow. Anseo is féidir leis an alt seo cabhrú leat.


mboilgeog cheart gorm saighead Socraigh luach réamhshocraithe (luach réamhroghnaithe) don liosta anuas leis an bhfoirmle

Chun luach réamhshocraithe a shocrú don liosta anuas, ní mór duit liosta anuas ginearálta a chruthú ar dtús, agus foirmle a úsáid ansin.

1. Cruthaigh liosta anuas. Roghnaigh cill nó raon a theastaíonn uait an liosta anuas a chur, seo K1, agus cliceáil Dáta > Bailíochtú Sonraí. Féach an pictiúr:
taispeánann doc liosta anuas luach réamhroghnaithe 2

2. Ansin sa Bailíochtú Sonraí dialóg, faoi Socruithe tab, roghnaigh liosta ó Ceadaigh liosta, agus ansin roghnaigh an luach is mian leat a thaispeáint sa liosta anuas go Foinse Bosca téacs. Féach an pictiúr:
taispeánann doc liosta anuas luach réamhroghnaithe 3

3. Ansin cliceáil Foláireamh Earráide tab sa Bailíochtú Sonraí dialóg, agus díthiceáil Taispeáin foláireamh earráide tar éis sonraí neamhbhailí a iontráil rogha. féach ar an scáileán:
taispeánann doc liosta anuas luach réamhroghnaithe 4

4. cliceáil OK chun an dialóg a dhúnadh, agus téigh go dtí an liosta anuas, agus clóscríobh an fhoirmle seo = IF (J1 = "", "--select--") isteach ann, agus brúigh Iontráil eochair. Féach an pictiúr:
taispeánann doc liosta anuas luach réamhroghnaithe 5

Leid: San fhoirmle, J1 is ceall bán in aice leis an K1, déan cinnte go bhfuil an cill bán, agus "--select--"an luach réamhroghnaithe is mian leat a thaispeáint, agus is féidir leat iad a athrú de réir mar is gá duit.

5. Ansin coinnigh an cill liosta anuas roghnaithe, agus cliceáil Dáta > Bailíochtú Sonraí Taispeáin Bailíochtú Sonraí dialóg arís, agus téigh go Foláireamh Earráide cluaisín, agus seiceáil Taispeáin foláireamh earráide tar éis sonraí neamhbhailí a iontráil rogha ar ais. Féach an pictiúr:
taispeánann doc liosta anuas luach réamhroghnaithe 6

7. cliceáil OK, anois sula roghnaíonn úsáideoirí luachanna ón liosta anuas, taispeántar luach réamhshocraithe sa chill shonraithe le liosta anuas.
taispeánann doc liosta anuas luach réamhroghnaithe 7

Nóta: Cé go roghnaítear luach ón liosta anuas, imíonn an luach réamhshocraithe.
taispeánann doc liosta anuas luach réamhroghnaithe 8



Na hUirlisí Táirgiúlachta Oifige is Fearr

Réitíonn Kutools for Excel an chuid is mó de do chuid Fadhbanna, agus Méadaíonn sé do Tháirgiúlacht 80%

  • Athúsáid: Cuir isteach go tapa foirmlí casta, cairteacha agus aon rud a d'úsáid tú roimhe seo; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin gan Sonraí a chailleadh; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna / Colúin Dúblacha... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Níos mó ná 300 gné chumhachtach. Tacaíochtaí Office / Excel 2007-2019 agus 365. Tacaíonn sé le gach teanga. Imscaradh éasca i d’fhiontar nó d’eagraíocht. Gnéithe iomlána triail saor in aisce 30 lá. Ráthaíocht ar ais airgid 60 lá.
cluaisín kte 201905

Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
bun officetab
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.
    Asad Shah · 14 hours ago
    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.
  • 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.