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

วิธีสร้างปฏิทินรายเดือนแบบไดนามิกใน Excel

คุณอาจต้องสร้างปฏิทินรายเดือนแบบไดนามิกใน Excel เพื่อวัตถุประสงค์บางอย่าง เมื่อเปลี่ยนเดือนวันที่ทั้งหมดในปฏิทินจะถูกปรับโดยอัตโนมัติตามเดือนที่เปลี่ยนแปลง บทความนี้จะแสดงวิธีการสร้างปฏิทินรายเดือนแบบไดนามิกใน Excel โดยละเอียด

สร้างปฏิทินรายเดือนแบบไดนามิกใน Excel


สร้างปฏิทินรายเดือนแบบไดนามิกใน Excel

โปรดทำดังนี้เพื่อสร้างปฏิทินรายเดือนแบบไดนามิกใน Excel

1. คุณต้องสร้าง Form Controls Combo Box ล่วงหน้า คลิก ผู้พัฒนา > สิ่งที่ใส่เข้าไป > Combo Box (การควบคุมแบบฟอร์ม). ดูภาพหน้าจอ:

2. จากนั้นวาด Combo Box ในเซลล์ A1

3. สร้างรายการที่มีชื่อเดือนทั้งหมด ตามภาพหน้าจอด้านล่างที่นี่ฉันสร้างรายการชื่อเดือนนี้ในช่วง AH1: AH12

4. คลิกขวาที่ Combo Box แล้วคลิก การควบคุมรูปแบบ จากเมนูคลิกขวา ดูภาพหน้าจอ:

5 ใน การควบคุมรูปแบบ กล่องโต้ตอบและภายใต้ Control เลือกช่วงที่มีชื่อเดือนที่คุณสร้างในขั้นตอนที่ 3 ใน ช่วงป้อนข้อมูล และใน ลิงค์เซลล์ เลือก A1จากนั้นเปลี่ยนตัวเลขในไฟล์ รายการแบบเลื่อนลง กล่องถึง 12แล้วคลิกไฟล์ OK ปุ่ม. ดูภาพหน้าจอ:

6. เลือกเซลล์ว่างเพื่อแสดงวันที่เริ่มต้นของเดือน (ที่นี่ฉันเลือกเซลล์ B6) จากนั้นป้อนสูตร = วันที่ (A2, A1,1) ลงในแถบสูตรแล้วกด เข้าสู่ กุญแจ

หมายเหตุ: ในสูตร A2 คือเซลล์ที่มีปีที่กำหนดและ A1 คือกล่องคำสั่งผสมประกอบด้วยเดือนทั้งหมดของปี เมื่อเลือกเดือนมีนาคมจากกล่องคำสั่งผสมและเข้าสู่ปี 2016 ในเซลล์ A2 วันที่ในเซลล์ B6 จะเปลี่ยนเป็น 2016/3/1 ดูภาพหน้าจอด้านบน:

7. เลือกเซลล์ด้านขวาของ B6 ป้อนสูตร = B6 + 1 ในแถบสูตรแล้วกดปุ่ม เข้าสู่ สำคัญ. ตอนนี้คุณได้รับวันที่สองของเดือน ดูภาพหน้าจอ:

8. เลือกเซลล์ C6 ต่อไปจากนั้นลาก Fill Handle ไปยังเซลล์ด้านขวาจนกว่าจะถึงสิ้นเดือน ตอนนี้ปฏิทินรายเดือนทั้งหมดถูกสร้างขึ้น

9. จากนั้นคุณสามารถจัดรูปแบบวันที่ตามที่คุณต้องการ เลือกเซลล์วันที่ในรายการทั้งหมดจากนั้นคลิก หน้าแรก > ปฐมนิเทศ > หมุนข้อความขึ้น. ดูภาพหน้าจอ:

10. เลือกคอลัมน์ทั้งหมดที่มีเซลล์วันที่ทั้งหมดคลิกขวาที่ส่วนหัวของคอลัมน์แล้วคลิก ความกว้างของคอลัมน์. ในการโผล่ขึ้นมา ความกว้างของคอลัมน์ ให้ป้อนหมายเลข 3 ลงในกล่องจากนั้นคลิกที่ไฟล์ OK ปุ่ม. ดูภาพหน้าจอ:

11. เลือกเซลล์วันที่ทั้งหมดกด Ctrl + 1 พร้อมกันเพื่อเปิดไฟล์ จัดรูปแบบเซลล์ กล่องโต้ตอบ ในกล่องโต้ตอบนี้คลิก ประเพณี ใน หมวดหมู่ ให้ป้อน ddd dd ลงในไฟล์ ชนิดภาพเขียน จากนั้นคลิกที่ไฟล์ OK ปุ่ม

ตอนนี้วันที่ทั้งหมดเปลี่ยนเป็นรูปแบบวันที่ที่ระบุตามภาพด้านล่างที่แสดง

คุณสามารถปรับแต่งปฏิทินให้เป็นสไตล์ใดก็ได้ตามที่คุณต้องการ หลังจากเปลี่ยนเดือนหรือปีในเซลล์ที่เกี่ยวข้องวันที่ของปฏิทินรายเดือนจะปรับแบบไดนามิกตามเดือนหรือปีที่ระบุ

ตัวเลือกวันที่ (เลือกวันที่ได้อย่างง่ายดายด้วยรูปแบบวันที่เฉพาะจากปฏิทินและแทรกไปยังเซลล์ที่เลือก):

ที่นี่แนะนำเครื่องมือที่มีประโยชน์ - ไฟล์ แทรกวันที่ ประโยชน์ของ Kutools สำหรับ Excelด้วยยูทิลิตี้นี้คุณสามารถเลือกวันที่ที่มีรูปแบบเฉพาะจากเครื่องมือเลือกวันที่และแทรกลงในเซลล์ที่เลือกด้วยการดับเบิลคลิก ดาวน์โหลดและทดลองใช้ทันที! (เส้นทางฟรี 30 วัน)


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

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

🤖 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 (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
al escribir = FECHA (A2, A1,1) me sale error
This comment was minimized by the moderator on the site
Hi Manuel,
What kind of erro did you get? If it returns a #NUM! error value, the error value will be replaced with a date after selecting an item from the combo box.
To be mentioned, the formula provided in the post can only be applied in English system environment Excel. If you have Excel in a different language than English, please convert the formula from English to the language you are currently using.
It seems that you are using the Excel in Spanish language system. You need to change the commas in the formula to semicolons.
You can translate the formula in this page: https://de.excel-translator.de/translator/
This comment was minimized by the moderator on the site
Hi does anyone know how to do this without using weekends?
This comment was minimized by the moderator on the site
День добрый.Создал по Вашему примеру календарь в одну строку, но есть одна проблема.При выборе месяцев, где дней меньше чем 31, например Февраль, после последнего дня в феврале в календаре показываются три первых дня марта.01.02.21 02.02.21 03.02.21 04.02.21 05.02.21 06.02.21 07.02.21 08.02.21 09.02.21 10.02.21 11.02.21 12.02.21 13.02.21 14.02.21 15.02.21 16.02.21 17.02.21 18.02.21 19.02.21 20.02.21 21.02.21 22.02.21 23.02.21 24.02.21 25.02.21 26.02.21 27.02.21 28.02.21 01.03.21 02.03.21 03.03.21
Как можно скрыть отображение этих лишних дней?
This comment was minimized by the moderator on the site
I really appreciate your effort Sir. But since I was using the excel format 2010, in the Format Control dialog box there is no Control tab, so is there any way to input range?
This comment was minimized by the moderator on the site
Hi Fatihah,There are 2 families of controls in Excel: Form Controls and ActiveX Controls.Forms controls have a number of tabs on their Format Control dialog, including Control. However, ActiveX Controls do not have the Control tab on their Format Control dialog.
This article used the Combo Box (Form Control).Please check which combo box you are using.
This comment was minimized by the moderator on the site
Has anyone found a solution to the issue of dates and days are changing but the data in the coloumns/cells is static, its not changing when we change the month.
This comment was minimized by the moderator on the site
Sir, 9/5/2020.Very clearly and wisely you have shown the steps. I must appreciate your efforts to design the project.I also hope to receive from you more ideas and Tips in future too.Thanking you once again.Kanhaiyalal Newaskar.
This comment was minimized by the moderator on the site
I did it but I didn't get it this solution why so lengthy. Normally I enter the First date then I drag the date down its gives me full moth calendar automatically. I didn't understand why this so complicated.
This comment was minimized by the moderator on the site
the dates and days are changing but the data in the coloumns is static, its not changing when we change the month? please help
This comment was minimized by the moderator on the site
Has anyone found a solution to this issue? There must be a work around........
This comment was minimized by the moderator on the site
I have the same problem!
This comment was minimized by the moderator on the site
Hi,
Can you tell me your Excel version?
This comment was minimized by the moderator on the site
Any answer about this comment? I really need that to my work
This comment was minimized by the moderator on the site
Has anyone found a solution to this
This comment was minimized by the moderator on the site
Is is possible to adjust formulas so they do not create extra days for February and and if month have 30 days?
This comment was minimized by the moderator on the site
thanks this is very helpful for me. again thanks
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations