Hoppa till huvudinnehåll

Hur visar man tid med millisekunder i Excel?

Till exempel innehåller en inspelad tid millisekunder, såsom 10: 33: 50.235. När jag skriver den här tiden i en cell i Excel visas tiden som 33: 50.2. Efter att ha ändrat till tidsformatet visas tiden 10:33:50 med millisekunder försvinner. Finns det något sätt att visa tid normalt med återstående millisekunder i Excel? Ja, följande metod hjälper dig att lösa det enkelt.

Visa tid med millisekunder efter Format Cells-funktionen i Excel


Visa tid med millisekunder efter Format Cells-funktionen i Excel

Den här metoden går igenom att skapa ett anpassat tidsformat för att visa tiden med millisekunder i Excel. Gör så här:

1. Välj de tidceller som du vill visa tiden med millisekunder, högerklicka och välj Formatera celler från högerklickmenyn. Se skärmdump:

2. Gå till dialogrutan Formatceller, öppna Antal klicka för att markera Custom i Kategori rutan och skriv sedan formatkoden hh: mm: ss.000 i Typ låda.

3. Klicka på OK knapp. Då ser du att millisekunderna visas med tiden enligt nedanstående skärmdump:

Tips: Spara den formaterade tiden som automatisk textinmatning och återanvänd dess formatering i framtiden lätt
Normalt kan vi använda anpassat format för celler genom att lägga till anpassad formatkod i dialogrutan Format Cell i Excel. Den här anpassade formatkoden sparas dock bara i den här arbetsboken och vi kan inte använda det anpassade formatet i andra arbetsböcker direkt. Kutools för Excel Automatisk text med verktyget kan vi spara en formaterad data / cell som en automatisk textinmatning, så att vi kan kopiera dess anpassade format till andra intervall i alla arbetsböcker direkt.


tid för automatisk textformat för annons


Demo: Visa tid med millisekunder i Excel


Kutools för Excel: Över 300 praktiska verktyg till hands! Börja din 30-dagars gratis provperiod utan funktionsbegränsningar idag. Ladda ner nu!

Relaterade artiklar:

Bästa kontorsproduktivitetsverktyg

🤖 Kutools AI Aide: Revolutionera dataanalys baserat på: Intelligent utförande   |  Generera kod  |  Skapa anpassade formler  |  Analysera data och generera diagram  |  Anropa Kutools funktioner.
Populära funktioner: Hitta, markera eller identifiera dubbletter   |  Ta bort tomma rader   |  Kombinera kolumner eller celler utan att förlora data   |   Rund utan formel ...
Superuppslag: Flera kriterier VLookup    VLookup med flera värden  |   VSök över flera ark   |   Fuzzy Lookup ....
Avancerad rullgardinslista: Skapa snabbt en rullgardinslista   |  Beroende rullgardinslista   |  Flervals-rullgardinslista ....
Kolumnhanterare: Lägg till ett specifikt antal kolumner  |  Flytta kolumner  |  Växla synlighetsstatus för dolda kolumner  |  Jämför intervall och kolumner ...
Utvalda funktioner: Rutnätsfokus   |  Designvy   |   Stor formelbar    Arbetsbok & Bladhanterare   |  Resursbibliotek (Automatisk text)   |  Datumväljare   |  Kombinera arbetsblad   |  Kryptera/Dekryptera celler    Skicka e-postmeddelanden efter lista   |  Superfilter   |   Specialfilter (filtrera fet/kursiv/genomstruken...) ...
Topp 15 verktygssatser12 text verktyg (lägga till text, Ta bort tecken, ...)   |   50+ Diagram Typer (Gantt Chart, ...)   |   40+ Praktiskt Formler (Beräkna ålder baserat på födelsedag, ...)   |   19 Införande verktyg (Infoga QR-kod, Infoga bild från sökväg, ...)   |   12 Konvertering verktyg (Siffror till ord, Valutaväxling, ...)   |   7 Slå ihop och dela verktyg (Avancerade kombinera rader, Dela celler, ...)   |   ... och mer

Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid.  Klicka här för att få den funktion du behöver mest...

Beskrivning


Fliken Office ger ett flikgränssnitt till Office och gör ditt arbete mycket enklare

  • Aktivera flikredigering och läsning i Word, Excel, PowerPoint, Publisher, Access, Visio och Project.
  • Öppna och skapa flera dokument i nya flikar i samma fönster, snarare än i nya fönster.
  • Ökar din produktivitet med 50 % och minskar hundratals musklick för dig varje 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