Note: The other languages of the website are Google-translated. Back to English
Mewngofnodi  \/ 
x
or
x
Cofrestru  \/ 
x

or

Sut i osod / dangos gwerth a ddewiswyd ar gyfer y gwymplen yn Excel?

Yn ddiofyn, mae'r gwymplen gyffredinol a grëwyd gennych yn cael ei dangos yn wag cyn i chi ddewis un gwerth o'r rhestr, ond mewn rhai achosion, efallai yr hoffech ddangos neu osod gwerth a ddewiswyd / gwerth diofyn a ddewiswyd ar gyfer y gwymplen cyn i ddefnyddwyr ddewis un o y rhestr fel screenshot bellow a ddangosir. Yma gall yr erthygl hon eich helpu chi.


swigen dde glas saeth Gosod gwerth diofyn (gwerth a ddewiswyd) ar gyfer y gwymplen gyda'r fformiwla

I osod gwerth diofyn ar gyfer y gwymplen, mae angen i chi greu rhestr ostwng gyffredinol yn gyntaf, ac yna defnyddio fformiwla.

1. Creu rhestr ostwng. Dewiswch gell neu ystod yr ydych am roi'r rhestr ostwng, dyma K1, a chlicio Dyddiad > Dilysu Data. Gweler y screenshot:
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 2

2. Yna yn y Dilysu Data deialog, dan Gosodiadau tab, dewiswch rhestr o Caniatáu rhestrwch, ac yna dewiswch y gwerth rydych chi am ei ddangos yn y gwymplen i ffynhonnell blwch testun. Gweler y screenshot:
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 3

3. Yna cliciwch Rhybudd Gwall tab yn y Dilysu Data deialog, a dad-wirio Dangos rhybudd gwall ar ôl mewnbynnu data annilys opsiwn. gweler y screenshot:
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 4

4. Cliciwch OK i gau'r ymgom, ac ewch i'r gwymplen, a theipio'r fformiwla hon = IF (J1 = "", "--select--") i mewn iddo, a gwasgwch Rhowch allwedd. Gweler y screenshot:
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 5

Tip: Yn y fformiwla, J1 yn gell wag wrth ymyl y K1, gwnewch yn siŵr bod y gell yn wag, a "--select--"yw'r gwerth a ddewiswyd yr ydych am ei ddangos, a gallwch eu newid yn ôl yr angen.

5. Yna cadwch y gell gwymplen wedi'i dewis, a chlicio Dyddiad > Dilysu Data i ddangos Dilysu Data deialog eto, ac ewch i Rhybudd Gwall tab, a gwirio Dangos rhybudd gwall ar ôl mewnbynnu data annilys opsiwn yn ôl. Gweler y screenshot:
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 6

7. Cliciwch OK, nawr cyn i ddefnyddwyr ddewis gwerthoedd o'r gwymplen, dangosir gwerth diofyn yn y gell benodol gyda gwymplen.
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 7

Nodyn: Tra bod gwerth yn cael ei ddewis o'r gwymplen, mae'r gwerth diofyn yn diflannu.
doc yn dangos rhestr ostwng gwerth a ddewiswyd ymlaen llaw 8



Yr Offer Cynhyrchedd Swyddfa Gorau

Mae Kutools for Excel yn Datrys y rhan fwyaf o'ch Problemau, ac yn Cynyddu Eich Cynhyrchedd 80%

  • Ailddefnyddio: Mewnosod yn gyflym fformwlâu cymhleth, siartiau ac unrhyw beth rydych chi wedi'i ddefnyddio o'r blaen; Amgryptio Celloedd gyda chyfrinair; Creu Rhestr Bostio ac anfon e-byst ...
  • Bar Fformiwla Gwych (golygu llinellau lluosog o destun a fformiwla yn hawdd); Cynllun Darllen (darllen a golygu nifer fawr o gelloedd yn hawdd); Gludo i'r Ystod Hidlo...
  • Uno Celloedd / Rhesi / Colofnau heb golli Data; Cynnwys Celloedd Hollt; Cyfuno Rhesi / Colofnau Dyblyg... Atal Celloedd Dyblyg; Cymharwch y Meysydd...
  • Dewiswch Dyblyg neu Unigryw Rhesi; Dewiswch Blank Rows (mae pob cell yn wag); Darganfyddiad Gwych a Darganfyddiad Niwlog mewn Llawer o Lyfrau Gwaith; Dewis ar Hap ...
  • Copi Union Celloedd Lluosog heb newid cyfeirnod fformiwla; Auto Creu Cyfeiriadau i Daflenni Lluosog; Mewnosod Bwledi, Blychau Gwirio a mwy ...
  • Testun Detholiad, Ychwanegu Testun, Tynnu yn ôl Swydd, Tynnwch y Gofod; Creu ac Argraffu Subtotals Paging; Trosi rhwng Cynnwys a Sylwadau Celloedd...
  • Hidlo Super (arbed a chymhwyso cynlluniau hidlo i ddalenni eraill); Trefnu Uwch yn ôl mis / wythnos / dydd, amlder a mwy; Hidlo Arbennig gan feiddgar, italig ...
  • Cyfuno Llyfrau Gwaith a Thaflenni Gwaith; Uno Tablau yn seiliedig ar golofnau allweddol; Rhannwch Ddata yn Daflenni Lluosog; Trosi Swp xls, xlsx a PDF...
  • Mwy na 300 o nodweddion pwerus. Yn cefnogi Swyddfa / Excel 2007-2019 a 365. Yn cefnogi pob iaith. Defnydd hawdd yn eich menter neu sefydliad. Nodweddion llawn treial am ddim 30 diwrnod. Gwarant arian yn ôl 60 diwrnod.
tab kte 201905

Mae Tab Office yn Dod â rhyngwyneb Tabbed i'r Swyddfa, a Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
gwaelod 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 · 20 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.
    Asad · 21 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 soluition 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.