Calendar creation

BarbaraJoy

New Member
Joined
Dec 2, 2017
Messages
1
I am attempting to design my own calendar template since the ones that I have found are not what I need. I have a couple of questions
Is there a way to enter in the days of the week with a formula or is it easiest just to type them in?
is there a way to put the dates into a month at a glance with a formula or should I just type them in individually?
Thanks in advance.

 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Explain more about what type calendar you want.
Here is one I created for myself but not sure what you want.
This script creates a calendar for the current month and highlights todays date.
Code:
Sub Your_Calendar()
'Modified 12-2-17 4:55 PM EST
ans = InputBox("What Range Should First Cell Be ?" & vbNewLine & "If left empty will use active cell", , "E7")
If ans = "" Then ans = ActiveCell.Address
Range(ans).Resize(5, 7).Select
Selection.Name = "Month"
Range("Month").Font.Size = 16
Dim z As Integer
z = 0
Dim Del As Variant
Del = Array("Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat")
MN = DateSerial(Year(Date), Month(Date), 1)
    
    For Each c In Range("Month")
        
        c.Value = (MN - Weekday(MN - 1) + Count)
        
        Count = Count + 1
    Next
    With Range("Month")
       
        .Interior.ColorIndex = 5
        .Find(What:=Date).Select
        ActiveCell.Interior.ColorIndex = 4
        End With
z = -1
Range("Month").Offset(-1).Resize(1, 7).Select
    For Each c In Selection
    z = z + 1
    c.Value = Del(z)
    Next
Range("Month").Columns.AutoFit
Selection.Interior.ColorIndex = 6
Selection.Font.Size = 16
Selection.HorizontalAlignment = xlCenter
Range("Month").NumberFormat = "m/d/yy"
Range("Month")(1).Select
End Sub
 
Upvote 0
Welcome to the forum.

As you've found, there are thousands of ways to make a calendar, but typically, none of them do exactly what you want! :mad:

As far as entering the days of the week, you could just enter "Sunday" in one cell, then select the cell, click on the bottom right corner, and drag it to the right, and Excel will fill in the days for you. You could use a formula, which I've shown below.

Excel 2012
ABCDEFGHI
112/1/2017SundayMondayTuesdayWednesdayThursdayFridaySaturday
212
33456789
410111213141516
517181920212223
624252627282930
731

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C1=TEXT("2017-12-"&COLUMNS($C1:C1)+2,"dddd")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
C2:I7{=IFERROR(DAY(TEXT(A1,"yyyy-mm-")&{2,3,4,5,6,7,8}+{0;7;14;21;28;35}-WEEKDAY(A1)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



Put the formula in C1, then drag to the right. As far as the dates, put the first day of the month you want in A1. Now select C2:I7 (or any other 7X6 range). With the whole range still selected, enter the C2 formula, then confirm it by pressing Control+Shift+Enter, instead of just enter. Now the dates will fill the grid when you change the date in A1. You can format the grid as you like, with gridlines, or fonts, or colors. You could also put individual formulas in the cells if you want, depending on what else you want to do with the calendar.

Let us know if this helps!
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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