Ana içeriğe atla

Excel'de zaman dizesini zamana dönüştürmek nasıl?

Örneğin, bir çalışma sayfasında bir metin dizesi listeniz var ve şimdi bu metin dizelerini saate veya tarihe ve saate dönüştürmeniz gerekiyor, bunu nasıl çözebilirsiniz? Burada, metin dizesini Excel'de zamana hızlı bir şekilde dönüştürmeniz için bazı hileler sunacağım.

Metin dizesini zamana dönüştür

Metin dizesini tarih ve saate dönüştür


ok mavi sağ balon Metin dizesini zamana dönüştür

Metin dizesini zamana dönüştürmek için, çözmek için bazı formüller kullanabilirsiniz.

1. Bir hücre seçin ve bu formülü yazın = ZAMANDEĞER (SOL (A1, UZUNLUK (A1) -2) & ":" & SAĞ (A1,2)) (A1, zamana dönüştürmeniz gereken metin dizesidir) içine girin ve Keşfet. İhtiyaç duyarsanız, doldurma tutamacını ihtiyacınız olan aralığa sürükleyebilirsiniz. Ekran görüntüsüne bakın:
doc-time-string-to-time-1

2. Ardından bu seçili hücrelere sağ tıklayın ve biçim Hücreler bağlam menüsünden ve ardından biçim Hücreler iletişim kutusunu seçin Zaman itibaren Kategoriler altında liste Numara sekmesi, ardından ihtiyacınız olan zaman türünü seçin.
doc-time-string-to-time-2

3. tık OK, artık metin dizeleri zamana dönüştürülüyor.
doc-time-string-to-time-3

Not:

1. Bu formül, 120158 gibi saniye içeren metin dizesi olduğunda düzgün çalışamaz.

2. Metin dizesi biçiminiz 120456P ise, bu formülü kullanabilirsiniz =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2), ardından hücreleri ihtiyacınız olan 12 saatlik zaman olarak biçimlendirin. Ekran görüntüsüne bakın:

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

ok mavi sağ balon Metin dizesini tarih ve saate dönüştür

Metin dizeniz 20141212 0312 gibi bir tarih ve saat içeriyorsa, çözmek için biraz uzun bir formül kullanabilirsiniz.

1. Boş hücreye bu formülü yazın =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,10,2),RIGHT(A1,2),0)tuşuna basın ve ardından tuşuna basın. Keşfet anahtar, ihtiyacınız varsa, bu formülü bir aralığa uygulayabilirsiniz.

2. Ardından seçilen hücrelere sağ tıklayın ve seçin biçim Hücreler bağlam menüsünden, ardından biçim Hücreler iletişim kutusunu seçin Tarih itibaren Kategoriler Listesini açın ve sağ kısımdan ihtiyacınız olan türü seçin.
doc-time-string-to-time-6

3. tık OK. Artık metin dizesinin tarih ve saate dönüştürüldüğünü görebilirsiniz.
doc-time-string-to-time-7

İpucu.Bir zamanı ondalık saate, dakikaya veya saniyeye dönüştürmek istiyorsanız, lütfen şunu kullanmayı deneyin: Kutools for Excel'S Zamanı Dönüştür aşağıdaki ekran görüntüsünde gösterildiği gibi. 30 günde sınırlama olmaksızın tam çalışır, lütfen şimdi indirin ve ücretsiz deneme yapın.

Excel'de zamanı hızla ondalık değere dönüştürün

Örneğin, ondalık saate, dakikaya veya saniyeye dönüştürülmesi gereken zamanın bir listesine sahipsiniz, bunu Excel'de hızlı ve kolay bir şekilde nasıl çözebilirsiniz? Zamanı Dönüştür of Kutools için Excel, sana bir iyilik yapabilir.   30 günlük ücretsiz deneme için tıklayın!
doc dönüştürme zamanı
 
Kutools for Excel: 300'den fazla kullanışlı Excel eklentisi ile 30 günde sınırlama olmaksızın ücretsiz olarak deneyin.

En İyi Ofis Üretkenlik Araçları

🤖 Kutools AI Yardımcısı: Aşağıdakilere dayalı olarak veri analizinde devrim yaratın: Akıllı Yürütme   |  Kodunu oluşturun  |  Özel Formüller Oluşturun  |  Verileri Analiz Edin ve Grafikler Oluşturun  |  Kutools İşlevlerini Çağır...
Popüler Özellikler: Yinelenenleri Bul, Vurgula veya Tanımla   |  Boş Satırları Sil   |  Veri Kaybı Olmadan Sütunları veya Hücreleri Birleştirin   |   Formülsüz Tur ...
Süper Arama: Çoklu Ölçütlü VLookup    Çoklu Değer VLookup  |   Birden Çok Sayfada VLookup   |   Bulanık Arama ....
Gelişmiş Açılır Liste: Hızla Açılır Liste Oluşturun   |  Bağımlı Açılır Liste   |  Çoklu Seçim Açılır Liste ....
Sütun Yöneticisi: Belirli Sayıda Sütun Ekleme  |  Sütunları Taşı  |  Gizli Sütunların Görünürlük Durumunu Değiştir  |  Aralıkları ve Sütunları Karşılaştırın ...
Öne Çıkan Özellikler: Izgara Odağı   |  Tasarım görünümü   |   Büyük Formül Çubuğu    Çalışma Kitabı ve Sayfa Yöneticisi   |  Kaynak Kütüphanesi (Otomatik metin)   |  Tarih Seçici   |  Çalışma Sayfalarını Birleştirin   |  Hücreleri Şifrele/Şifresini Çöz    E-postaları Listeye Göre Gönder   |  Süper Filtre   |   Özel Filtre (kalın/italik/üstü çizili filtre...) ...
En İyi 15 Araç Seti12 Metin Tools (Metin ekle, Karakterleri Kaldır, ...)   |   50+ Grafik Türleri (Gantt şeması, ...)   |   40+ Pratik Formüller (Yaşı doğum gününe göre hesapla, ...)   |   19 sokma Tools (QR Kodunu Girin, Yoldan Resim Ekle, ...)   |   12 Dönüştürme Tools (Sayılardan Kelimelere, Para Birimi Dönüştürme, ...)   |   7 Birleştir ve Böl Tools (Gelişmiş Kombine Satırları, Bölünmüş hücreler, ...)   |   ... ve dahası

Kutools for Excel ile Excel Becerilerinizi Güçlendirin ve Daha Önce Hiç Olmadığı Gibi Verimliliği Deneyimleyin. Kutools for Excel, Üretkenliği Artırmak ve Zamandan Tasarruf Etmek için 300'den Fazla Gelişmiş Özellik Sunar.  En Çok İhtiyacınız Olan Özelliği Almak İçin Buraya Tıklayın...

Açıklama


Office Tab, Office'e Sekmeli Arayüz Getirir ve İşinizi Çok Daha Kolay Hale Getirir

  • Word, Excel, PowerPoint'te sekmeli düzenlemeyi ve okumayı etkinleştirin, Publisher, Access, Visio ve Project.
  • Yeni pencereler yerine aynı pencerenin yeni sekmelerinde birden çok belge açın ve oluşturun.
  • Üretkenliğinizi% 50 artırır ve her gün sizin için yüzlerce fare tıklamasını azaltır!
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