跳到主要内容

如何在Excel中创建动态每月日历?

您可能出于某种目的需要在Excel中创建动态每月日历。 更改月份时,将根据更改后的月份自动调整日历中的所有日期。 本文将详细介绍在Excel中创建动态每月日历的方法。

在Excel中创建动态每月日历


在Excel中创建动态每月日历

请执行以下操作以在Excel中创建动态每月日历。

1.您需要提前创建一个表单控件组合框。 请点击 开发商 > 插页 > 组合框(表单控件)。 看截图:

2.然后在单元格A1中绘制一个组合框。

3.创建一个包含所有月份名称的列表。 如下图所示,在这里我在AH1:AH12范围内创建了这个月的名字列表。

4.右键单击组合框,然后单击 格式控制 从右键单击菜单中。 看截图:

5.在 格式控制 对话框,然后在 系统 标签,选择范围,其中包含您在步骤3中创建的月份名称 输入范围 框,然后在 单元链接 框中选择 A1,然后在 下拉线 装到 12,最后点击 OK 按钮。 看截图:

6.选择一个空白单元格以显示月份的开始日期(此处选择单元格B6),然后输入公式 =日期(A2,A1,1) 进入编辑栏,然后按 输入 键。

备注:在公式中,A2是包含特定年份的单元格,而A1是包含一年中所有月份的组合框。 当从组合框中选择三月并在单元格A2016中输入2时,单元格B6中的日期将变为2016/3/1。 见上面的截图:

7.选择B6的右侧单元格,输入公式 = B6 + 1 进入公式栏,然后按 输入 键。 现在您获得一个月的第二个日期。 看截图:

8.继续选择单元格C6,然后将“填充手柄”拖动到右边的单元格,直到到达月底。 现在,将创建整个月历。

9.然后,您可以根据需要格式化日期。 选择所有列出的日期单元格,然后单击 主页 > 方向 > 向上旋转文字。 看截图:

10.选择包含所有日期单元格的整个列,右键单击列标题,然后单击 列宽。 在弹出 列宽 对话框,在框中输入数字3,然后单击 OK 按钮。 看截图:

11.选择所有日期单元格,然后按 按Ctrl + 1 同时打开 单元格格式 对话框。 在此对话框中,单击 定制版 ,在 产品分类 框中,将ddd dd输入到 Type 框,然后单击 OK 按钮。

现在,所有日期都更改为指定的日期格式,如下图所示。

您可以根据需要将日历自定义为任何样式。 在相应的单元格中更改月份或年份后,月历的日期将动态调整为指定的月份或年份。

日期选择器(从日历中轻松选择具有特定日期格式的日期,然后插入到选定的单元格中):

这里介绍一个有用的工具– 插入日期 实用程序 Kutools for Excel,使用此实用程序,您可以轻松地从日期选择器中选择特定格式的日期,然后双击将其插入到选定的单元格中。 立即下载并试用! (30 天免费试用)


相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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