Autopopulate a calendar?

trowa
trowa used Ask the Experts™
on
I got a requirement to auto-populate an Excel with Calendar based on a Date's value (let's say A1)

So, if A1 = 1 Nov 2017, the excel should auto-populate a calendar in Nov 17; same if A1 = 1 Dec 2017, the excel should auto-populate a calendar in Dec 17, and so forth.

SnapShot.png
Is that possible by using pure Excel formula? I don't need a complex solution here.

Thank you.
test1.xlsx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Rob HensonFinance Analyst

Commented:
With this formula in B15 you can identify the Monday prior to the 1st of the month specified, or if the 1st is the Monday then that date:

=IF(WEEKDAY(A1,1)=2,A1,FLOOR(A1,7)+2)

You can then use =B15+1 in C15 and copied across to F15
Then use  =B15+7 in B16 and copied across and down to F19.

You can then use Conditional formatting to ensure that surplus days prior to 1st of month or after end of month are formatted as white font on white background with this formula:

=OR(B15<$A$1,B15>EOMONTH($A$1,0)) and apply format of white text.

I will upload a sample shortly.
Rob HensonFinance Analyst
Commented:
See attached.
calrendar-test1.xlsx
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
Please find the attached with one simple approach.
Remember that the columns B and H are hidden.
Calendar.xlsx

Author

Commented:
Thank you both, very nice solutions!
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome Trowa! Glad we could help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial