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
{=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