Today I want to share an Employee Shift Calendar Template with you. You can use this template to keep track of shift timings on various days.
See a demo of the template:
![]()
How does this template work?
This template uses a 3 main ideas,
- Excel formulas to create the calendar & checking for a day’s shift
- Conditional formatting to highlight a date in different color based on shift
- Scroll-bar form control to change the month
Here is a brief illustration explaining how this template works:
![]()
For more information on these techniques visit,
- Building a Calendar in Excel
- VLOOKUP formula – Introduction & uses
- Conditional formatting – Introduction & tutorial
- Form Controls in Excel – What are they and how to use them?
- Range lookup in Excel – how to write formulas?
Download Excel Template for Employee Shift Tracking & Shift Calendar
Download the Employee Shift Tracking Template
Go ahead and play with the file to learn more.
How to use this template?
I made a short video explaining this template and how to use it. See it below (or on our YouTube Channel).
Do you like this template?
I like the challenge of building this template. It nicely integrates 3 powerful ideas – date formulas, conditional formatting & form controls to create a concise tracker to manage employee shift data.
What about you? Did you like this template? How are you planning to use it? Please share using comments.
More templates & downloads
We got more templates to make you awesome!!! Go ahead and try these and impress someone.
- New year resolutions template in Excel
- Holiday (Vacation) Request Form Template
- Free 2011 Calendar Template (secret: works for any year too)
- Annual Goal Tracker Template
- Expense Trackers
- Project Management Templates [for sale]
PS: Thanks to Denice, who emailed me and asked for this template.

















6 Responses to “Make VBA String Comparisons Case In-sensitive [Quick Tip]”
Another way to test if Target.Value equal a string constant without regard to letter casing is to use the StrCmp function...
If StrComp("yes", Target.Value, vbTextCompare) = 0 Then
' Do something
End If
That's a cool way to compare. i just converted my values to strings and used the above code to compare. worked nicely
Thanks!
In case that option just needs to be used for a single comparison, you could use
If InStr(1, "yes", Target.Value, vbTextCompare) Then
'do something
End If
as well.
Nice tip, thanks! I never even thought to think there might be an easier way.
Regarding Chronology of VB in general, the Option Compare pragma appears at the very beginning of VB, way before classes and objects arrive (with VB6 - around 2000).
Today StrComp() and InStr() function offers a more local way to compare, fully object, thus more consistent with object programming (even if VB is still interpreted).
My only question here is : "what if you want to binary compare locally with re-entering functions or concurrency (with events) ?". This will lead to a real nightmare and probably a big nasty mess to debug.
By the way, congrats for you Millions/month visits 🙂
This is nice article.
I used these examples to help my understanding. Even Instr is similar to Find but it can be case sensitive and also case insensitive.
Hope the examples below help.
Public Sub CaseSensitive2()
If InStr(1, "Look in this string", "look", vbBinaryCompare) = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub
Public Sub CaseSensitive()
If InStr("Look in this string", "look") = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub
Public Sub NotCaseSensitive()
'doing alot of case insensitive searching and whatnot, you can put Option Compare Text
If InStr(1, "Look in this string", "look", vbTextCompare) = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub