Vai al contenuto principale

Come limitare la lunghezza dei caratteri in una cella in Excel?

A volte potresti voler limitare il numero di caratteri che un utente può inserire in una cella. Ad esempio, si desidera limitare fino a 10 caratteri che possono essere immessi in una cella. Questo tutorial ti mostrerà i dettagli per limitare i caratteri nella cella in Excel.


Limita la lunghezza dei caratteri in una cella

1. Seleziona l'intervallo in cui limiterai le voci di data con la lunghezza dei caratteri specificata.

2. Clicca il Convalida dei dati nel Data Tools gruppo sotto Dati scheda.

3. Nella finestra di dialogo Convalida dati selezionare il file Lunghezza del testo oggetto dal Permettere: casella a discesa. Vedere la seguente schermata:

4. Nel Data: casella a discesa, avrai molte scelte e ne selezionerai una, vedi la seguente schermata:

(1) Se si desidera che gli altri possano immettere solo il numero esatto di caratteri, ad esempio 10 caratteri, selezionare il uguale a articolo.
(2) Se si desidera che il numero di caratteri immessi non sia superiore a 10, selezionare il meno di articolo.
(3) Se si desidera che il numero di caratteri immessi non sia inferiore a 10, selezionare il più grande di articolo.

4. Immettere il numero esatto che si desidera limitare Massimo/Minimo/Lunghezza box secondo le vostre esigenze.

5. Clic OK.

Ora gli utenti possono inserire solo testo con un numero limitato di caratteri negli intervalli selezionati.

Impedisci facilmente di digitare caratteri speciali, numeri o lettere in una cella / selezione in Excel

Con Kutools for Excel's Impedisci digitazione funzione, puoi facilmente limitare i tipi di caratteri in una cella o selezione in Excel.


A. Impedisci di digitare caratteri speciali, come *, !, eccetera.;
B. Impedire di digitare determinati caratteri, come numeri o determinate lettere;
C. Consenti solo di digitare determinati caratteri, come numeri, lettere, ecc. Di cui hai bisogno.
ad impedire la digitazione di caratteri

Imposta il messaggio di input per limitare la lunghezza del testo

La convalida dei dati ci consente di impostare il messaggio di input per la limitazione della lunghezza del testo oltre alla cella selezionata come mostrato nell'immagine sottostante:

1. Nella finestra di dialogo Convalida dati, passare a Ingresso Messaggio scheda.

2. Controlla il Mostra messaggio di input quando è selezionata l'opzione cella.

3. Immettere il titolo e il contenuto del messaggio.

4. Clic OK.

Ora torna al foglio di lavoro e fai clic su una cella nell'intervallo selezionato con limitazione della lunghezza del testo, viene visualizzato un suggerimento con il titolo e il contenuto del messaggio. Vedere la seguente schermata:


Imposta avviso di errore per limitare la lunghezza del testo

Un altro modo alternativo per dire all'utente che la cella è limitata dalla lunghezza del testo è impostare un errore alter. L'avviso di errore verrà visualizzato dopo aver immesso dati non validi. Vedi screenshot:

1. Nella finestra di dialogo Convalida dati, passare a Avviso di errore la finestra di dialogo.

2. Controlla il Mostra avviso di errore dopo l'inserimento di dati non validi opzione.

3. Selezionare il avvertimento oggetto dal Stile: casella a discesa.

4. Immettere il titolo e il messaggio di avviso.

5. Clic OK.

Ora, se il testo inserito in una cella non è valido, ad esempio contiene più di 10 caratteri, verrà visualizzata una finestra di dialogo di avviso con titolo e messaggio di avviso preimpostati. Vedere la seguente schermata:


Demo: limita la lunghezza dei caratteri nelle celle con messaggio di input e avviso di avviso


Kutools for Excel: Oltre 300 strumenti utili a portata di mano! Inizia oggi la tua prova gratuita di 30 giorni senza limitazioni di funzionalità. Scarica ora!

Un clic per evitare di inserire dati duplicati in una singola colonna / elenco

Rispetto all'impostazione della convalida dei dati uno per uno, Kutools for Excel's Impedisci duplicati l'utility supporta gli utenti di Excel per impedire la duplicazione di voci in un elenco o in una colonna con un solo clic.


ad impedire la digitazione di duplicati


Articolo correlato:

Come limitare le voci del valore delle celle in Excel?

I migliori strumenti per la produttività in ufficio

Funzioni popolari: Trova, evidenzia o identifica i duplicati   |  Elimina righe vuote   |  Combina colonne o celle senza perdere dati   |   Round senza formula ...
Super ricerca: VLookup a criteri multipli    VLookup a valori multipli  |   VLookup su più fogli   |   Ricerca fuzzy ....
Elenco a discesa avanzato: Crea rapidamente un elenco a discesa   |  Elenco a discesa dipendente   |  Elenco a discesa a selezione multipla ....
Gestore di colonna: Aggiungi un numero specifico di colonne  |  Sposta colonne  |  Attiva/disattiva lo stato di visibilità delle colonne nascoste  |  Confronta intervalli e colonne ...
Funzionalità in primo piano: Messa a fuoco della griglia   |  Vista di progettazione   |   Grande barra delle formule    Gestore di cartelle di lavoro e fogli   |  Resource Library (Testo automatico)   |  Date picker   |  Combina fogli di lavoro   |  Crittografa/decrittografa le celle    Invia e-mail per elenco   |  Super filtro   |   Filtro speciale (filtro grassetto/corsivo/barrato...) ...
I 15 migliori set di strumenti12 Testo Strumenti (aggiungi testo, Rimuovi personaggi, ...)   |   Più di 50 Grafico Tipi (Diagramma di Gantt, ...)   |   40+ Pratico Formule (Calcola l'età in base al compleanno, ...)   |   19 Inserimento Strumenti (Inserisci il codice QR, Inserisci immagine dal percorso, ...)   |   12 Conversione Strumenti (Numeri in parole, Conversione di valuta, ...)   |   7 Unisci e dividi Strumenti (Combina righe avanzate, Celle divise, ...)   |   ... e altro ancora

Potenzia le tue competenze in Excel con Kutools for Excele sperimenta l'efficienza come mai prima d'ora. Kutools for Excel Offre oltre 300 funzionalità avanzate per aumentare la produttività e risparmiare tempo.  Fai clic qui per ottenere la funzionalità di cui hai più bisogno...

scheda kte 201905


Office Tab Porta l'interfaccia a schede in Office e rende il tuo lavoro molto più semplice

  • Abilita la modifica e la lettura a schede in Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Apri e crea più documenti in nuove schede della stessa finestra, piuttosto che in nuove finestre.
  • Aumenta la produttività del 50% e riduce ogni giorno centinaia di clic del mouse!

Comments (53)
No ratings yet. Be the first to rate!
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, if you want me to explain, 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
This comment was minimized by the moderator on the site
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.
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