Ana içeriğe atla

Excel'de tarihi sayı dizesine veya metin biçimine nasıl dönüştürebilirim?

Bu eğitimde, Excel'de tarihi sayıya veya metin biçimine dönüştürmeyle ilgili farklı vakaları çözmek için birkaç yöntem tanıtacağım.
doc tarihi 1 numaralı metne


1. Tarihi metne dönüştürün

Bu bölüm, Excel'de tarihi metne dönüştürme yöntemlerini sağlar.

Tarihi metne dönüştürmek için tek bir formüle ihtiyacınız var.

Formül: = TEXT (tarih, "tarih_formatı")

Referans: tarih: metne dönüştürmek istediğiniz tarihi içeren hücre
tarih formatı: tarihi metne dönüştürdükten sonra görüntülemek istediğiniz format

Aşağıdaki durumlarda size bu formülü nasıl kullanacağınızı anlatacağım.

1.1 Tarihi aa / gg / yyyy biçiminde metne dönüştürme

Örneğin, Hücre A3'teki tarihi aa / gg / yyyy'ye dönüştürün, formülü kullanın
= METİN (A3; "aa / gg / yyyy")
basın Keşfet anahtar
doc tarihi 2 numaralı metne

Hücre A8'deki tarihi gg / aa / yyyy'ye dönüştürmek istiyorsanız, bu formülü kullanın
= METİN (A8; "gg / aa / yyyy")
basın Keşfet anahtar
doc tarihi 3 numaralı metne

1.2 Tarihi mmddyyyy veya ggmmyyyy biçiminde metne dönüştürme

Hücre A13'teki tarihi metne dönüştürmek istiyorsanız, ancak mmddyyyy biçiminde bu formülü yazın
= METİN (A13; "mmddyyyy")
basın Keşfet anahtar
doc tarihi 4 numaralı metne

Hücre A18'deki tarihi ggmmyyyy biçimindeki metne dönüştürmek istiyorsanız, bu formülü yazın
= METİN (A18; "ggmmyyy")
basın Keşfet anahtar
doc tarihi 5 numaralı metne

1.3 Tarihi başka formatlarda metne dönüştürme

Aslında, tarihi dönüştürmek istediğiniz metin biçimi ne olursa olsun, formülde tırnak işaretleri arasında istediğiniz biçimi yazmanız yeterlidir.

Tarih (A3) 12/23/2019
formül = METİN (A3; "aa-gg-yyyy") = METİN (A3; "aa / gg") = METİN (A3; "gg") = METİN (A3; "g / a / y")
Sonuç 23-12-2019 23/12 23 23/12/19

Yeni!
tarih araçları

16 yeni tarih işlevi ve özelliği, Excel'de tarih işlemeyle ilgili% 90 görevi sizin için çözer.

◆ Bugüne kadar yıl / ay / gün / hafta ekleyin veya çıkarın, detaylar için tıklayın.

◆ Bugüne kadar saniye / dakika / saat ekleyin veya çıkarın, daha fazlası için tıklayın.

◆ İki tarih arasındaki hafta sonlarını / hafta içi günleri sayın. daha fazlası için tıklayın.

◆ Zamanı tarihten kaldırın. detaylar için tıklayın.

◆ Zamanı ondalık saniye / ay / saat olarak dönüştürün. detaylar için tıklayın.

◆ Birden çok tarih formatını ABD standart tarih formatına dönüştürün. detaylar için tıklayın.

Tam özelliklerle 30 günlük ücretsiz deneme, 30 günlük sebepsiz iade.


2. Tarihi sayıya çevirin

Bu bölümde, tarihin 5 haneli mmddyyyy formatında sayıya dönüştürülmesi ile ilgili yöntemler sunuyorum.

2.1 Tarihi 5 haneli formatta sayıya dönüştürme

Tarihi 5 basamaklı biçimde sayıya dönüştürmek istiyorsanız, şunları yapmanız yeterlidir:

1. Sayıya dönüştürmek istediğiniz tarihi içeren hücreye sağ tıklayın ve sağ tıklama menüsünde biçim Hücreler yaygın.
doc tarihi 6 numaralı metne

2. içinde biçim Hücreler diyalog , altında Numara sekme , seçin genel penceresinden Kategoriler.
doc tarihi 7 numaralı metne

3. tık OK. Seçili hücredeki tarih, mmddyyyy biçiminde sayı dizesine dönüştürüldü.
doc tarihi 8 numaralı metne

2.2 Tarihi aaaayyy veya ggmmyyyy biçiminde sayıya dönüştürün

Tarihi mmddyyyy veya ddmmyyyy biçiminde sayı dizesine dönüştürmek istiyorsanız, Hücreleri Biçimlendir işlevini de uygulayabilirsiniz.

1. Sayıya dönüştürmek istediğiniz tarihi içeren hücreye sağ tıklayın ve sağ tıklama menüsünde biçim Hücreler yaygın.

2. içinde biçim Hücreler diyalog, altında Numara sekmesini seçin görenek itibaren Kategoriler bölmesine gidin, ardından sağ bölüme gidin, girin mmddyyyy içine Tip Metin kutusu.
doc tarihi 9 numaralı metne

3. tık OK. Seçili hücredeki tarih mmddyyyy biçiminde sayı dizesine dönüştürüldü
doc tarihi 10 numaralı metne

Tarihi başka bir biçimde sayı dizgisine dönüştürmek isterseniz aşağıdaki listeyi referans olarak alabilirsiniz.

Tarih 2/23/2019
Hücreyi özel olarak biçimlendir ggmmyyyy ggmmyy myyyy yyyyaagg
ekran 23022019 230219 022019 20190223

3. Tarihi ay / gün / yıla veya diğer tarih biçimlerine tıklama ile dönüştürün

Tarihi hızlı bir şekilde ay, gün, yıl veya diğer tarih formatlarına dönüştürmek istiyorsanız, Tarih Formatını Uygula yarar Kutools for Excel kullanmak iyi bir seçim olacaktır.

Şimdi Fare Eline ve Servikal Spondiloza Veda Edin

Kutools for Excel'in 300 gelişmiş aracı çözmek %80 Saniyeler içinde Excel görevleri, sizi binlerce fare tıklamasından kurtarır.

1500 çalışma senaryosuyla kolayca başa çıkın, çözüm aramak için zaman kaybetmenize gerek yok, hayatınızın tadını çıkarmak için çok zamanınız olsun.

Elbette siz de dahil olmak üzere, her gün 80'den fazla etkili kişi için% 110000 üretkenliği artırın.

Artık acı veren formüller ve VBA tarafından eziyet edilmeyecek, beyninize bir dinlenme ve neşeli bir çalışma ortamı verin.

Tam özelliklere sahip 30 günlük ücretsiz deneme, sebepsiz 30 günlük para iadesi.

Daha İyi Bir Vücut Daha İyi Bir Yaşam Yaratır.

Sonra Kutools for Excel'i ücretsiz yüklemelütfen aşağıdaki gibi yapın:

1. Diğer tarih formatlarına dönüştürmek istediğiniz tarihleri ​​içeren hücreleri seçin.

2. tık Kutools > oluşturulan > Tarih Formatını Uygula.
doc tarihi 11 numaralı metne

3. içinde Tarih Formatını Uygula iletişim kutusunda kullanmak istediğiniz tarih formatını seçin Tarih biçimlendirme bölmesi, bu arada, dönüştürülen sonuç sağda önizlenecektir Önizleme bölmesi.
doc tarihi 12 numaralı metne

4. tık Ok, ardından seçtiğiniz tarihler, seçtiğiniz tarih biçimine dönüştürülür.
doc tarihi 13 numaralı metne

Tarihi tıklama ile birden çok Bireysellik tarih biçimlendirmesine dönüştürün

tarih biçimlendirmesini uygula

Tarih dönüştürme hakkında daha fazla ipucu


Örnek dosyayı indirin

örnek


Önerilen Üretkenlik Araçları

Office Sekmesi - Microsoft Office 2019-2003 ve Office 365'te Belgeleri Sekmeli Tarama, Düzenleme ve Yönetme


ofis sekmesi

Kutools for Excel - Microsoft Excel için 300'den Fazla Gelişmiş İşlev ve Aracı Birleştirir


kutools sekmesi
kutoolsp sekmesi
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