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

or

Hoe voorloopnullen aan getallen of tekst in Excel toe te voegen of in te vullen?

Als u een lijst met getallen hebt die u moet toevoegen of enkele voorloopnullen vóór de getallen moet invullen, worden deze bij het handmatig typen van de nullen standaard verwijderd. Dit artikel laat u enkele zelfstudies zien over het toevoegen van voorloopnullen aan getallen of tekst in celbereiken in Excel.

doc voeg voorloopnullen toe 1

Methode 1: Voeg de voorloopnullen toe aan getallen of vul ze in om ze even lang te maken met de tekstfunctie

Methode 2: Voeg de voorloopnullen toe aan getallen of vul ze in om ze even lang te maken met de functie Cellen opmaken

Methode 3: Voeg hetzelfde aantal voorloopnullen toe aan of voeg hetzelfde aantal voorloopnullen toe aan getallen met de functie Concatenate

Methode 4: Voeg hetzelfde aantal voorloopnullen toe aan cijfers en tekst of voeg dit in met Kutools voor Excel


Methode 1: Voeg de voorloopnullen toe aan getallen of vul ze in om ze even lang te maken met de tekstfunctie

Stel dat u een reeks gegevens heeft en u moet voor elke cel nullen toevoegen om de getallen even lang te maken. Hoe kun je snel de nullen voor de cijfers toevoegen?

De functie Tekst voegt nullen toe vóór getallen en maakt de nieuwe getallen met voorloopnullen in een bepaalde lengte.

Voer de formule in = TEXT (A4; "000000") in een lege cel waar u het resultaat wilt uitvoeren en sleep vervolgens de vulgreep naar de cellen waarop u deze formule wilt toepassen, en alle getallen worden een vaste tekenreeks van zes cijfers, zie screenshot:

doc voeg voorloopnullen toe 2

Opmerking:: Deze tekstfunctie kan geen voorloopnullen voor tekst toevoegen.


Methode 2: Voeg de voorloopnullen toe aan getallen of vul ze in om ze even lang te maken met de functie Cellen opmaken

In Excel is het Cellen opmaken functie kan u ook helpen bij het opvullen van de voorloopnullen tot celwaarden om ze even lang te maken, doe dit als volgt:

1. Selecteer de celwaarden waarvoor u voorloopnullen wilt opvullen, klik met de rechtermuisknop en kies Cellen opmaken vanuit het contextmenu.

2. In het Cellen opmaken dialoogvenster onder het Aantal tab, selecteer Eigen links Categorie deelvenster en voer vervolgens in 000000 in de Type tekstvak, (in dit voorbeeld zal ik de getallen maken als getallen van zes cijfers, u kunt dit naar uw behoefte wijzigen.), zie screenshot:

doc voeg voorloopnullen toe 3

3. Dan klikken OK om dit dialoogvenster te sluiten, en de getallen in de oorspronkelijke cellen zijn geconverteerd naar getallen van bepaalde lengte met voorloopnullen. Zie screenshot:

doc voeg voorloopnullen toe 4


Methode 3: Voeg hetzelfde aantal voorloopnullen toe aan of voeg hetzelfde aantal voorloopnullen toe aan getallen met de functie Concatenate

Als u een specifiek cijfer van voorloopnullen in elk nummer wilt invoegen, bijvoorbeeld drie voorloopnullen voor elk nummer, moet u de Concatenate functie.

Voer de formule in = CONCATENATE ("000"; A4) in een lege cel en sleep vervolgens de vulgreep naar beneden om deze formule naar andere cellen te vullen, en alle getallen zijn drie nullen vóór de getallen toegevoegd, zie screenshot:

doc voeg voorloopnullen toe 5


Methode 4: Methode 4: Voeg hetzelfde aantal voorloopnullen toe aan of voeg hetzelfde aantal voorloopnullen toe aan cijfers en tekst met Kutools voor Excel

Functies of formules zijn misschien niet gemakkelijk te onthouden en toe te passen. Hier is nog een lastige manier, de toe te voegen tekst nut van Kutools for Excel, om u te helpen bij het invoegen van voorloopnullen voor getallen in selecties.

Kutools for Excel : met meer dan 300 handige Excel-invoegtoepassingen, gratis te proberen zonder beperking in 30 dagen. 

1. Selecteer het bereik waaraan u nullen wilt toevoegen vóór de cijfers of tekst.

2. Dan klikken Kutools > Tekst > toe te voegen tekst, zie screenshot:

3. In de toe te voegen tekst dialoogvenster, voert u het aantal nullen in met een voorafgaande apostrof in de Tekst box en selecteer het Voor het eerste karakter optie en klik vervolgens op Ok knop, en de nullen zijn toegevoegd voor de nummers zoals in de volgende schermafbeelding:

doc voeg voorloopnullen toe 7

Klik om Kutools voor Excel en nu gratis uit te proberen!

Het toe te voegen tekst nut van Kutools for Excel ondersteunt ons om specifieke tekst en tekens toe te voegen voor of na de originele celtekst. Bovendien kunnen we specifieke tekst toevoegen tussen originele celteksten. Welke instellingen u ook instelt, u kunt een voorbeeld van de celwijzigingen bekijken in het gedeelte Voorbeeld. Klik om meer te weten over dit hulpprogramma.


Voeg voorloopnullen toe aan cijfers of tekst met Kutools voor Excel

Kutools for Excel bevat meer dan 300 handige Excel-tools. Gratis te proberen zonder beperking binnen 30 dagen. Download nu de gratis proefversie!


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.
    TRAVOZ STEVEN · 8 months ago
    I got my already programmed and blank ATM card to withdraw the maximum of $100,000 MONTHLY for a maximum of 12 MONTHS. I am so happy about this because i got mine last week and I have used it to get $400,000 already. (perrythomas827@gmail.com) is giving out the card just to help the poor and needy though it is illegal but it is something nice and he is not like other scam pretending to have the blank ATM cards. And no one gets caught when using the card. Get yours from THOMAS PERRY Hackerz today! Just send an email to (perrythomas827@gmail.com)
  • To post as a guest, your comment is unpublished.
    superstar · 2 years ago
    В примере ошибка, нужно ставить не запятую, а точку с запятой: "= Текст (A2, "00000")"
  • To post as a guest, your comment is unpublished.
    Narcisse · 3 years ago
    thank you, very helpful
  • To post as a guest, your comment is unpublished.
    Bernice · 3 years ago
    I was wondering how i would write phone numbers in excel, but there was no zeros appearing. And also the phone numbers are in one column like

    column D
  • To post as a guest, your comment is unpublished.
    Rashida · 3 years ago
    Thank you for sharing..it's really use for me.
  • To post as a guest, your comment is unpublished.
    Shirley · 3 years ago
    Thank you for helping me out. You saved my day!
  • To post as a guest, your comment is unpublished.
    Peter · 4 years ago
    Worked well for me. Thanks alot.
  • To post as a guest, your comment is unpublished.
    Ryan · 4 years ago
    Hey, i was wondering how to put text in-front of a number with 0 decimal places.
    ie. it comes up as " Sp3.145255246345 " and i want it to show " Sp3"


    Thanks
  • To post as a guest, your comment is unpublished.
    MANMOHAN · 4 years ago
    Use 0&
    example: =0&0&A1 (A1 is cell in which 00 is to be added as prefix)
  • To post as a guest, your comment is unpublished.
    Andrea · 4 years ago
    I need to add zeros to the front of the ID (know how to add leading zeros) but some need 6 and some need 5 zeros. Is there a formula to make sure I have a 10 digit number when I'm done?
    • To post as a guest, your comment is unpublished.
      jyoti · 3 years ago
      you can use "REP FUNCTION AND LENGTH FUNCTION TOGETHER " for such problems.

      Example : =REP(0,10-LEN(C4))&C4
    • To post as a guest, your comment is unpublished.
      Blake · 4 years ago
      Hi Andrea. Assuming your original text is in cell A2, you can type =TEXT(A2,"0000000000")

      That will ensure that there are enough leading zeros so that you have 10 characters in each string.
  • To post as a guest, your comment is unpublished.
    Gaz · 4 years ago
    CMD & BLAKE, You are absolute whizzkids! :-)
    thanks
  • To post as a guest, your comment is unpublished.
    Duane · 4 years ago
    I deal alot with serial numbers of my companies product that includes leading zeros, which I frequently store in Excel sheets by pasting them out of our SAP system. Usually I can just format the cells as text before pasting them, which keeps the zeros, but occasionally I have to add them back in. Before finding this article I've struggled with that, but this works perfectly, thanks for the tip.
  • To post as a guest, your comment is unpublished.
    Sharon · 4 years ago
    Hi! I have no idea if this is possible or not, but my boss would like to enter whole numbers into cells, but then have them converted into decimals (for example, he want to enter a 5 in the cell, but then have it converted to .0005). Another example that he gave is he might enter 49 and would like the cell to be .0049. Any suggestions/ideas? Thanks!
    • To post as a guest, your comment is unpublished.
      Peter · 4 years ago
      A1=5
      B1 = A1/10000
      = .0005
    • To post as a guest, your comment is unpublished.
      Blake · 4 years ago
      Hi. You could enter a formula that divides the cell by 10000. For example, if your entry cell is A1 and your cell for formatting is B1, you can type the following in B1:

      =A1/10000

      Then type something in A1 and check. Does that work or do you need a more precise solution?
  • To post as a guest, your comment is unpublished.
    scott.george@siemens · 5 years ago
    Adding leading zeros
  • To post as a guest, your comment is unpublished.
    Anup · 5 years ago
    Hello

    I want to add "00" for A1 column but every cell contain random numeric digits.

    Thanks in advance.
  • To post as a guest, your comment is unpublished.
    Hayley · 5 years ago
    Hi, I have a problem, but not sure if it can be fixed in Excel:

    I have to export a file to CSV (currently the only option), within that file there are numbers that are usually 16 characters long, the first 2 are zeros, and sometimes, the last two figures might be E followed by a number, for example, 00633597038029E6. In the system they are being exported from, it is consistent and there isn't a problem, however as soon as the CSV file is opened in Excel, it converts the E6 and replaces it with 6 zeros, the above number becomes 00633597038029000000. However, it also only does this when it drops the 2 zeros from the front. Leaving it as 633597038029000000. When excel does not decide to drop the 2 zeros, it isn't a problem and it leaves the number as E6, it is only on the occasion where it has for some reason, dropped the 2 zeros.

    The problem I have is that it seems that by the time I have opened the file, it is too late to do anything as excel has already converted the numbers.

    Is there anything that can be done about this?
  • To post as a guest, your comment is unpublished.
    Johncy · 5 years ago
    How to convert a number into thousands or lakhs, depending on the number of zeroes required.
    Is it possible through formatting.
  • To post as a guest, your comment is unpublished.
    Gin · 5 years ago
    Hi all,

    I have dates in the format yyymmdd, e.g. 2080201 stays for 1st of Feb. 2008 (2008.02.01). how can I add a zero after the first two digits?

    like: yyymmdd to yyyymmdd (e.g. 2080201 to 20080201)

    Thanks!
  • To post as a guest, your comment is unpublished.
    Twowolves · 5 years ago
    Nice! Just ran into this problem at work and was amazed at how easy the solution was! Thanks!
  • To post as a guest, your comment is unpublished.
    kate · 5 years ago
    thanks for the info !
  • To post as a guest, your comment is unpublished.
    Zella · 5 years ago
    Great tips! I need to make this number 1-354-0-2 be in the following format: 01-0354-00-02. Can you help??
    Thanks!
  • To post as a guest, your comment is unpublished.
    Smithc530 · 5 years ago
    I am no longer sure the place you're getting your info, but great topic. I needs to spend a while studying much more or understanding more. Thanks for wonderful info I was on the lookout for this info for my mission. efbdcekddgfegdfe
  • To post as a guest, your comment is unpublished.
    oc · 5 years ago
    Thank you Blake...works perfec.
  • To post as a guest, your comment is unpublished.
    Blake · 5 years ago
    #OC, I wrote you a VBA script. To execute, open your subject Workbook, ensure that the affected column is formatted as Text, then press alt+F11, then in the toolbar select Insert > Module. When the editor loads, paste the following code in and then execute:

    Sub Column_Fix()

    Dim rng As Range, col As Range, arr
    Dim sht As Worksheet, c As Range, tmp

    On Error Resume Next 'in case of cancellation
    Set rng = Application.InputBox( _
    Prompt:="Please select the column that contains the incorrect values." & _
    " (e.g. Column A or Column B)", _
    Title:="Select Range", Type:=8)

    On Error GoTo 0


    hdr = MsgBox("Does your selection contain a header?", vbYesNo + vbQuestion, "Header Option")

    If rng Is Nothing Then Exit Sub

    If rng.Columns.Count > 1 Then
    MsgBox "Please select only one column at a time.", vbExclamation
    Exit Sub
    End If

    Set sht = rng.Parent


    Application.ScreenUpdating = False
    If hdr = vbYes Then
    Set col = sht.Range(sht.Cells(2, rng.Column), _
    sht.Cells(sht.Rows.Count, rng.Column).End(xlUp))

    For Each c In col.Cells
    c.Value = Replace(c.Value, ".", "")
    Next c
    End If
    If hdr = vbNo Then
    Set col = sht.Range(sht.Cells(1, rng.Column), _
    sht.Cells(sht.Rows.Count, rng.Column).End(xlUp))

    For Each c In col.Cells
    c.Value = Replace(c.Value, ".", "")
    Next c
    End If
    Application.ScreenUpdating = True
    End Sub



    If you have any problems, let me know.
    • To post as a guest, your comment is unpublished.
      oc · 5 years ago
      Thank you! Works like a charm..
  • To post as a guest, your comment is unpublished.
    oc · 5 years ago
    HOW CAN I HAVE A VALUE OF 0.0010 SHOW AS 00010 AND A VALUE OF 1.001 AS 1001? IN EXCEL? Thanks.
  • To post as a guest, your comment is unpublished.
    HARI · 5 years ago
    thx a lot. I like to learn a lot
  • To post as a guest, your comment is unpublished.
    Tanvir · 6 years ago
    tanx boss, really so nice
  • To post as a guest, your comment is unpublished.
    Afra · 6 years ago
    how to 8.00 ?? please ans
    • To post as a guest, your comment is unpublished.
      rfruae · 6 years ago
      Use the Comma function (Accounting)
  • To post as a guest, your comment is unpublished.
    Brandon · 6 years ago
    Thanks for sharing the information, example well formatted, baie dankie :)
  • To post as a guest, your comment is unpublished.
    Lizz · 6 years ago
    Thank you for all your helpful tips. I was wondering if there is a way to format the answers from a formula to be able to copy the result into another program as a number.
    Ex. I need to use the number produced from =Text (A1, "000")
    Cell A1 12345
    Cell A2 =Text (A1,"000000")Result being 012345
    Copy & Paste 012345 as a number into another program without the formula being pasted into the other program.
    When I copy & paste 012345 the result is =Text (A1, "000000")
    • To post as a guest, your comment is unpublished.
      cmd · 6 years ago
      Try Paste Special > Values and number formats
  • To post as a guest, your comment is unpublished.
    vartaxe · 6 years ago
    how to do when cells look like this:

    ABW-M-1
    BAS-B-74
    ESU-F-3

    and need them to be:

    ABW-M-001
    BAS-B-074
    ESU-F-003

    ? :/
    • To post as a guest, your comment is unpublished.
      cmd · 6 years ago
      1) Use Text to Columns (Data > Text to Columns) to split out the last number. - Use fixed width and split after the second hyphen/dash.
      2) Use =Text(B1,"000") formula for the numbers you need changed to 3 digits.
      3) Use Concatenate formula to recombine the data back into a single string.


      1. Split with Text to Column
      2. Insert formula =Text(B1,"000") (Column C)
      3. Concatenate Column A & Column C (Column D)

      A B C D
      ABW-M- 1 001 ABW-M-001
      BAS-B- 74 074 BAS-B-074
      ESU-F- 3 003 ESU-F-003
  • To post as a guest, your comment is unpublished.
    Jamie · 6 years ago
    Absolutely perfect, the =Text (A1, "00000") Formula works perfectly for me! Excel can do some incredible things, its just knowing these formulas!!
  • To post as a guest, your comment is unpublished.
    Ruby · 7 years ago
    for you because you are the best
  • To post as a guest, your comment is unpublished.
    Delio · 7 years ago
    does not work i used the exact numbers and i receive formula error

    =text(B4,"00000") from A1 being 2932
  • To post as a guest, your comment is unpublished.
    Matt_m · 7 years ago
    Is there anyway to ad quotation marks before and after any text entered into a cell? It looks like Kutools could do it but is there anyway to do it with just Excel? Thanks in advance.
    • To post as a guest, your comment is unpublished.
      cmd · 7 years ago
      Here is a quick way to add the quotation mark before & after your text...

      1. Enter " into a blank cell.
      2. Formula... =(select cell with the ")&(select cell with your text)&(select cell with the ")
      Example: " in cell A1 and Barry in cell C1... =A1&C1&A1.
      Result: "Barry"
  • To post as a guest, your comment is unpublished.
    mutale kay · 7 years ago
    very good topic, i have got my work done.
  • To post as a guest, your comment is unpublished.
    seema sahu · 7 years ago
    thnx my prob is solved.
  • To post as a guest, your comment is unpublished.
    Marlene · 7 years ago
    Thanks a lot! It saved me !
  • To post as a guest, your comment is unpublished.
    Firat · 7 years ago
    Great tips! Text function just saved my day, thank you for this simple solution.
  • To post as a guest, your comment is unpublished.
    ANSELM · 7 years ago
    THIS IS JUST AWESOME. MANY THANKS.
    PLEASE I STILL HAVE ONE CHALLENGE ON THIS, I HAVE A RANGE TO WORK ON, FIRST I HAVE TO ROUND THE NUMBERS UP TO 10, BUT I HAVE THEM IN 3 DIFFERENT DIGITS (6, 7 & 8) SCATTERED ALL OVER THE RANGE. MY PROBLEM IS HOW TO INPUT A FOMULAR THAT WILL ENABLE THE EXCEL DETECT HOW MANY ZEROS EACH OF THE NUMBERS WILL HAVE IN FRONT TO ROUND UP TO 10.
  • To post as a guest, your comment is unpublished.
    Hafiz Mohammad Yasee · 7 years ago
    thanks I found my problem from your site.
  • To post as a guest, your comment is unpublished.
    wani · 7 years ago
    [b]cmd[/b], you are very helpful. thanks!!
  • To post as a guest, your comment is unpublished.
    Jen · 7 years ago
    What if there are dashes, for example 3-14-50-12, 10-12-48-6. But you only need there to be a 0 in front of the single digit at the beginning?
  • To post as a guest, your comment is unpublished.
    C · 7 years ago
    Instructions on how to add leading zeros.
  • To post as a guest, your comment is unpublished.
    cmd · 7 years ago
    First off this has been a very helpful site. Thanks!

    One tip for those like me who are trying to add leading zeros & leading text, try using the "&" to pull everything together.

    Example:
    ="Bob"&(Text(value,"000000")). If the value (number) is 123, the result will be... Bob000123
    • To post as a guest, your comment is unpublished.
      Melissa · 6 years ago
      Thanks for this tip CMD, this is exactly what I was trying to do!!
    • To post as a guest, your comment is unpublished.
      Ms. R Kumar · 7 years ago
      Thanks a lot for the help given using Excel.
  • To post as a guest, your comment is unpublished.
    Subhendu Baliarsingh · 7 years ago
    Thanks....its very very helped me
  • To post as a guest, your comment is unpublished.
    Pam · 7 years ago
    Still not working - I have a alphanumeric number A1234 that I need to put a zero in front of the A how do you do that?
  • To post as a guest, your comment is unpublished.
    Daniella Kane · 7 years ago
    Thia was AWESOME!!! Thanks!!!!
  • To post as a guest, your comment is unpublished.
    Patrick · 7 years ago
    Excellent fix. Thanks
  • To post as a guest, your comment is unpublished.
    peter · 7 years ago
    I have used concatenate to create two leading zeros in number not text. A1 00 B1 00 C1 1234 = 001234
    my problem is the worksheet needs to be uploaded into a program and the C1 cell is a problem because it has the concatenate formula and is not recognised as a number. Can you help?
    • To post as a guest, your comment is unpublished.
      Blake · 7 years ago
      Simple fix. After using the aforementinoed formula, copy all cells that contain formulas and right click and 'paste values'. This will keep the values on the spreadsheet (formula results) and get rid of the formulas for you.
      • To post as a guest, your comment is unpublished.
        peter · 7 years ago
        Thanks, I did try that however when pasted as values the result goes to text and not a number. Any ideas appreciated