• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Build Dynamic Calendar: Select Month using Dropdown List

jdppep

Member
I am attempting to build a calendar without VBA or array formulas. I have successfully created a calendar using dummy cells; however, am trying to write formulas which would not require these dummy cells.

The formula which works, but requires dummy cells (in orange):
=IF(MONTH(COLUMNS($B4:B4)+(ROWS(B$4:B4)-1)*7-$N$4+$N$3)=$N$5,COLUMNS($B4:B4)+(ROWS(B$4:B4)-1)*7-$N$4+$N$3,"")

I have attempted:
=IF(MONTH(COLUMNS($B4:B4)+(ROWS(B$4:B4)-1)*7-WEEKDAY($B$2,1)+DATE(YEAR($B$2),MONTH($B$2),1)=MONTH($B$2),COLUMNS($B4:B4)+(ROWS(B$4:B4)-1)*7-WEEKDAY($B$2,1)+DATE(YEAR($B$2),MONTH($B$2),1)),"")

Please see attachment for an example.

Thank you!
 

Attachments

  • Calendar-Example.xlsx
    11.2 KB · Views: 7
Back
Top