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

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

问题描述

我正在使用excel 2007,我想自动填写特定月份的日期。

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

在上面的屏幕截图中,我在单元格A48中选择Month(逐月),我想在单元格B51:AF51中自动填充日期。例如,如果我选择五月,那么日期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个单元格。

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

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