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

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

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


แปลงหมายเลขเดือนเป็นชื่อเดือนด้วยฟังก์ชัน TEXT

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

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

แปลงหมายเลขเดือนเป็นชื่อเดือนด้วย Kutools for Excel

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

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

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

ผล

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

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


วิดีโอ: วิธีแปลง 1-12 เป็นชื่อเดือนใน Excel


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

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

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

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

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

รายละเอียด


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

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