Skip to main content

Conas sreang ama a thiontú go ham in Excel?

Mar shampla, tá liosta de shreangáin téacs agat i mbileog oibre, agus anois ní mór duit na teaghráin téacs seo a thiontú go ham nó dáta agus am, conas is féidir leat é a réiteach? Tabharfaidh mé isteach roinnt cleasanna duit chun sreangán téacs a thiontú go tapa in am in Excel.

Tiontaigh sreangán téacs go ham

Tiontaigh sreangán téacs go dáta agus go ham


mboilgeog cheart gorm saighead Tiontaigh sreangán téacs go ham

Chun sreangán téacs a thiontú go ham, is féidir leat roinnt foirmlí a úsáid le réiteach.

1. Roghnaigh cill agus clóscríobh an fhoirmle seo = TIMEVALUE (LEFT (A1, LEN (A1) -2) & ":" & CEART (A1,2)) (Is é A1 an sreangán téacs a chaithfidh tú a thiontú go ham) isteach ann, agus brúigh Iontráil. Más gá duit, is féidir leat an láimhseáil líonta a tharraingt chuig an raon atá uait. Féach an pictiúr:
doc-am-teaghrán-go-am-1

2. Ansin cliceáil ar dheis ag na cealla roghnaithe seo, agus roghnaigh Cealla Formáid ón roghchlár comhthéacs, agus ansin sa Cealla Formáid dialóg, roghnaigh Am ó na Catagóir liosta faoi Uimhir cluaisín, ansin roghnaigh an cineál ama atá uait.
doc-am-teaghrán-go-am-2

3. cliceáil OK, anois déantar teaghráin téacs a thiontú go ham.
doc-am-teaghrán-go-am-3

Nóta:

1. Ní féidir leis an bhfoirmle seo oibriú i gceart nuair a bhíonn sreangán téacs lena n-áirítear soicind, mar shampla 120158.

2. Más é 120456P formáid do shreang téacs, is féidir leat an fhoirmle seo a úsáid =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2), ansin formáidigh na cealla mar an clog 12 uair an chloig atá uait. Féach an pictiúr:

doc-am-teaghrán-go-am-4
doc-am-teaghrán-go-am-5

mboilgeog cheart gorm saighead Tiontaigh sreangán téacs go dáta agus go ham

Má chuimsíonn do shreang téacs dáta agus am mar 20141212 0312, is féidir leat foirmle beag fada a úsáid chun réiteach a fháil.

1. Sa chill bhán, clóscríobh an fhoirmle seo =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,10,2),RIGHT(A1,2),0), agus ansin brúigh Iontráil eochair, más gá duit, is féidir leat an fhoirmle seo a chur i bhfeidhm ar raon.

2. Ansin cliceáil ar dheis ag na cealla roghnaithe agus roghnaigh Cealla Formáid ón roghchlár comhthéacs, ansin sa Cealla Formáid dialóg, roghnaigh dáta ó na Catagóir liostáil, agus roghnaigh an cineál atá uait ón gcuid cheart.
doc-am-teaghrán-go-am-6

3. cliceáil OK. Anois is féidir leat an sreangán téacs a athrú go dáta agus go ham.
doc-am-teaghrán-go-am-7

Leid.Más mian leat am a thiontú go huaireanta, nóiméid nó soicind deachúil, déan iarracht an Kutools le haghaidh Excel'S Am Tiontaigh mar a thaispeántar sa phictiúr a leanas. Tá sé ag feidhmiú go hiomlán gan teorainn i 30 lá, íoslódáil agus triail saor in aisce anois.

Tiontaigh an t-am go luach deachúil in Excel go tapa

Mar shampla, tá liosta ama agat a theastaíonn chun uaireanta, nóiméid nó soicind todecimal a thiontú, conas is féidir leat é a réiteach go tapa agus go héasca in Excel? Tá an Am Tiontaigh of Kutools le haghaidh Excel, is féidir leis fabhar a dhéanamh duitse.   Cliceáil le haghaidh triail saor in aisce 30 lá!
am tiontaithe doc
 
Kutools for Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá.

Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
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