Skip i'r prif gynnwys

Sut i drosi 1-12 i enw mis yn Excel?

Imagine you've just received a sales report where the months are listed as numbers from 1 to 12, and you need to display them as corresponding month names, as illustrated in the screenshot below. Wondering how to achieve this? In this article, we will guide you through two effective methods to seamlessly make this conversion.


Convert 1-12 to month name with a formula

Mewn gwirionedd, gallwn gymhwyso'r TEXT swyddogaeth i drosi rhifau (o 1 i 12) i enwau mis arferol yn hawdd yn Excel. Gwnewch fel a ganlyn:

Dewiswch gell wag wrth ymyl y bwrdd gwerthu, teipiwch y fformiwla =TEXT(A2*29,"mmm") (Nodyn: A2 yw rhif cyntaf y rhestr Mis y byddwch chi'n ei drosi i enw'r mis), ac yna llusgwch y Trin AutoFill i lawr i gelloedd eraill.

Nawr fe welwch fod y rhifau (o 1 i 12) yn cael eu trosi'n enwau mis arferol.


Replace 1-12 with corresponding month names with Kutools for Excel

In the example above, it's clear that the TEXT function excels at creating month names, but it does so in a new, separate cell. For those who have Kutools for Excel at their disposal, there's an even more straightforward approach. By using the Ymgyrch feature in Kutools, you can directly substitute the numbers (ranging from 1 to 12) with the corresponding month names.

Kutools for Excel - Yn llawn dros 300 o offer hanfodol ar gyfer Excel. Mwynhewch dreial 30 diwrnod llawn sylw AM DDIM heb fod angen cerdyn credyd! Lawrlwytho nawr!

  1. Select the numbers you will convert to their corresponding month names.
  2. Ar y Kutools tab, yn y Golygu grwp, dewiswch Mwy > Ymgyrch.
    Tip: Depending on your display settings, the Ymgyrch command might also be directly visible within the Golygu grŵp.
  3. Yn y Offer Gweithredu blwch deialog, gwnewch fel a ganlyn:
    1. dewiswch y Custom opsiwn yn y Ymgyrch blwch.
    2. Teipiwch y fformiwla =TEXT(?*29,"mmm") yn y Custom blwch.
    3. Gwiriwch y Creu fformwlâu opsiwn.
    4. Cliciwch Ok.

Canlyniad

Now you will observe that the month names have directly replaced the selected numbers. See screenshot:

Nodyn: Eisiau cael mynediad i'r Ymgyrch cyfleustodau? Lawrlwythwch Kutools for Excel nawr! Y tu hwnt i hyn, mae gan Kutools fyrdd o 300+ o nodweddion eraill ac mae'n cynnig treial 30 diwrnod am ddim. Peidiwch ag aros, rhowch gynnig arni heddiw!


Erthyglau cysylltiedig:

Sut i drosi dyddiad i enw yn ystod yr wythnos neu enw mis yn Excel?

Offer Cynhyrchiant Swyddfa Gorau

Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools for Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed o'r blaen. Kutools for Excel Yn cynnig dros 300 o nodweddion uwch i hybu cynhyrchiant ac arbed amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

tab kte 201905


Office Tab Yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (17)
Rated 4.5 out of 5 · 2 ratings
This comment was minimized by the moderator on the site
I get the same issue, the only return is "00" regardless of using *28 or *29 in the formula. A column only includes numbers 1-12 so and are in text format, so I can't figure out the issue.
This comment was minimized by the moderator on the site
Hi there,

Can you show me a screenshot of your data?
Note: Please select the cell where you entered the formula and then take a screenshot that includes both your data and the formula bar.

Amanda
This comment was minimized by the moderator on the site
For some reason neither the TEXT formula (=TEXT(cell reference;"mmmm")) nor setting the custom cell format to mmmm is working - both simply return the value "00". Any ideas why this is happening? Simply using the MONTH formula returns the correct month number, so the problem can't be the format of the date.
This comment was minimized by the moderator on the site
Hi there,

I think the formula in the tutorial is =TEXT(A2*29,"mmm"). And A2 in the formula is the number, say, 2, that you want to convert it to the month text, say, February.

Amanda
This comment was minimized by the moderator on the site
is there a way to do the kutools example above without getting the extension? For example I type number 1 - 12 on a cell and it automatically changes to a month name?
This comment was minimized by the moderator on the site
Hi there,

Sorry that you cannot do it directly.
However, once you've applied the function, you can easily apply it again by clicking on the Re-run Last Utility button:
https://www.extendoffice.com/images/stories/comments/ljy-picture/re-run_utility.png

You can click on the button to re-run last utility, or click on the drop-down arrow to select the last utilities you have applied to run it again.

Amanda
This comment was minimized by the moderator on the site
Can you explain why is number 29 in this formula ?
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
You could also use 28 instead of 29 with the same results.
30 will fail for February and 27 will fail for December, so the only options are 28 and 29
John #30837
30 should fail for February but doesn't because Excel incorrectly assumes that 1900 was a leap year.
27 actually fails for September, October, November and December
Chris #30838

Hi, the above two comments from the page should explain the reason.
If you have other questions, please don't hesitate to ask. :)

Amanda
This comment was minimized by the moderator on the site
Principle works. 29 produces error if you have more than few years. 30.4167 works for more than 10 years.
This comment was minimized by the moderator on the site
Coba ini..


=TEXT( "1/" & A2 & "/2022 " ; "m mm mmm mmmm" )


Keterangan :
"1/" dibuat per tanggal 1
A2 cell angka bulan 1 - 12
"/2022" dibuat per tahun 2022
"m mm mmm mmmm" untuk memilih format.

Nanti hasilnya 4 04 Apr April
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
Hi, are you tring to have a list of dates in format: day/month/year?
If so, you can just use a formula like this: ="1/"&A2&"/2022".

Amanda
This comment was minimized by the moderator on the site
Gracias, me sirvio mucho tu explicación.
This comment was minimized by the moderator on the site
Very helpful! Thanks so much!
This comment was minimized by the moderator on the site
Can you explain why is number 29 in this formula ?
This comment was minimized by the moderator on the site
The text formula treats the number as a day in the year. So 1 would be 1st of January, and 365 would be 31st December. If you convert these numbers to months then 1 would be January and 365 would be December. With 2, the formula would see this as 2nd of January so would still return as January. However, with the 29, we can make this 2 58 instead, which alludes to Feb 27th. The formula will thus return this as feb. The same is applied for the numbers 1 to 12. Hope this helps
This comment was minimized by the moderator on the site
You could also use 28 instead of 29 with the same results.

30 will fail for February and 27 will fail for December, so the only options are 28 and 29
This comment was minimized by the moderator on the site
30 should fail for February but doesn't because Excel incorrectly assumes that 1900 was a leap year.
27 actually fails for September, October, November and December
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations