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

or

Hoe de tekenlengte in een cel in Excel te beperken?

Soms wilt u misschien het aantal tekens beperken dat een gebruiker in een cel kan invoeren. U wilt bijvoorbeeld beperken dat er maximaal 10 tekens in een cel kunnen worden ingevoerd. Deze zelfstudie toont u de details om tekens in cellen in Excel te beperken.


Beperk de lengte van tekens in een cel

1. Selecteer het bereik waarmee u datuminvoer wilt beperken met een opgegeven tekenlengte.

2. Klik op de Gegevensvalidatie functie in het Hulpmiddelen voor gegevens groep onder Data Tab.

3. Selecteer in het dialoogvenster Gegevensvalidatie het Tekstlengte item uit de Toestaan: vervolgkeuzelijst. Zie de volgende schermafbeelding:

4. In de Datum: vervolgkeuzelijst, je krijgt veel keuzes en selecteer er een, zie de volgende schermafbeelding:

(1) Als u wilt dat anderen alleen het exacte aantal tekens kunnen invoeren, bijvoorbeeld 10 tekens, selecteert u het gelijk aan item.
(2) Als u wilt dat het aantal ingevoerde tekens niet meer is dan 10, selecteert u de minder dan item.
(3) Als u wilt dat het aantal ingevoerde tekens niet minder is dan 10, selecteert u de groter dan item.

4. Voer het exacte aantal in dat u wilt beperken maximaal/Minimum/Lengte doos volgens uw behoeften.

5. Klikken OK.

Nu kunnen gebruikers alleen tekst invoeren met een beperkt aantal tekens in geselecteerde bereiken.

Voorkom eenvoudig dat u speciale tekens, cijfers of letters in een cel / selectie in Excel typt

Met Kutools voor Excel's Voorkom typen functie, kunt u eenvoudig tekentypes in een cel of selectie in Excel beperken. Gratis proefperiode van 30 dagen met volledige functionaliteit!
A. Voorkom dat u speciale tekens invoert, zoals *, !, enz.;
B. Voorkom het typen van bepaalde tekens, zoals cijfers of bepaalde letters;
C. Sta alleen toe om bepaalde karakters in te typen, zoals cijfers, letters, enz. Als je nodig hebt.
advertentie voorkomen dat tekens worden getypt

Stel Invoerbericht in voor beperking van de tekstlengte

De gegevensvalidatie stelt ons in staat om een ​​invoerbericht in te stellen voor beperking van de tekstlengte naast de geselecteerde cel, zoals onderstaand screenshot:

1. Schakel in het dialoogvenster Gegevensvalidatie over naar het Input Message Tab.

2. Controleer de Toon invoerbericht wanneer cel is geselecteerd optie.

3. Voer de berichttitel en berichtinhoud in.

4. Klikken OK.

Ga nu terug naar het werkblad en klik op een cel in het geselecteerde bereik met beperking van de tekstlengte, het toont een tip met de berichttitel en inhoud. Zie de volgende schermafbeelding:


Stel Error Alert in voor beperking van de tekstlengte

Een andere alternatieve manier om de gebruiker te vertellen dat de cel wordt beperkt door de tekstlengte, is door een foutwijziging in te stellen. De foutmelding wordt weergegeven nadat u ongeldige gegevens heeft ingevoerd. Zie screenshot:

1. Schakel in het dialoogvenster Gegevensvalidatie over naar het Foutmelding dialoog venster.

2. Controleer de Toon foutmelding nadat ongeldige gegevens zijn ingevoerd optie.

3. Selecteer de waarschuwing item uit de Stijl: vervolgkeuzelijst.

4. Voer de waarschuwingstitel en het waarschuwingsbericht in.

5. Klikken OK.

Als de tekst die u in een cel hebt ingevoerd ongeldig is, bijvoorbeeld meer dan 10 tekens, verschijnt er een waarschuwingsvenster met een vooraf ingestelde waarschuwingstitel en bericht. Zie de volgende schermafbeelding:


Demo: beperk de lengte van tekens in cellen met invoerbericht en waarschuwingswaarschuwing


Kutools for Excel bevat meer dan 300 handige tools voor Excel, gratis te proberen zonder beperking in 30 dagen. Download en gratis proef nu!

Eén klik om te voorkomen dat dubbele gegevens in een enkele kolom / lijst worden ingevoerd

In vergelijking met het één voor één instellen van gegevensvalidatie, Kutools voor Excel's Voorkom duplicatie hulpprogramma ondersteunt Excel-gebruikers om dubbele vermeldingen in een lijst of kolom met slechts één klik te voorkomen. Gratis proefperiode van 30 dagen met volledige functionaliteit!
advertentie voorkomen dat duplicaten worden getypt


Verwante Artikel:

Hoe celwaarde-invoer in Excel te beperken?


De beste tools voor kantoorproductiviteit

Kutools voor Excel lost de meeste van uw problemen op en verhoogt uw productiviteit met 80%

  • visfuik: Snel invoegen complexe formules, grafieken en alles wat je eerder hebt gebruikt; Versleutel cellen met wachtwoord; Maak een mailinglijst en stuur e-mails ...
  • Super Formula-balk (bewerk eenvoudig meerdere regels tekst en formule); Lay-out lezen (gemakkelijk grote aantallen cellen lezen en bewerken); Plakken in gefilterd bereik...
  • Voeg cellen / rijen / kolommen samen zonder gegevens te verliezen; Gespleten cellen inhoud; Combineer dubbele rijen / kolommen... Voorkom dubbele cellen; Vergelijk Ranges...
  • Selecteer Dupliceren of Uniek Rijen; Selecteer lege rijen (alle cellen zijn leeg); Super zoeken en fuzzy zoeken in veel werkboeken; Willekeurige selectie ...
  • Exacte kopie Meerdere cellen zonder de formuleverwijzing te wijzigen; Maak automatisch verwijzingen naar meerdere bladen; Plaats kogels, Selectievakjes en meer ...
  • Extraheer tekst, Tekst toevoegen, Verwijderen op positie, Ruimte verwijderen; Paging-subtotalen maken en afdrukken; Converteren tussen celinhoud en opmerkingen...
  • Super filter (bewaar en pas filterschema's toe op andere bladen); Geavanceerd sorteren per maand / week / dag, frequentie en meer; Speciaal filter door vet, cursief ...
  • Combineer werkmappen en werkbladen; Tabellen samenvoegen op basis van sleutelkolommen; Gegevens splitsen in meerdere bladen; Batch Converteer xls, xlsx en PDF...
  • Meer dan 300 krachtige functies. Ondersteunt Office / Excel 2007-2019 en 365. Ondersteunt alle talen. Eenvoudig te implementeren in uw onderneming of organisatie. Gratis proefperiode van 30 dagen met volledige functies. 60 dagen geld-terug-garantie.
kte tabblad 201905

Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert elke dag honderden muisklikken voor u!
officetab onderkant

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.
    JJ · 1 years ago
    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.
    • To post as a guest, your comment is unpublished.
      Guest · 1 years ago
      I found this information useful to resolve a similar issue that I am facing.

      https://support.microsoft.com/en-us/office/split-text-into-different-columns-with-the-convert-text-to-columns-wizard-30b14928-5550-41f5-97ca-7a3e9c363ed7
  • To post as a guest, your comment is unpublished.
    Michael · 1 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Tomas · 2 years ago
    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.
    • To post as a guest, your comment is unpublished.
      kellytte · 1 years ago
      Hi Tomas,
      You can use a formula to limit the text length: =A1 & REPT(" ",10-LEN(A1))
  • To post as a guest, your comment is unpublished.
    question · 3 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Eliza · 4 years ago
    [quote name="Ivan"]Hi, do you know how to put exact length limit 10 and when put abc i want from excel to put 8 space?[/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
  • To post as a guest, your comment is unpublished.
    ARNAB DEBNATH · 4 years ago
    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.
    • To post as a guest, your comment is unpublished.
      Paul · 4 years ago
      =COUNTIF(B2:B17,">""") this formula will ignore empty cells but will count cells with data in i.e. P
  • To post as a guest, your comment is unpublished.
    Shawn · 5 years ago
    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
  • To post as a guest, your comment is unpublished.
    Shawn · 5 years ago
    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
  • To post as a guest, your comment is unpublished.
    Praveen · 5 years ago
    Sir, How to set Cells with following Condition
    If one letter will enter go to first cell and 2nd letter automatically goto next cell. How we will set this. Help me.
  • To post as a guest, your comment is unpublished.
    Eric · 5 years ago
    Hello. Is it possible to stop when it reaches a certain character?
    For example, I want it to stop with a warning message when it exceeds 80 characters before I hit "enter."

    Thank you.
  • To post as a guest, your comment is unpublished.
    Viraf · 5 years ago
    Scenario Column width which can take 55 characters maximum, I have set up Data validation in Settings Text Length, Between, Minimum 0 and Maximum 55 used Input message and Error Alert. When the data exceeds it brings up the message as mentioned in Error Alert of "Retry" to input again or "Cancel" to truncate excess characters. However, it is truncating the whole data entered and makes the line blank rather than truncating any excess characters, what I want to achieve here is if there are any excess characters entered in column E over 55 to be truncated and not the full data.
    How can I achieve truncation only excess characters and not the whole data entered, I s there a way I can achieve this and the data is entered by the customer so I do not want them to get confused as to what needs to be done.
    Thanking you in advance.
  • To post as a guest, your comment is unpublished.
    Ivan · 5 years ago
    Hi, do you know how to put exact length limit 10 and when put abc i want from excel to put 8 space?
  • To post as a guest, your comment is unpublished.
    Vijay Devjani · 5 years ago
    Hi Pal.

    Data validation doesnt work on pivot table. so what to do when i want to restrict the size of cells in a pivot table.
  • To post as a guest, your comment is unpublished.
    Jenn · 5 years ago
    I am finding a way to restrict user to entering too many Korean and English characters in excel file. As Korean characters are in double bytes and English characters are in single bytes, it seems impossible for me to use data validation. Is there any way I can try to combine both in data validation so that user doesn't enter more than 25 bytes?
  • To post as a guest, your comment is unpublished.
    Sokunth · 6 years ago
    I have two condition.
    1 - If Column B1 = A Set Text Length = 6
    2 - If Column B1 = B Set Text Length = 13

    Please Guide Me!
  • To post as a guest, your comment is unpublished.
    mark mandane · 6 years ago
    thanks so much for the limiting of unputs. It helps a lot!
  • To post as a guest, your comment is unpublished.
    sinks · 6 years ago
    Thank you, very helpful!
  • To post as a guest, your comment is unpublished.
    charlotte · 6 years ago
    i created a form with multiple rows that will be interactive and filled in by my staff. The problem is they are typing everything in one row creating an extremly long row, when there are still several unused rows below.

    How can I put a limit on the characters in each row? Is there a way in excel for the data to move automatically to the new row, after the first row exceeds its character limit? Please help.
  • To post as a guest, your comment is unpublished.
    sjlrl · 6 years ago
    #Manish You could use the LEFT(cell,30) function. Say your data is in A1. At A2 enter =LEFT(A1,30) then copy A2 to A1
  • To post as a guest, your comment is unpublished.
    jack · 7 years ago
    Is it possible do the following 2 functions. I need to limit a cell to 40 characters with existing characters.
    After concatenating two cells the characters being added to the right of the cell to end up to the far right.
  • To post as a guest, your comment is unpublished.
    Manish Singh · 7 years ago
    for a already filled sheet the above rule is not applicable.

    please provide guidance for already filled sheet.
  • To post as a guest, your comment is unpublished.
    Marcela · 7 years ago
    I'm truly enjoying the design and layout of your blog.
    It's a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out
    a designer to create your theme? Fantastic work!

    Also visit my weblog - [url=http://onlineedmeds03.com/]cialis online[/url]
  • To post as a guest, your comment is unpublished.
    DonnaC · 7 years ago
    I tried this but my entries have a combination of numbers and letters and many begin with a number. This will make all that begin with a number as invalid. How do I keep this from happening?
  • To post as a guest, your comment is unpublished.
    jemuel · 7 years ago
    thanks!! it helps me a lot!! :lol:
  • To post as a guest, your comment is unpublished.
    Tom · 7 years ago
    I have used the data validation to set a character limit. However, if the limit is exceeded and the warning message appears, you can just press cancel with no consequence. How do I prevent this?
  • To post as a guest, your comment is unpublished.
    dora · 7 years ago
    I want to make sure that the cell is not empty. User can type another value, but shouldn't be able to delete it. I used text length, given that it has to be min. 1 character. I have set input message and error alert as well. Doesn't work. Tried with ticking ignore bland and without it as well. No luck. You can still delete the value. (If I use "less than", that works fine with message and alert.)
  • To post as a guest, your comment is unpublished.
    Shashi · 7 years ago
    Really very Helpful....... thank you very much
  • To post as a guest, your comment is unpublished.
    Shashi · 7 years ago
    Really Helpful... thank you very much
  • To post as a guest, your comment is unpublished.
    Vara Vemula · 7 years ago
    while converting txt to excel if the txt file contain a cell value more than 15 characcter it is rounding off. is there any formulat that helps to rpevent this.
  • To post as a guest, your comment is unpublished.
    Subhadeep · 7 years ago
    Very helpful, easy to learn. This was great, nice step by step instructions. Thank you.
  • To post as a guest, your comment is unpublished.
    Smithd476 · 7 years ago
    This design is incredible! You obviously know how to keep a reader amused. dakgffedggeddgfe
  • To post as a guest, your comment is unpublished.
    Roy · 7 years ago
    I need to limit numerical inputs to show just the last 5 characters regardless of string size.
    can this be done in Excel?
  • To post as a guest, your comment is unpublished.
    JENN · 7 years ago
    use the following formula:
    =LEFT(cell #,# of characters you want to limit the field down to)
    Example:
    =LEFT(C1,30)
    • To post as a guest, your comment is unpublished.
      Dedi · 1 years ago
      thanks amazing
    • To post as a guest, your comment is unpublished.
      Ramesh · 1 years ago
      in the next cell i need the characters from 31 to 60. so wat is the formala for that??? plz guide me

    • To post as a guest, your comment is unpublished.
      Lynell · 5 years ago
      Thank you so much! This is exactly what I needed!!
  • To post as a guest, your comment is unpublished.
    Webstarr · 7 years ago
    Is it possible to set a data validation on a cell containing a concatenate formula? I am concatenating several cells' values and would like to warn the individual entering data if the count exceeds 50 characters. However, I don't want to use the =LEFT function as I need the user to edit his input values, rather than have Excel only return the first 50 characters.

    Any ideas?
  • To post as a guest, your comment is unpublished.
    RedHair4ever · 7 years ago
    Is it possible to use this with a scanner for barcode? After the scan is done (X digits) can "enter" be done automatically so it will positionned itself in the next cell so I can scan lots of items without to manually press enter ?

    Any help will be welcome, I don't have any idea how to resolve this.
  • To post as a guest, your comment is unpublished.
    bachocron · 7 years ago
    This was great, nice step by step instructions!
  • To post as a guest, your comment is unpublished.
    Misty · 7 years ago
    Thank you! Very helpful!
  • To post as a guest, your comment is unpublished.
    Mudassar · 7 years ago
    Really helpful. thanks a lot :-)
  • To post as a guest, your comment is unpublished.
    Bart · 7 years ago
    Thanks for the information.

    Is it possible to limit existing text in a column to 30 characters and erase everything that exceeds that limited amount of characters?

    Thank you
    • To post as a guest, your comment is unpublished.
      Matthiasagreen · 7 years ago
      Use text to column, choose fixed width and choose the character count you want. It will separate antything above the limit to a new column that you can delete.
  • To post as a guest, your comment is unpublished.
    Rutger · 7 years ago
    The data validations to limit text length input are clear, but unfortunately validations stop the moment you copy text from another field which exceeds the max in the target field.

    Can that be prevented in some way?

    Would appricate userful respons!
    • To post as a guest, your comment is unpublished.
      Matthiasagreen · 7 years ago
      Use text to column, choose fixed width and choose the character count you want. It will separate antything above the limit to a new column that you can delete.
      • To post as a guest, your comment is unpublished.
        Ashish · 7 years ago
        It's not feasible @ end user is using the sheet.
      • To post as a guest, your comment is unpublished.
        Friday5 · 7 years ago
        Can you provide some instructions? Not sure how to accomplish what you are saying. What does "text to column" mean?
  • To post as a guest, your comment is unpublished.
    NyPy · 7 years ago
    This is really helpful, is there anyway to make this count spaces too?