Direkt zum Inhalt

Wie konvertiere ich eine Zeitzeichenfolge in eine Zeit in Excel?

Sie haben beispielsweise eine Liste mit Textzeichenfolgen in einem Arbeitsblatt, und jetzt müssen Sie diese Textzeichenfolgen in Uhrzeit oder Datum und Uhrzeit konvertieren. Wie können Sie diese lösen? Hier werde ich einige Tricks vorstellen, mit denen Sie Textzeichenfolgen schnell in Excel in Zeit umwandeln können.

Konvertieren Sie die Textzeichenfolge in die Zeit

Konvertieren Sie die Textzeichenfolge in Datum und Uhrzeit


Pfeil blau rechte Blase Konvertieren Sie die Textzeichenfolge in die Zeit

Um Textzeichenfolgen in Zeit umzuwandeln, können Sie zum Lösen einige Formeln verwenden.

1. Wählen Sie eine Zelle aus und geben Sie diese Formel ein = ZEITWERT (LINKS (A1, LEN (A1) -2) & ":" & RECHTS (A1,2)) (A1 ist die Textzeichenfolge, die Sie in Zeit konvertieren müssen) und drücken Sie Enter. Bei Bedarf können Sie den Füllgriff auf den gewünschten Bereich ziehen. Siehe Screenshot:
doc-time-string-to-time-1

2. Klicken Sie dann mit der rechten Maustaste auf diese ausgewählten Zellen und wählen Sie Format Cells aus dem Kontextmenü und dann in der Format Cells Dialog auswählen Uhrzeit von dem Kategorie Liste unter Nummer Wählen Sie dann den gewünschten Zeittyp aus.
doc-time-string-to-time-2

3 Klicken OKJetzt werden Textzeichenfolgen in Zeit konvertiert.
doc-time-string-to-time-3

Hinweis:

1. Diese Formel kann nicht korrekt funktionieren, wenn eine Textzeichenfolge Sekunden enthält, z. B. 120158.

2. Wenn Ihr Textzeichenfolgenformat 120456P ist, können Sie diese Formel verwenden =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2)Formatieren Sie dann die Zellen als die 12-Stunden-Uhr, die Sie benötigen. Siehe Screenshot:

doc-time-string-to-time-4
doc-time-string-to-time-5

Pfeil blau rechte Blase Konvertieren Sie die Textzeichenfolge in Datum und Uhrzeit

Wenn Ihre Textzeichenfolge Datum und Uhrzeit enthält, z. B. 20141212 0312, können Sie zum Lösen eine lange Formel verwenden.

1. Geben Sie in die leere Zelle diese Formel ein =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,10,2),RIGHT(A1,2),0), und drücken Sie dann Enter Wenn Sie diese Taste benötigen, können Sie diese Formel auf einen Bereich anwenden.

2. Klicken Sie dann mit der rechten Maustaste auf die ausgewählten Zellen und wählen Sie Format Cells aus dem Kontextmenü, dann in die Format Cells Dialog auswählen Datum von dem Kategorie Liste und wählen Sie den gewünschten Typ aus dem rechten Abschnitt.
doc-time-string-to-time-6

3 Klicken OK. Jetzt können Sie die in Datum und Uhrzeit konvertierte Textzeichenfolge sehen.
doc-time-string-to-time-7

Tip.Wenn Sie eine Zeit in Dezimalstunden, Minuten oder Sekunden umrechnen möchten, versuchen Sie bitte, die zu verwenden Kutools for Excel Zeit umrechnen wie im folgenden Screenshot gezeigt. Es ist voll funktionsfähig ohne Einschränkung in 30 Tagen, Bitte laden Sie es herunter und testen Sie es jetzt kostenlos.

Konvertieren Sie die Zeit in Excel schnell in einen Dezimalwert

Sie haben beispielsweise eine Liste der Zeit, die in Dezimalstunden, Minuten oder Sekunden konvertiert werden muss. Wie können Sie diese schnell und einfach in Excel lösen? Das Zeit umrechnen of Kutools für Excel kann einen Gefallen für Sie tun.   Klicken Sie für 30 Tage kostenlose Testversion!
doc konvertiere Zeit
 
Kutools für Excel: Mit mehr als 300 praktischen Excel-Add-Ins können Sie diese innerhalb von 30 Tagen ohne Einschränkung testen.

Beste Office-Produktivitätstools

🤖 Kutools KI-Assistent: Revolutionieren Sie die Datenanalyse basierend auf: Intelligente Ausführung   |  Code generieren  |  Erstellen Sie benutzerdefinierte Formeln  |  Analysieren Sie Daten und erstellen Sie Diagramme  |  Rufen Sie Kutools-Funktionen auf...
Beliebte Funktionen: Suchen, markieren oder identifizieren Sie Duplikate   |  Leere Zeilen löschen   |  Kombinieren Sie Spalten oder Zellen, ohne Daten zu verlieren   |   Runde ohne Formel ...
Super-Lookup: VLookup mit mehreren Kriterien    VLookup mit mehreren Werten  |   VLookup über mehrere Blätter hinweg   |   Unscharfe Suche ....
Erweiterte Dropdown-Liste: Erstellen Sie schnell eine Dropdown-Liste   |  Abhängige Dropdown-Liste   |  Mehrfachauswahl Dropdown-Liste ....
Spaltenmanager: Fügen Sie eine bestimmte Anzahl von Spalten hinzu  |  Spalten verschieben  |  Schalten Sie den Sichtbarkeitsstatus ausgeblendeter Spalten um  |  Vergleichen Sie Bereiche und Spalten ...
Ausgewählte Funktionen: Rasterfokus   |  Designansicht   |   Große Formelleiste    Arbeitsmappen- und Blattmanager   |  Ressourcen (Autotext)   |  Datumsauswahl   |  Arbeitsblätter kombinieren   |  Zellen verschlüsseln/entschlüsseln    Senden Sie E-Mails nach Liste   |  Superfilter   |   Spezialfilter (Filter fett/kursiv/durchgestrichen...) ...
Top 15 Toolsets12 Text Tools (Text hinzufügen, Zeichen entfernen, ...)   |   50+ Chart Typen (Gantt-Diagramm, ...)   |   40+ Praktisch Formeln (Berechnen Sie das Alter basierend auf dem Geburtstag, ...)   |   19 Einfügen Tools (QR-Code einfügen, Bild aus Pfad einfügen, ...)   |   12 Umwandlung (Conversion) Tools (Zahlen zu Wörtern, Currency Conversion, ...)   |   7 Zusammenführen & Teilen Tools (Erweiterte Zeilen kombinieren, Zellen teilen, ...)   |   ... und mehr

Verbessern Sie Ihre Excel-Kenntnisse mit Kutools für Excel und erleben Sie Effizienz wie nie zuvor. Kutools für Excel bietet über 300 erweiterte Funktionen, um die Produktivität zu steigern und Zeit zu sparen.  Klicken Sie hier, um die Funktion zu erhalten, die Sie am meisten benötigen ...

Beschreibung


Office Tab Bringt die Oberfläche mit Registerkarten in Office und erleichtert Ihnen die Arbeit erheblich

  • Aktivieren Sie das Bearbeiten und Lesen von Registerkarten in Word, Excel und PowerPoint, Publisher, Access, Visio und Project.
  • Öffnen und erstellen Sie mehrere Dokumente in neuen Registerkarten desselben Fensters und nicht in neuen Fenstern.
  • Steigert Ihre Produktivität um 50 % und reduziert jeden Tag Hunderte von Mausklicks für Sie!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Would love any help with this. I have data that is reported as "1d 01h 01m" representing 1 day, 1 hour, 1 min and I need to be able to represent this as a single number (preferably in # of minutes) any thoughts on how I can convert this string to a number value? Thanks all!
This comment was minimized by the moderator on the site
how to convert 06Hr:11Mi into 06:11
This comment was minimized by the moderator on the site
Hi, abinash kumar, you can remove alpha characters from your time string.
This tutorial can help you:
How to remove alpha characters from cells in Excel?
This comment was minimized by the moderator on the site
how do I convert Date/Time with this text format 08/07/2022 1519
This comment was minimized by the moderator on the site
Hi, Tina, please give me a specific example for explaining and descriping your problem. Thank you.
This comment was minimized by the moderator on the site
Hi there!

I used one of formulas above to convert a time string and it worked beautifully expect for anything that had a format of 1200P. It should convert to 12:00 but instead converts to 00:00. Any thoughts on why or how to fix it?

I used: "120456P, you can use this formula =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2)"

I did not have any seconds in my time string so I deleted the last set of 0's in the formula and it still worked.
This comment was minimized by the moderator on the site
Hi.,I have a query.
I want to convert a duration extracted in a format #h #m #s to duration format so that I can filter it. For example:
My data has a field named Session Duration and the format of the cell is "General" and the cell says "1h 2m 15s". I need to convert this data into 01:02:15 but not in time format but a duration. Is there a way to do that.
This comment was minimized by the moderator on the site
=A1/(24*60) (algebra methods)..hahhaha
then apply time format
This comment was minimized by the moderator on the site
How can I convert 1 Hour 35 Min 25 Sec, stored as a text format into Hour format (hh:nn:ss)?
This comment was minimized by the moderator on the site
Hi, Gabriel, you can try this formula =TIME(LEFT(K4,1),MID(K4,8,2),MID(K4,15,2)) K4 is the cell contains text you want to convert, then format the result as time.
This comment was minimized by the moderator on the site
2h 50m how do i convert into 2:50
This comment was minimized by the moderator on the site
Hi, Ayaan, you can try Find and Replace function, h (blank) replace wth : , m replace with nothing
This comment was minimized by the moderator on the site
using the [ =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2) ] formula,
in example #2 above, 123706A >> gets converted to 12:37:06 PM (instead of 12:37:06 AM)
how may this be rectified?
This comment was minimized by the moderator on the site
You only need to change the P to A in the formula =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="A")/2), the format the formula cell as hh:mm:ss AM/PM
This comment was minimized by the moderator on the site
so if you enter 35943A you get 3:59:43 AM (which is great).
but if you enter 123706A you would expect to get 12:37:06 AM but instead you get 12:37:06 PM (which is not so great).
also if you enter 123706P you get 12:37:06 AM (again expecting to get 12:37:06 PM).
the meridiem are only incorrect for 12xxxx, formula works flawlessly for 1~11.
any way to improve the formula, to be all encompassing? thank you
This comment was minimized by the moderator on the site
It is a little complex, sorry I cannot help you. Maybe someone in our forum https://www.extendoffice.com/forum.html can help you if you place the question in it.
This comment was minimized by the moderator on the site
using the [ =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2) ] formula,
in example #2 above, 123706A >> gets converted to 12:37:06 PM (instead of 12:37:06 AM)
how may this be rectified?
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