Autofill dates in excel for particular month

徘徊边缘 提交于 2019-12-02 15:09:33

问题


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

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.


回答1:


In b51,

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

Fill right an additional 30 cells.



来源:https://stackoverflow.com/questions/44072994/autofill-dates-in-excel-for-particular-month

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!