跳到主要內容

如何在Excel中創建動態每月日曆?

您可能出於某種目的需要在Excel中創建動態每月日曆。 更改月份時,將根據更改後的月份自動調整日曆中的所有日期。 本文將詳細介紹在Excel中創建動態每月日曆的方法。

在Excel中創建動態每月日曆


在Excel中創建動態每月日曆

請執行以下操作以在Excel中創建動態每月日曆。

1.您需要提前創建一個表單控件組合框。 請點擊 開發者 > 插入 > 組合框(表單控件)。 看截圖:

2.然後在單元格A1中繪製一個組合框。

3.創建一個包含所有月份名稱的列表。 如下圖所示,在這裡我在AH1:AH12範圍內創建了這個月的名字列表。

4.右鍵單擊組合框,然後單擊 格式控制 從右鍵單擊菜單中。 看截圖:

5。 在裡面 格式控制 對話框,然後在 控制 標籤,選擇範圍,其中包含您在步驟3中創建的月份名稱 輸入範圍 框,然後在 單元鏈接 框中選擇 A1,然後在 下拉線 盒子到 12,最後點擊 OK 按鈕。 看截圖:

6.選擇一個空白單元格以顯示月份的開始日期(此處選擇單元格B6),然後輸入公式 =日期(A2,A1,1) 進入編輯欄,然後按 Enter 鍵。

備註:在公式中,A2是包含特定年份的單元格,而A1是包含一年中所有月份的組合框。 當從組合框中選擇三月並在單元格A2016中輸入2時,單元格B6中的日期將變為2016/3/1。 見上面的截圖:

7.選擇B6的右側單元格,輸入公式 = B6 + 1 進入公式欄,然後按 Enter 鍵。 現在您獲得一個月的第二個日期。 看截圖:

8.繼續選擇單元格C6,然後將“填充手柄”拖動到右邊的單元格,直到到達月底。 現在,整個月曆已創建。

9.然後,您可以根據需要格式化日期。 選擇所有列出的日期單元格,然後單擊 首頁 > 方向 > 向上旋轉文字。 看截圖:

10.選擇包含所有日期單元格的整個列,右鍵單擊列標題,然後單擊 列寬。 在彈出 列寬 對話框,在框中輸入數字3,然後單擊 OK 按鈕。 看截圖:

11.選擇所有日期單元格,然後按 按Ctrl + 1 同時打開 單元格格式 對話框。 在此對話框中,單擊 習俗 ,在 類別 框中,將ddd dd輸入到 類別 框,然後單擊 OK 按鈕。

現在,所有日期都更改為指定的日期格式,如下圖所示。

您可以根據需要將日曆自定義為任何樣式。 在相應的單元格中更改月份或年份後,月曆的日期將動態調整為指定的月份或年份。

日期選擇器(從日曆中輕鬆選擇具有特定日期格式的日期,然後插入到選定的單元格中):

這裡介紹一個有用的工具– 插入日期 的效用 Excel的Kutools,使用此實用程序,您可以輕鬆地從日期選擇器中選擇特定格式的日期,然後雙擊將其插入到選定的單元格中。 立即下載並試用! (30 天免費試用)


相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 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