Skip i'r prif gynnwys

Sut i gyfyngu hyd nodau mewn cell Excel?

Gall cell yn Excel ddal uchafswm o 32,767 o nodau, gyda dim ond 1,024 o nodau wedi'u harddangos a phob un o'r 32,767 i'w gweld yn y bar Fformiwla. Fodd bynnag, efallai y bydd angen i chi gyfyngu ar fewnbwn defnyddwyr weithiau i nifer penodol o nodau mewn cell, megis ei gyfyngu i 10 nod. Bydd y tiwtorial hwn yn dangos i chi sut i gyfyngu'n effeithiol ar nifer y cymeriadau mewn cell Excel.


Cyfyngu ar nifer y nodau mewn cell

Mae'r adran hon yn ymdrin â'r camau i gyfyngu ar nifer y nodau y gellir eu rhoi i mewn i gell neu ystod benodol o gelloedd.

  1. Dewiswch yr ystod celloedd lle rydych chi am orfodi'r terfyn hyd nod.
  2. Cliciwch Dilysu Data yn y Offer Data grwp o dan y Dyddiad tab.
  3. Yn y Dilysu Data blwch deialog, gosodwch y rheol ddilysu fel a ganlyn:
    1. O'r Caniatáu: gwymplen, dewiswch Hyd Testun.
    2. O'r Data: cwymplen, dewiswch y meini prawf yn seiliedig ar eich gofynion:
      1. Dewiswch y yn hafal i opsiwn ar gyfer cyfrif nodau union, ee, 10 nod.
      2. dewiswch yn llai na neu'n hafal i am uchafswm nod, ee, hyd at 10 nod.
      3. Dewis am fwy na am fwy na chyfrif penodol, ee, mwy na 10 nod.
    3. Yn y Uchafswm/Isafswm/Hyd: blwch, mewnbwn y nifer a ddymunir ar gyfer y terfyn cymeriad yn ôl eich anghenion.
  4. Cliciwch OK.

Nawr, bydd defnyddwyr yn cael eu cyfyngu i fewnbynnu testun o fewn y terfynau nodau gosod yn y celloedd a ddewiswyd.

Yn hawdd eu hatal rhag teipio cymeriadau, rhifau neu lythrennau arbennig mewn cell / detholiad yn Excel

Gyda Kutools ar gyfer Excel's Atal Teipio nodwedd, gallwch yn hawdd gyfyngu ar fathau o nodau mewn celloedd Excel neu ddetholiadau.
A. Mynediad bloc o nodau arbennig fel *, !, ac ati;
B. Cyfyngu ar deipio nodau penodol, megis rhifau neu lythrennau penodol;
C. Dylech ond caniatáu teipio nodau penodol, fel rhifau neu lythrennau, yn ôl yr angen.

Gosod Neges Mewnbwn ar gyfer hysbysu terfyn nodau

Yma, byddwn yn esbonio sut i sefydlu negeseuon mewnbwn sy'n hysbysu defnyddwyr am y cyfyngiadau cymeriad cyn iddynt ddechrau teipio fel y sgrinlun a ddangosir isod:

  1. Dewiswch y celloedd lle byddwch yn ychwanegu neges mewnbwn.
  2. Cliciwch Dilysu Data yn y Offer Data grwp o dan y Dyddiad tab.
  3. Yn y Dilysu Data blwch deialog, dewiswch y Neges Mewnbwn tab, a gwnewch fel a ganlyn:
    1. Gwiriwch y Dangos neges mewnbwn pan ddewisir cell opsiwn.
    2. Rhowch deitl y neges a chynnwys y neges.
  4. Cliciwch OK.

Nawr, pan fyddwch chi'n clicio ar gell lle mae'r neges fewnbwn wedi'i ffurfweddu, bydd tip offer yn ymddangos, yn dangos teitl y neges a'r cynnwys a roesoch yn gynharach.


Actifadu Rhybudd Gwall ar gyfer torri terfyn nodau

Bydd yr adran hon yn eich arwain trwy ffurfweddu rhybuddion gwall yn Excel, wedi'u cynllunio i hysbysu defnyddwyr ar unwaith pan nad yw'r data a gofnodwyd yn cwrdd â'r terfyn nodau penodedig. Gweler y sgrinlun:

  1. Dewiswch y celloedd lle rydych chi am actifadu rhybudd gwall ar gyfer achosion o fewnbynnu data annilys.
  2. Cliciwch Dilysu Data yn y Offer Data grwp o dan y Dyddiad tab.
  3. Yn y Dilysu Data blwch deialog, dewiswch y Rhybudd Gwall tab, a gwnewch fel a ganlyn:
    1. Gwiriwch y Dangos rhybudd gwall ar ôl i ddata annilys gael ei nodi opsiwn.
    2. dewiswch y rhybudd opsiwn gan y Arddull: blwch i lawr.
    3. Rhowch deitl y rhybudd a'r neges gwall.
  4. Cliciwch OK.

O hyn ymlaen, os yw'r testun a gofnodwyd mewn cell yn annilys, fel bod yn fwy na 10 nod, bydd blwch deialog rhybudd yn ymddangos, yn dangos teitl a neges y rhybudd rhagosodedig.


Demo: Cyfyngu hyd nod mewn celloedd gyda neges fewnbwn a rhybudd rhybudd


Kutools ar gyfer Excel: Dros 300 o offer defnyddiol ar flaenau eich bysedd! Dechreuwch eich treial am ddim 30 diwrnod heb unrhyw gyfyngiadau nodwedd heddiw. Lawrlwytho Nawr!

Un clic i atal rhag mewnbynnu data dyblyg mewn un golofn / rhestr

Kutools ar gyfer Excel's arloesol Atal Dyblyg Mae cyfleustodau'n rhoi cyfleustra i ddefnyddwyr Excel atal cofnodion dyblyg mewn rhestr neu golofn yn ddiymdrech. Gydag un clic yn unig, mae'r offeryn pwerus hwn yn sicrhau cywirdeb a chywirdeb data yn eich taenlenni.

Erthyglau perthnasol:

Sut i gyfyngu ar gofnodion gwerth celloedd yn Excel?

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 (54)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you!
This comment was minimized by the moderator on the site
why date and number is allowed at text length?
This comment was minimized by the moderator on the site
Hi there, numbers are also characters. So if you set the max length less than 10 characters, as long as you don't input 10 or more number characters, you will be good.

Amanda
This comment was minimized by the moderator on the site
This is almost the exact solution I need but still need a bit more help. What I'm trying to achieve is to set a cell to have a max of 40 characters but not stop the user from entering all the data he needs, instead i would like anything over the 40 character limit to be populated in a second designated cell. Is this even a possibility? Thank you everyone in advance for any assistance provided.
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
I saw Tomas question about putting an exact limit of 10 spaces and your formula =A1&REPT(" ",10-LEN(A1)) however I need to take it a step further. I want to take three separate fields that I have set their spaces to exactly 10 and concatenate them with their "spaces" intact. Also, if I don't limit what they enter and they enter MORE than 10 characters in one of the cells I want to take ONLY the first 10. So as an example, I want to give them three cells they can enter information in. I don't want to limit what they input BUT, I want to concatenate these three fields and pick up 10 characters from each one. So if the first cell has 4 characters, in my concatenate formula I want it to pick up the 4 characters PLUS 6 spaces. If the second field has 20 characters, I want to only pick up the first 10 characters and the same thing for the third cell. We are trying to get to a uniform 30 characters of description but some names are longer or shorter than others. We want this to break evenly with 10 characters per cell. Hopefully this is making sense.
This comment was minimized by the moderator on the site
Hi, do you know how to put exact length limit 10 and when put abc i want from excel to put 8 space?
I want to set a cell to 10 character, when input 2 character then will auto fill up with 8 space after. if the cell is blank, then return with 10 space. this is for setting a excel file for user input and save as txt or cvs file for import to other software.
This comment was minimized by the moderator on the site
Hi Tomas,
You can use a formula to limit the text length: =A1 & REPT(" ",10-LEN(A1))
This comment was minimized by the moderator on the site
I want to limit the quantity of a cell depending on the category of another one,

For example if I input in A1 "Ok" in B1 must be limit to 10 characters
but if A1= "NG", B1 must be limit to 12 characters.
This comment was minimized by the moderator on the site
[quote]Hi, do you know how to put exact length limit 10 and when put abc i want from excel to put 8 space?By Ivan[/quote] I want to set a cell to 10 character, when input 2 character then will auto fill up with 8 space after. if the cell is blank, then return with 10 space. this is for setting a excel file for user input and save as txt or cvs file for import to other software
This comment was minimized by the moderator on the site
Hi, I have a attendance sheet. from 1 to 31. I put "P" on each cell if person is present. Now I want that how many times "P" is continuing present in cell. As as example - I have put "P" from 1 to 6 , then from 8th to 9th put P, and 10th is gap. then from 11th its continue to 18th. ... now i want how many times P is continue 6 time . PPPPPP PP PPPPPPPP Manually the answer is : 2(1to6 = 1,11to18=1) If you have any formula to count this it will be a great help.
This comment was minimized by the moderator on the site
=COUNTIF(B2:B17,">""") this formula will ignore empty cells but will count cells with data in i.e. P
This comment was minimized by the moderator on the site
Hi. I want out put txt file and no spaces between cell values. Like 3 cells with First Name, Middle and last. Entered Shawn G Goldman as SHAWNGGOLDMAN
This comment was minimized by the moderator on the site
Hi I want few things in a cell. I only want numbers in cell. I want to limit to 10 characters. I want to remove decimal like 15.00 to 1500. I want to indent to right. Also to add 0's to left to make it 10 characters .like 15.00 to 0000001500
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations