Skip i'r prif gynnwys

Sut i drosi dyddiad i fformat llinyn rhif neu fformat testun yn Excel?

Yn y tiwtorial hwn, byddaf yn cyflwyno sawl dull ar ddatrys gwahanol achosion ynghylch trosi dyddiad i rif neu fformat testun yn Excel.
dyddiad doc i destun rhif 1


1. Trosi dyddiad i destun

Mae'r adran hon yn darparu'r dulliau ar drosi dyddiad i destun yn Excel.

I drosi dyddiad i destun, dim ond un fformiwla sydd ei angen arnoch chi.

Fformiwla: = TESTUN (dyddiad, "date_format")

Cyfeirnod: dyddiad: y gell gyda dyddiad rydych chi am ei throsi i destun
fformat_dyddiad: y fformat rydych chi am ei arddangos ar ôl trosi'r dyddiad yn destun

Mewn achosion isod, byddaf yn dweud wrthych sut i ddefnyddio'r fformiwla hon.

1.1 Trosi dyddiad i destun mewn fformat mm / dd / bbbb

Er enghraifft, trosi dyddiad yng Nghell A3 i mm / dd / bbbb, defnyddiwch y fformiwla
= TESTUN (A3, "mm / dd / bbbb")
wasg Rhowch allweddol
dyddiad doc i destun rhif 2

Os ydych chi am drosi'r dyddiad yng Nghell A8 i dd / mm / bbbb, defnyddiwch y fformiwla hon
= TESTUN (A8, "dd / mm / bbbb")
wasg Rhowch allweddol
dyddiad doc i destun rhif 3

1.2 Trosi dyddiad i destun ar ffurf mmddyyyy neu ddmmyyyy

Os ydych chi am drosi'r dyddiad yng Nghell A13 i destun, ond mewn fformat mmddyyyy, teipiwch y fformiwla hon
= TESTUN (A13, "mmddyyyy")
wasg Rhowch allweddol
dyddiad doc i destun rhif 4

Os ydych chi am drosi dyddiad yng Nghell A18 i destun ar ffurf ddmmyyyy, teipiwch y fformiwla hon
= TESTUN (A18, "ddmmyyyy")
wasg Rhowch allweddol
dyddiad doc i destun rhif 5

1.3 Trosi dyddiad i destun mewn fformatau eraill

A dweud y gwir, pa bynnag fformat testun rydych chi am drosi dyddiad iddo, teipiwch y fformat rydych chi ei eisiau rhwng dyfynodau yn y fformiwla.

Dyddiad (A3) 12/23/2019
Fformiwla = TESTUN (A3, "mm-dd-bbbb") = TESTUN (A3, "mm / dd") = TESTUN (A3, "dd") = TESTUN (A3, "d / m / y")
Canlyniad 23-12-2019 23/12 23 23/12/19

Newydd!
offer dyddiad

Mae 16 o swyddogaethau a nodweddion dyddiad newydd yn datrys tasgau 90% ynghylch prosesu dyddiad yn Excel i chi.

◆ Ychwanegu neu dynnu blwyddyn / misoedd / diwrnodau / wythnosau hyd yn hyn, cliciwch am fanylion.

◆ Ychwanegu neu dynnu eiliadau / munudau / oriau hyd yma, cliciwch am fwy.

◆ Cyfrif penwythnosau / dyddiau'r wythnos rhwng dau ddyddiad. cliciwch am fwy.

◆ Tynnwch yr amser o'r dyddiad. cliciwch am fanylion.

◆ Trosi amser yn eiliadau / munites / oriau degol. cliciwch am fanylion.

◆ Trosi fformatau dyddiad lluosog i fformat dyddiad safonol yr UD. cliciwch am fanylion.

Treial 30 diwrnod am ddim gyda nodweddion llawn, 30-diwrnod dim rheswm ad-daliad.


2. Trosi dyddiad i rif

Yn yr adran hon, rwy'n darparu dulliau ar drosi dyddiad i rif mewn fformat 5 digid o fformat mmddyyyy.

2.1 Trosi dyddiad i rif mewn fformat 5 digid

Os ydych chi am drosi dyddiad i rif mewn fformat 5 digid, gwnewch fel y rhain:

1. Cliciwch ar y dde yn y gell sy'n cynnwys y dyddiad rydych chi am ei drosi i rif, ac yn y ddewislen clicio ar y dde, dewiswch Celloedd Fformat cyffredin.
dyddiad doc i destun rhif 6

2. Yn Celloedd Fformat deialog , o dan Nifer tab , dewis cyffredinol o baen Categori.
dyddiad doc i destun rhif 7

3. Cliciwch OK. Mae'r dyddiad mewn cell a ddewiswyd wedi'i drosi i linyn rhif ar ffurf mmddyyyy.
dyddiad doc i destun rhif 8

2.2 Trosi dyddiad i rif ar ffurf mmddyyyy neu ddmmyyyy

Os ydych chi am drosi llinyn dyddiad i rif rhif ar ffurf mmddyyyy neu ddmmyyyy, gallwch hefyd gymhwyso'r swyddogaeth Celloedd Fformat.

1. Cliciwch ar y dde yn y gell sy'n cynnwys y dyddiad rydych chi am ei drosi i rif, ac yn y ddewislen clicio ar y dde, dewiswch Celloedd Fformat cyffredin.

2. Yn y Celloedd Fformat deialog, dan Nifer tab, dewiswch Custom oddi wrth y Categori cwarel, yna ewch i'r adran dde, mynd i mewn mmddyyyy i mewn i'r math blwch testun.
dyddiad doc i destun rhif 9

3. Cliciwch OK. Mae'r dyddiad mewn cell a ddewiswyd wedi'i drosi i linyn rhif ar ffurf mmddyyyy
dyddiad doc i destun rhif 10

Os ydych chi am drosi dyddiad i linyn rhif mewn fformat arall, gallwch chi gymryd y rhestr isod fel cyfeiriad.

dyddiad 2/23/2019
Fformat Cell fel arfer ddmmyyyy ddmmyy myyyy yyyymmdd
arddangos 23022019 230219 022019 20190223

3. Trosi dyddiad i fis / diwrnod / blwyddyn neu fformatau dyddiad eraill gyda chliciau

Os ydych chi am drosi fformatau dyddiad i fis, diwrnod, blwyddyn neu ddyddiad arall yn gyflym, bydd y Gwneud Cais Fformatio Dyddiad cyfleustodau Kutools ar gyfer Excel yn ddewis da i'w ddefnyddio.

Ffarwelio â Llaw Llygoden a Spondylosis Serfigol Nawr

Mae offer uwch 300 o Kutools ar gyfer Excel yn datrys 80% Tasgau Excel mewn eiliadau, tynnu chi allan o'r miloedd o llygoden-cliciau.

Deliwch yn hawdd â 1500 o senarios gwaith, nid oes angen gwastraffu amser ar gyfer chwilio atebion, cael llawer o amser i fwynhau'ch bywyd.

Gwella cynhyrchiant 80% ar gyfer 110000+ o bobl hynod effeithiol bob dydd, gan gynnwys eich cynnwys chi wrth gwrs.

Peidiwch â chael eich poenydio bellach gan fformiwlâu poenus a VBA, rhowch orffwys a hwyliau gweithio llawen i'ch ymennydd.

Treial 30 diwrnod am ddim gyda nodweddion llawn, arian 30 diwrnod yn ôl heb resymau.

Mae Corff Gwell yn Creu Bywyd Gwell.

Ar ôl gosod am ddim Kutools ar gyfer Excel, gwnewch fel y nodir isod:

1. Dewiswch y celloedd sy'n cynnwys y dyddiadau rydych chi am eu trosi i fformatau dyddiad eraill.

2. Cliciwch Kutools > fformat > Gwneud Cais Fformatio Dyddiad.
dyddiad doc i destun rhif 11

3. Yn y Gwneud Cais Fformatio Dyddiad deialog, dewiswch y fformat dyddiad rydych chi am ei ddefnyddio Fformatio dyddiad yn y cyfamser, bydd y canlyniad wedi'i drosi yn cael ei ragolwg yn iawn Rhagolwg pane.
dyddiad doc i destun rhif 12

4. Cliciwch Ok, yna mae'r dyddiadau a ddewisoch wedi'u trosi i'r fformat dyddiad a ddewisoch.
dyddiad doc i destun rhif 13

Trosi dyddiad i fformatio dyddiad Unigoliaeth lluosog gyda chliciau

cymhwyso fformatio dyddiad

Mwy o awgrymiadau ar drosi dyddiad


Dadlwythwch ffeil sampl

sampl


Offer Cynhyrchaeth a Argymhellir

Tab Office - Pori Tabiau, Golygu, Rheoli Dogfennau Yn Microsoft Office 2019 - 2003 Ac Office 365


tab swyddfa

Kutools ar gyfer Excel - Yn Cyfuno Mwy Na 300 Swyddogaethau Uwch ac Offer ar gyfer Microsoft Excel


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