Skip i'r prif gynnwys

 Sut i gymhwyso dilysu data lluosog mewn un cell yn nhaflen waith Excel?

Yn nhaflen waith Excel, gallai cymhwyso un dilysiad data i gell fod yn gyffredin i ni, ond, a ydych erioed wedi ceisio defnyddio dilysiad data lluosog i mewn i un gell? Yr erthygl hon, byddaf yn siarad am rai enghreifftiau gwahanol ar gyfer datrys y dasg hon yn Excel.

Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 1)

Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 2)

Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 3)


Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 1)

Er enghraifft, rwyf am osod dilysiad data i gelloedd gyda'r meini prawf hyn: os yw rhif wedi'i nodi, rhaid iddo fod yn llai na 100, os cofnodir testun, rhaid iddo fod yn y rhestr o D2 i D7 fel y dangosir y llun a ganlyn:

1. Dewiswch y celloedd rydych chi am gymhwyso dilysu data lluosog, yna cliciwch Dyddiad > Dilysu Data > Dilysu Data, gweler y screenshot:

2. Yn y Dilysu Data blwch deialog, o dan y Gosodiadau tab, gwnewch y gweithrediadau canlynol:

(1.) Dewis Custom oddi wrth y Caniatáu rhestr ostwng;

(2.) Rhowch y fformiwla hon: =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) i mewn i'r Fformiwla blwch testun.

Nodyn: Yn y fformiwla uchod, A2 yw'r gell rydych chi am gymhwyso'r dilysiad data, C2 ac D2: D7 yw'r meini prawf y mae angen i chi gymhwyso'r dilysiad data yn seiliedig arnynt.

3. Yna cliciwch OKo hyn ymlaen, dim ond y gwerthoedd sy'n cyfateb i'r meini prawf y gellir eu rhoi yn y celloedd, os na, bydd blwch annog rhybuddion yn galw allan i'ch atgoffa, gweler y screenshot:


Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 2)

Yn yr enghraifft hon, ni fyddaf ond yn caniatáu'r testun “Kutools for Excel” neu gellir nodi'r dyddiad rhwng 12/1/2017 a 12/31/2017 yn y celloedd penodol fel y dangosir y sgrinlun isod. I ddatrys y swydd hon, gwnewch fel hyn:

1. Ewch i Dilysu Data blwch deialog, ac yn y blwch deialog, gwnewch y gweithrediadau canlynol:

(1.) Cliciwch Gosodiadau tab;

(2.) Dewis Custom opsiwn gan y Caniatáu rhestr ostwng;

(3.) Teipiwch y fformiwla hon: =OR(A2=$C$2,AND(A2>=DATE(2017,12,1), A2<=DATE(2017,12,31))) i mewn i'r Fformiwla blwch testun.

Nodyn: Yn y fformiwla uchod, A2 yw'r gell rydych chi am gymhwyso'r dilysiad data, C2, 2017,12,1 ac 2017,12,31 yw'r meini prawf y mae angen i chi gymhwyso'r dilysiad data yn seiliedig arnynt.

2. Yna cliciwch OK botwm, nawr, dim ond y gwerthoedd sy'n cyfateb i'r meini prawf y gellir caniatáu eu teipio i mewn, bydd eraill yn cael eu cyfyngu fel y llun a ganlyn a ddangosir:


Cymhwyso dilysiad data lluosog mewn un cell (Enghraifft 3)

Y drydedd enghraifft, rwyf am i'r llinyn testun gael ei ddechrau gyda “KTE” neu “www”, ac os yw'n dechrau gyda “KTE”, dim ond 6 nod y gellir eu caniatáu; os yw'n dechrau gyda “www”, dim ond 10 nod y gellir eu caniatáu, gweler y screenshot:

Gall y fformiwla ganlynol yn y Dilysu Data eich helpu i ddelio ag ef.

1. Ewch i'r Dilysu Data blwch deialog, yn y dialog, gwnewch y gweithrediadau canlynol:

(1.) Cliciwch Gosodiadau tab;

(2.) Dewis Custom opsiwn gan y Caniatáu rhestr ostwng;

(3.) Teipiwch y fformiwla hon: =OR(AND(LEFT(A2,3)="KTE",LEN(A2)=6),AND(LEFT(A2,3)="www",LEN(A2)=10)) i mewn i'r Fformiwla blwch testun.

Nodyn: Yn y fformiwla uchod, A2 yw'r gell rydych chi am gymhwyso'r dilysiad data, a gallwch chi newid y meini prawf yn y fformiwla i'ch un chi.

2. Yna cliciwch OK botwm, ac yn awr, dim ond y gwerthoedd testun sy'n cyfateb i'r meini prawf a nodwyd gennych y caniateir eu nodi, gweler y screenshot:

Nodyn: Efallai bod angen meini prawf dilysu data gwahanol eraill i'w defnyddio, gallwch greu eich fformiwlâu eich hun ar gyfer gwahanol feini prawf fel y dymunwch.

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn 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!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,
I am capturing department (10 departments), rating (5,4,3,2 & 1)and reward type criteria (X, Y and Z) of which i calculate the overall callibration based on certain %. Eg. i have 10 departments having each department 15-20 employees. Now i need a formula wherein in the table against the particular department, lets say department1 to populate the % of employees (only with rating 5 and criteria X) against the total employee of (criteria X and Z).
This comment was minimized by the moderator on the site
I have data in two different columns and i have to apply this with two different criteria. For example, first criteria shows result if a particular cell contains a text "Highlighter" and second criteria show when the cell contain text "Pointer".
Highlighter test results are different than the pointer results and we make separate validation of both data. Is this possible to extract the validation of each criteria in a single cell with no overlapping?
This comment was minimized by the moderator on the site
Hey I want a parent child relationship sort of multiple drop down lists.
For example, if in column one some selects 'a' among the list of a, b & c
Then in the second column the child category of 'a' which is x, y & z should appear
How can that be done?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Team, I failed to build example no.1. I copied and pasted the formula:  =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1) and failed. Where is the bug ? Can you please assist ? THX a lot.
This comment was minimized by the moderator on the site
Hello Frank,
Glad to help. The reason why the data validation failed is that you probably didn't choose the data validation cell range. Please select the cell range first (say A2:A10), then click Data > Data Validation > Data Validation to input the formula =OR(A2<$C$2,COUNTIF($D$2:$D$7,A2)=1). Please see the screenshots I uploaded here. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
How can I apply a data validation to multiple columns?
This comment was minimized by the moderator on the site
Hello Fabian,To apple a data validation to multiple columns, the trick is almost identical to the ways we mentioned above. The most important thing is that you select the columns first, then you can set up the rules in the Data Validation dialog box. Plesase have a try. Any question, please feel free to contact us. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
i am confuse
This comment was minimized by the moderator on the site
Hi,
I need to validate multiple columns before entering a value into cell. please find my requirement below,
I have 3 columns for example,

A1-Total Credit limit (Mandatory field)
Should have a minimum amount of 100 and multiples of 100:
=AND(ISNUMBER(A1),A1>=100, MOD(A1,100)=0) - Solved!
B1- Weekly Credit limit (Optional filed)
User should be able to input a value only when A1 is filled, Should not be greater than A1, Minimum amount 100 and multiples of 100
=AND(A1<>"",ISNUMBER(B1),B1<=A1, MOD(B1,100=0) - Solved!
C1-Daily Credit limit (Optional field)
User should be able to input a value only when A1 is filled, Should not be greater than A1&B1, Minimum amount 100 and multiples of 100

I need to add following validation, Please Help
I have to check if A1 is filled or not, then C1 shouldn't be greater than A1 and C1 min value should be 100 and multiples of 100 - I have answer to this
How can add a validation on B1 because B1 is optional it can have value and cannot. so if there's a value I have to make sure C1 is not greater than B1 else ignore B1?

How can i have this in data validation?

Thanks once again for the help
This comment was minimized by the moderator on the site
how can I add another Data validation function with this list function. for example I added a list of "yes" and "no". but I also want to add an OR function to this so that if "yes" is selected in one column then others only have to be "no".
This comment was minimized by the moderator on the site
Is it possible to apply data validation on the calcuated column attribute?
This comment was minimized by the moderator on the site
i'm looking for the ability to have a data validation which allows the user to select multiple choices. I.e. the list pops up and user can select Apple, grape, and/or banana. If they select all three, it shows in cell as: "apple, grade, banana". if only 1: "grape" etc... any ideas?
This comment was minimized by the moderator on the site
Hello, jeffe,
Maybe the below article can help you to deal with your problem, please check it:
https://www.extendoffice.com/documents/excel/2448-excel-drop-down-list-multiple-selection.html
This comment was minimized by the moderator on the site
Any idea how to have multiple data validation and a drop down. Drop down uses "List" and this example uses "Custom". Basically if the correct data is present in another column, I want the drop down to be able to be selected to input data. Otherwise if the dropdown is selected the error message appears.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations