在excel中自动填充特定月份的日期 [英] Autofill dates in excel for particular month

查看:59
本文介绍了在excel中自动填充特定月份的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 excel 2007,我想自动填充特定月份的日期.

i am using excel 2007 and i want to autofill dates of a particular month.

在上面的屏幕截图中,我通过单元格 A48 的下拉菜单选择月份,我想在单元格 B51:AF51 中自动填充日期.例如,如果我选择 5 月,则应自动填充日期 1 至 31 和 6 月的日期 1 至 30.

In above screenshot, i am selecting Month through drop down in cell A48, i want to auto fill dates in cell B51:AF51. For example, if i select May month then dates 1 to 31 and for June dates 1 to 30 should be autofilled.

推荐答案

在 b51,

=if(month($a48)=month(date($a47, month($a48), column(a:a))), date($a47, month($a48), column(a:a)), text(,))

再填充 30 个单元格.

Fill right an additional 30 cells.

这篇关于在excel中自动填充特定月份的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆