ไปยังเนื้อหาหลัก

วิธีการแปลง 1-12 เป็นชื่อเดือนใน Excel?

ลองนึกภาพคุณเพิ่งได้รับรายงานยอดขายโดยระบุเดือนเป็นตัวเลขตั้งแต่ 1 ถึง 12 และคุณต้องแสดงเป็นชื่อเดือนที่เกี่ยวข้อง ดังที่แสดงในภาพหน้าจอด้านล่าง สงสัยว่าจะบรรลุเป้าหมายนี้ได้อย่างไร? ในบทความนี้ เราจะแนะนำคุณผ่านสองวิธีที่มีประสิทธิภาพเพื่อทำการแปลงนี้ได้อย่างราบรื่น


แปลง 1-12 เป็นชื่อเดือนด้วยสูตร

จริงๆแล้วเราสามารถใช้ไฟล์ TEXT ฟังก์ชันในการแปลงตัวเลข (ตั้งแต่ 1 ถึง 12) เป็นชื่อเดือนปกติได้อย่างง่ายดายใน Excel กรุณาดำเนินการดังนี้:

เลือกเซลล์ว่างถัดจากตารางการขายพิมพ์สูตร =TEXT(A2*29,"mmm") (หมายเหตุ: A2 คือหมายเลขแรกของรายการเดือนที่คุณจะแปลงเป็นชื่อเดือน) จากนั้นลากตัวจัดการการป้อนอัตโนมัติลงไปที่เซลล์อื่น

ตอนนี้คุณจะเห็นตัวเลข (ตั้งแต่ 1 ถึง 12) ถูกแปลงเป็นชื่อเดือนปกติ


แทนที่ 1-12 ด้วยชื่อเดือนที่เกี่ยวข้องด้วย Kutools for Excel

ในตัวอย่างข้างต้นเป็นที่ชัดเจนว่า TEXT ฟังก์ชันเก่งในการสร้างชื่อเดือน แต่จะทำได้ในเซลล์ใหม่ที่แยกจากกัน สำหรับผู้ที่มี Kutools for Excel มีแนวทางที่ตรงไปตรงมากว่านี้อีก โดยใช้ การดำเนินการ คุณลักษณะใน Kutools คุณสามารถแทนที่ตัวเลข (ตั้งแต่ 1 ถึง 12) ได้โดยตรงด้วยชื่อเดือนที่เกี่ยวข้อง

Kutools for Excel - เต็มไปด้วยเครื่องมือที่จำเป็นสำหรับ Excel มากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! ดาวน์โหลดเดี๋ยวนี้!

  1. เลือกตัวเลขที่คุณจะแปลงเป็นชื่อเดือนที่เกี่ยวข้อง
  2. เกี่ยวกับ Kutools ในแท็บ การตัดต่อ กลุ่มเลือก More > การดำเนินการ.
    เคล็ดลับ: ขึ้นอยู่กับการตั้งค่าการแสดงผลของคุณ การดำเนินการ คำสั่งอาจมองเห็นได้โดยตรงภายใน การตัดต่อ กลุ่ม
  3. ตัว Vortex Indicator ได้ถูกนำเสนอลงในนิตยสาร เครื่องมือการทำงาน โปรดทำดังนี้:
    1. เลือก ประเพณี ตัวเลือกใน การดำเนินการ กล่อง.
    2. พิมพ์สูตร =TEXT(?*29,"mmm") ใน ประเพณี กล่อง.
    3. ตรวจสอบ สร้างสูตร ตัวเลือก
    4. คลิก Ok.

ผล

ตอนนี้คุณจะสังเกตเห็นว่าชื่อเดือนได้แทนที่หมายเลขที่เลือกโดยตรง ดูภาพหน้าจอ:

หมายเหตุ ต้องการเข้าถึง การดำเนินการ คุณประโยชน์? ดาวน์โหลด Kutools for Excel ตอนนี้! นอกเหนือจากนี้ Kutools ยังมีคุณสมบัติอื่นๆ มากมายกว่า 300 รายการ และให้ทดลองใช้ฟรี 30 วัน อย่ารอช้า ท้าให้ลองเลยวันนี้!


บทความที่เกี่ยวข้อง:

วิธีแปลงวันที่เป็นชื่อวันธรรมดาหรือชื่อเดือนใน Excel

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เสริมทักษะ Excel ของคุณด้วย Kutools for Excelและสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools for Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

kte แท็บ 201905


Office Tab นำอินเทอร์เฟซแบบแท็บมาสู่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
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