Calendar

woodier

New Member
Joined
Feb 20, 2002
Messages
8
How do I get the following formula to display a calendar?

{=if(month(date(d2,b2,1))<>month(date(d2,b2,1)-(weekday(date(d2,b2,1))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1,"",date(d2,b2,1-(weekday(date(d2,b2,1))-1+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1)}

d2 is the year and b2 is the month
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
review John Walkenbach's site.
He has an excellent example.

http://j-walk.com/ss/

Advise if this does not help.

There are errors in the array formula that you provided; but I did not edit it. Missing brackets and function names.

I removed the {} and then entered it with Ctrl-Shift-Enter.
This message was edited by Dave Patton on 2002-03-30 12:03
 
Upvote 0
To use Mr. John Walkenbach's formula,
- create the named ranges and named formulas
- select A2:G6 and Array Enter the formula

=IF(MONTH(Startdate)<>MONTH(Startdate-StartDOW+week*7+weekday-1),"",Startdate-StartDOW+week*7+weekday-1)

- Number Format custom d
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,253
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top