Gå til hovedindhold

Hvordan vises tid med millisekunder i Excel?

For eksempel indeholder en registreret tid millisekunder, såsom 10: 33: 50.235. Når jeg skriver denne gang i en celle i Excel, vises tiden som 33: 50.2. Efter ændring til tidsformatet vises klokken 10:33:50 med millisekunder forsvundet. Er der nogen måde at vise tid normalt med resterende millisekunder i Excel? Ja, den følgende metode hjælper dig med at løse det let.

Vis tid med millisekunder efter Format celler funktion i Excel


Vis tid med millisekunder efter Format celler funktion i Excel

Denne metode fører dig gennem oprettelse af et brugerdefineret tidsformat for at vise tid med millisekunder i Excel. Gør som følger:

1. Vælg de tidsceller, som du vil vise tid med millisekunder, højreklik og vælg formater celler fra højreklikmenuen. Se skærmbillede:

2. Gå til dialogboksen Formatér celler nummer Klik på for at fremhæve Tilpasset i Boligtype i feltet, og skriv derefter formatkoden tt: mm: ss.000 ind i Type boks.

3. Klik på OK knap. Derefter vil du se millisekunder vises med tiden som vist nedenstående skærmbillede:

Tip: Gem den formaterede tid som automatisk tekstindtastning, og genbrug dens formatering i fremtiden nemt
Normalt kan vi anvende brugerdefineret format til celler ved at tilføje brugerdefineret formatkode i dialogboksen Formatér celle i Excel. Denne kode til brugerdefineret format gemmes dog kun i denne projektmappe, og vi kan ikke anvende det brugerdefinerede format i andre projektmapper direkte. Kutools til Excel Autotekst hjælpeprogram gør det muligt for os at gemme en formateret data / celle som en automatisk tekstindtastning, så vi direkte kan kopiere dens brugerdefinerede format til andre områder af arbejdsbøger.


annonce automatisk tekstformat tid


Demo: Vis tid med millisekunder i Excel


Kutools til Excel: Over 300 praktiske værktøjer lige ved hånden! Start din 30-dages gratis prøveperiode uden funktionsbegrænsninger i dag. Hent nu!

Relaterede artikler:

Bedste kontorproduktivitetsværktøjer

🤖 Kutools AI Aide: Revolutionér dataanalyse baseret på: Intelligent udførelse   |  Generer kode  |  Opret brugerdefinerede formler  |  Analyser data og generer diagrammer  |  Aktiver Kutools funktioner...
Populære funktioner: Find, fremhæv eller identificer dubletter   |  Slet tomme rækker   |  Kombiner kolonner eller celler uden at miste data   |   Runde uden formel ...
Super opslag: VLookup med flere kriterier    Multiple Value VLookup  |   VOpslag på tværs af flere ark   |   Fuzzy Lookup ....
Avanceret rulleliste: Opret hurtigt rulleliste   |  Afhængig rulleliste   |  Multivælg rulleliste ....
Column Manager: Tilføj et bestemt antal kolonner  |  Flyt kolonner  |  Skift synlighedsstatus for skjulte kolonner  |  Sammenlign områder og kolonner ...
Fremhævede funktioner: Grid fokus   |  Designvisning   |   Stor Formel Bar    Arbejdsbog & Ark Manager   |  Ressourcebibliotek (Autotekst)   |  Datovælger   |  Kombiner regneark   |  Krypter/Dekrypter celler    Send e-mails efter liste   |  Superfilter   |   Specielt filter (filter fed/kursiv/gennemstreget...) ...
Top 15 værktøjssæt12 tekst Værktøjer (tilføje tekst, Fjern tegn, ...)   |   50 + Chart Typer (Gantt kort, ...)   |   40+ Praktisk formler (Beregn alder baseret på fødselsdag, ...)   |   19 Indsættelse Værktøjer (Indsæt QR-kode, Indsæt billede fra sti, ...)   |   12 Konvertering Værktøjer (Tal til ord, Valutaomregning, ...)   |   7 Flet og del Værktøjer (Avancerede kombinere rækker, Opdel celler, ...)   |   ... og mere

Overlad dine Excel-færdigheder med Kutools til Excel, og oplev effektivitet som aldrig før. Kutools til Excel tilbyder over 300 avancerede funktioner for at øge produktiviteten og spare tid.  Klik her for at få den funktion, du har mest brug for...

Beskrivelse


Fanen Office bringer en grænseflade til et kontor med Office, og gør dit arbejde meget lettere

  • Aktiver redigering og læsning af faner i Word, Excel, PowerPoint, Publisher, Access, Visio og Project.
  • Åbn og opret flere dokumenter i nye faner i det samme vindue snarere end i nye vinduer.
  • Øger din produktivitet med 50 % og reducerer hundredvis af museklik for dig hver dag!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hallo,

ich brauch die Uhrzeit in Millisekunden als statischen Wert. Excel gibt mit der Tastenkombination (command + shift + Semikolon) die Uhrzeit statisch aus. Allerdings mit den Werten 00,000 für Sekunden und Millisekunden. Kennt jemand eine Lösung für dieses Problem? Die Eingabe von statischen Zeitwerten müsste relativ schnell geschehen (ca. 100 Werte innerhalb von 30-40 Minuten).

Tino
This comment was minimized by the moderator on the site
Hi there,

As far as I know, you cannot show milliseconds with the shorcut key. You can use the VBA method below:

1. Select the cell where you want to show the time in milliseconds, and then press Ctrl + 1 to open the Format Cells dialog.
2. Select Custom, and copy and paste hh:mm:ss.000 in the Type input box. Then click on OK to close the dialog.
https://www.extendoffice.com/images/stories/comments/ljy-picture/milliseconds.png
3. Press Alt + F11 to open the VBA window, and then click Insert > Module.
4. Copy and paste the following code into the module window.
Sub TimeStamp()
'Update by ExtendOffice 20220902
    ActiveCell.Value = Format(Now, "hh:mm:ss") & Right(Format(Timer, "0.000"), 4)
End Sub

5. Click F5 to run the code.

Hope this could help you 🙂

Amanda
This comment was minimized by the moderator on the site
I need 6 digits of precision, but "hh:mm:ss.000000" throws an error "Microsoft Excel cannot use the number format you typed"
How to I get 6 digits of milliseconds?
This comment was minimized by the moderator on the site
Hi there, instead of formatting the cell as a time, you should format it as text to show more then 3 digits of milliseconds:

1. Select the cell range where you will input thoses times with more then 3 digits of milliseconds.
2. Press Ctrl + 1 to open the Format Cells.
3. On Number tab, select Text in the Category list. Then click OK.
4. Enter the times in these cells.

Amanda
This comment was minimized by the moderator on the site
...but when you go back to edit the number in the formula bar, the milliseconds are gone (as shown in video). That makes editing very difficult.
Our local format is "mm:ss,000" (not using hours in this case). When I enter number "00:40,123" it displays correctly in the cell, but in the fomula bar it shows "00:00:40". If I enter the formula bar and hit enter, the number in the cell then displays "00:40,000" - losing those crucial milliseconds. I have yet to find a reason, or even more important - a solution.
This comment was minimized by the moderator on the site
Something to watch out for: in some locales it won't work if you use this exact solution. In my version you need to use the format "uu:mm:ss,000" (that's a comma instead of a decimal point, and u is for "uren", dutch for hours).
Not sure whether it has to do with windows version, windows language, windows regional settings, used locale or office version.

For those of you who still want to show a decimal instead of a comma (like me), you can use this workaround (if your value is in cell A1)

=SUBSTITUTE(TEXT(A1;"uu:mm:ss,000");",";".")

Or adapt where necessary for your locale.
This comment was minimized by the moderator on the site
Thanks very much for this.
This comment was minimized by the moderator on the site
Thank you for this information. I need to enter times as per a stop watch in minutes, seconds and hundredths eg 1.23.56. I then need to calculate time differences which can be positive or negative. I get an error if negative and it shows #######. Ideally I would like to enter using . rather than : as I have a larger number of times to enter.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations