Direkt zum Inhalt

Wie konvertiere ich ein Datum in eine Zeichenfolge oder ein Textformat in Excel?

In diesem Tutorial werde ich verschiedene Methoden zur Lösung verschiedener Fälle beim Konvertieren von Datum in Zahlen- oder Textformat in Excel vorstellen.
Dokument Datum zu Nummer Text 1


1. Konvertieren Sie das Datum in Text

Dieser Abschnitt enthält die Methoden zum Konvertieren von Datum in Text in Excel.

Um das Datum in Text umzuwandeln, benötigen Sie nur eine Formel.

Formel: = TEXT (Datum, ”Datumsformat”)

Referenz: Datum: Die Zelle mit dem Datum, das Sie in Text konvertieren möchten
Datumsformat: Das Format, das Sie nach der Konvertierung des Datums in Text anzeigen möchten

In den folgenden Fällen werde ich Ihnen erklären, wie Sie diese Formel verwenden.

1.1 Konvertieren Sie das Datum in Text im Format MM / TT / JJJJ

Konvertieren Sie beispielsweise das Datum in Zelle A3 in MM / TT / JJJJ und verwenden Sie die Formel
= TEXT (A3, "MM / TT / JJJJ")
Presse Enter Schlüssel
Dokument Datum zu Nummer Text 2

Wenn Sie das Datum in Zelle A8 in TT / MM / JJJJ konvertieren möchten, verwenden Sie diese Formel
= TEXT (A8, "TT / MM / JJJJ")
Presse Enter Schlüssel
Dokument Datum zu Nummer Text 3

1.2 Konvertieren Sie das Datum in Text im Format MMTJJJJ oder TTMJJJJ

Wenn Sie das Datum in Zelle A13 in Text konvertieren möchten, jedoch im Format MMTJJJJ, geben Sie diese Formel ein
= TEXT (A13, "mmddyyyy")
Presse Enter Schlüssel
Dokument Datum zu Nummer Text 4

Wenn Sie das Datum in Zelle A18 in Text im Format TTMJJJJ konvertieren möchten, geben Sie diese Formel ein
= TEXT (A18, "TTMJJJJ")
Presse Enter Schlüssel
Dokument Datum zu Nummer Text 5

1.3 Datum in Text in anderen Formaten konvertieren

Unabhängig davon, in welches Textformat Sie das Datum konvertieren möchten, geben Sie einfach das gewünschte Format zwischen Anführungszeichen in der Formel ein.

Datum (A3) 12/23/2019
Formel = TEXT (A3, "MM-TT-JJJJ") = TEXT (A3, "mm / dd") = TEXT (A3, "dd") = TEXT (A3, "d / m / y")
Ergebnis 23-12-2019 23/12 23 23/12/19

Neu!
Datumswerkzeuge

16 neue Datumsfunktionen und -funktionen lösen 90% der Aufgaben zur Datumsverarbeitung in Excel für Sie.

◆ Addiere oder subtrahiere bisher Jahr / Monate / Tage / Wochen, Klicken für Details.

◆ Addiere oder subtrahiere Sekunden / Minuten / Stunden zum Datum, Klick für mehr.

◆ Zählen Sie Wochenenden / Wochentage zwischen zwei Daten. Klick für mehr.

◆ Entfernen Sie die Uhrzeit vom Datum. Klicken für Details.

◆ Konvertieren Sie die Zeit in Dezimalsekunden / Munition / Stunden. Klicken für Details.

◆ Konvertieren Sie mehrere Datumsformate in das US-Standard-Datumsformat. Klicken für Details.

30 Tage kostenlose Testversion mit allen Funktionen, 30-tägige Rückerstattung ohne Angabe von Gründen.


2. Konvertieren Sie das Datum in eine Nummer

In diesem Abschnitt stelle ich Methoden zum Konvertieren von Datum in Zahl im 5-stelligen Format des MMDJJJJ-Formats vor.

2.1 Konvertieren Sie das Datum in eine Zahl im 5-stelligen Format

Wenn Sie das Datum in eine Zahl im 5-stelligen Format konvertieren möchten, gehen Sie wie folgt vor:

1. Klicken Sie mit der rechten Maustaste auf die Zelle, die das Datum enthält, das Sie in eine Zahl konvertieren möchten, und wählen Sie im Kontextmenü die Option aus Format Cells verbreitet.
Dokument Datum zu Nummer Text 6

2. in Format Cells Dialog , unter Nummer Registerkarte , auswählen Allgemeines aus der Scheibe von Kategorie.
Dokument Datum zu Nummer Text 7

3 Klicken OK. Das Datum in der ausgewählten Zelle wurde in eine Zahlenfolge im Format MMTJJJJ konvertiert.
Dokument Datum zu Nummer Text 8

2.2 Konvertieren Sie das Datum in eine Zahl im Format MMTJJJJJ oder TTMJJJJ

Wenn Sie das Datum in eine Zeichenfolge im Format MMTJJJJ oder TTMJJJJ konvertieren möchten, können Sie auch die Funktion Zellen formatieren anwenden.

1. Klicken Sie mit der rechten Maustaste auf die Zelle, die das Datum enthält, das Sie in eine Zahl konvertieren möchten, und wählen Sie im Kontextmenü die Option aus Format Cells verbreitet.

2. In dem Format Cells Dialog, unter Nummer Registerkarte, wählen Sie Maßgeschneidert von dem Kategorie Bereich, dann gehen Sie zum rechten Abschnitt, geben Sie ein mmddyyyy in die Typ Textfeld.
Dokument Datum zu Nummer Text 9

3 Klicken OK. Das Datum in der ausgewählten Zelle wurde in eine Zahlenfolge im Format MMTJJJJ konvertiert
Dokument Datum zu Nummer Text 10

Wenn Sie das Datum in eine Zahlenzeichenfolge in einem anderen Format konvertieren möchten, können Sie die folgende Liste als Referenz verwenden.

Datum 2/23/2019
Zelle wie benutzerdefiniert formatieren DD / MM / JJJJ ttmmyj mmjjjj yyyymmdd
Display 23022019 230219 022019 20190223

3. Konvertieren Sie das Datum mit Klicks in Monat / Tag / Jahr oder andere Datumsformate

Wenn Sie Datum schnell in Monat, Tag, Jahr oder andere Datumsformate konvertieren möchten, können Sie die Datumsformatierung anwenden Nutzen von Kutools for Excel wird eine gute Wahl sein.

Verabschieden Sie sich jetzt von Maushand und zervikaler Spondylose

300 erweiterte Tools von Kutools für Excel lösen 80% Excel-Aufgaben in Sekundenschnelle lösen Sie aus Tausenden von Mausklicks.

Bewältigen Sie problemlos 1500 Arbeitsszenarien, verschwenden Sie keine Zeit mit der Suche nach Lösungen und haben Sie viel Zeit, Ihr Leben zu genießen.

Verbessern Sie die Produktivität von mehr als 80 hocheffektiven Menschen jeden Tag um 110000 %, natürlich auch für Sie.

Lassen Sie sich nicht mehr von schmerzhaften Formeln und VBA quälen, sondern geben Sie Ihrem Gehirn eine Pause und eine fröhliche Arbeitsstimmung.

30-tägige kostenlose Testversion mit vollem Funktionsumfang, 30-tägige Geld-zurück-Garantie ohne Angabe von Gründen.

Ein besserer Körper schafft ein besseres Leben.

Nach der Kostenlose Installation von Kutools für ExcelBitte machen Sie wie folgt:

1. Wählen Sie die Zellen aus, die die Daten enthalten, die Sie in andere Datumsformate konvertieren möchten.

2 Klicken Kutoolen > Format > Datumsformatierung anwenden.
Dokument Datum zu Nummer Text 11

3. In dem Datumsformatierung anwenden Wählen Sie im Dialogfeld das Datumsformat aus, in dem Sie verwenden möchten Datumsformatierung In der Zwischenzeit wird das konvertierte Ergebnis rechts in der Vorschau angezeigt Vorspann Feld.
Dokument Datum zu Nummer Text 12

4 Klicken OkDann wurden die von Ihnen ausgewählten Daten in das von Ihnen ausgewählte Datumsformat konvertiert.
Dokument Datum zu Nummer Text 13

Konvertieren Sie das Datum mit Klicks in mehrere Individuality-Datumsformatierungen

Datumsformatierung anwenden

Weitere Tipps zur Datumskonvertierung


Beispieldatei herunterladen

Sample


Empfohlene Produktivitätswerkzeuge

Registerkarte "Office" - Durchsuchen, Bearbeiten und Verwalten von Dokumenten in Microsoft Office 2019 - 2003 und Office 365


Registerkarte Büro

Kutools für Excel - Kombiniert mehr als 300 erweiterte Funktionen und Tools für Microsoft Excel


Registerkarte "Kutools"
kutoolsp-Tab
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hello, how i convert 13.09.2023 to 13.9 my numbers change into dates
This comment was minimized by the moderator on the site
I want to know how many times I went to check the inspection. which I recorded by days.
This comment was minimized by the moderator on the site
Hello. I would very much appreciate your help with this formula. I am wishing to enter the customer's date of birth in cell I3 (custom formatting mm/dd/yy) and would like that date of birth to automatically populate in A3 cell as mmddyy along with adding the First letter from First name cell F3 and First letter from Last name cell G3 in order to have it auto-populate an ID# for our customers in our database.

A3 F3 G3 I3
ID# First Name Last Name Date of Birth
030199AS Adam Smith 03/01/1999

Thank you so much for any help. You have no idea how much I appreciate it. I have been wracking my brain all night to no avail. :(
Shena Bruno
This comment was minimized by the moderator on the site
Hi, Shena, Bruno, in A3, please use the formula =TEXT(I3, mmddyyyy")&LEFT(F3,1)&LEFT(G3,1).
In the formula, it can be explained as two parts:
TEXT(I3, mmddyyyy") will change the value in I3 to this format mmddyyyy
LEFT(F3,1)&LEFT(G3,1) will extract the first character from left side of the strings in cell F3 and G3.
Hope it is helpful.
This comment was minimized by the moderator on the site
I want to convert the day (Tuesday) which is showing up as 1/3/1900 when you click on it because I added a formula on the original data to provide me with Day values. Now I want to use a pivot table to show me the actual days. How do I convert the 1/3/1900 which shows up at Tuesday to just Tuesday? 
This comment was minimized by the moderator on the site
Hi, Cathey, do you want to convert the formula to an actual value? If so, you can use the Paste as Value Only feature in Excel to copy and paste the formulas as values only, or you can use Kutools for Excel's To Actual feature to convert formulas to values.
This comment was minimized by the moderator on the site
Hi, I was trying to copy and past the value but its still showing the date as opposed to the day. 
This comment was minimized by the moderator on the site
Hi, Cathey, do you choose the Paste as Value option in right-click context menu? If you have choosed, try to press Ctrl +1 keys to enable format cells feature and change the cell format to mm/dd/yyyy in Date section.
This comment was minimized by the moderator on the site
Hello. I have the date 26.01.2021 in the cell A1 and in another cell I have the formula: =RIGHT(A1,4) to take the year from that date, and it returns “4526” instead of “2021”. Do you know how to solve it? Thank you very much!
This comment was minimized by the moderator on the site
try to change the format on cell A1 to general or number and then enter the values that you want again to see if it helps. I think your problem is the format issue.
This comment was minimized by the moderator on the site
Hi, I want to convert month to number. For exp: 8 months (date format) ---> "8" as a number or value. I've change its format but I can't count it.Because I want to put it to math format, for exp: 8-2 = 6 (8 from the months). But the 8 doesn't work.Hope you get it. Thank you for helping!
This comment was minimized by the moderator on the site
Hi i have a date in "13/02/2020 11:42:09" format and i want in MM/DD/YYYY format
This comment was minimized by the moderator on the site
Hi, just select the cell then apply the Text to Columns, in the Text to Columns, choose Delimiter > Space > Date(in the Date format, choose DMY) > Finish.
This comment was minimized by the moderator on the site
There is another way, it returns exactly the numeric format that represents the date abbreviated by (/), it would be: '=Substitute(A1;"/";"")
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