Excel WorkBook Examples

This page lists some example Excel demonstrations. These are presented in the form of an Excel spreadsheet, containing instructions as well as a working example. Please feel free to help yourself.

Many of these examples use macros, so you will need to ensure you have set your Excel macro security level sufficiently low to allow them to run.

All workbooks are now zipped for faster downloading. If you are not using Windows XP you might need to download the free version ofWinzip or similar free software.

Menu

Excel Features Excel Functions & Formulas Excel VBA Examples

Advanced Filter CHOOSE() Calendar Control
Contacts form Concatenation Database form
Data Validation Dropdown List Nesting Summary
  SUMIF() and COUNTIF() Timesheet

 

VLOOKUP() Protect with UserInterFaceOnly
    Message box
    Table of Contents
    Populate UserForm
    Hyperlink in UserForm

Go to the top of this pageGo to the next item on this page  Advanced Filter feature
How to automate the Advanced Filter in Excel using VBA.
Click here to download the example (52Kb)


Go to the top of this pageGo to the next item on this pageGo to the previous item on this page  Calendar example
This example demonstrates a calendar control. Created by Phil Johnson for OzGrid Forum: Click For OzGrid Forum 
Click here to download the example (82Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page CHOOSE() function
S
elects a value or action from a list of values (maximum of 29) based on a selection in another cell. In this example the choice is made from a dropdown list using Data Validation.
Click here to download the example (29Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageConcatenation function
The use of concatenation (&) to combine the contents of two or more cells into another cell.
Click here to download the example (27Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageContacts form example
How a simple form can be created on a spreadsheet to save data to another sheet that acts as a database. 
Click here to download the example (43Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageDatabase form example
Example of a simple database setup. Read update
Click here to download the example (48Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page Data Validation Dropdown List feature
Use of Data Validation to create a drop down list to ease data entry.
Click here to download the example (34Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page Hyperlink in UserForm

This example demonstrates how to use a label on UserForm to simulate a hyperlink  The form example provides a quick and easy way to let users email you directly from the userform. This code allows  users to click on a label that contains an email address, and open the default email application and fills in the email address  All the user have to do is fill in the subject, and the comments they wish to send. The other labels act s hyperlinks to websites.Click here to download the example (34Kb)


Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageMessage box feature
Use of a simple message box to get a user's instructions.
Click here to download the example (38Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page  Nesting example
The use of multiple functions in one formula, i.e. "nesting". In this example we use the IF() function which can be nested up to seven instances. The second example shows how to create a SUM() function dependent on the contents of another cell. 
Click here to download the example (25Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pagePopulate UserForm example
C
all a UserForm by using the Before_DoubleClick event, and to use the UserForm_Initialise event to populate TextBoxes.    
Click here to download the example (47Kb).

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageProtectUserInterFaceOnly  

This example demonstrates how to add data to a Protected WorkBook without worrying about removing then adding protection. Click here to download the example (47Kb). (44Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page SUMIF() and COUNTIF() functions
This example demonstrates the use of the two functions SUMIF() and COUNTIF() functions.
Click here to download the example (47Kb).

Go to the top of this pageGo to the next item on this pageGo to the previous item on this page Summary example
T
his example demonstrates how to create a summary sheet of data from a number of sheets.
Click here to download the example (55Kb)

Go to the top of this pageGo to the next item on this pageGo to the previous item on this pageTable of Contents example
Create a Table of contents sheet of the worksheets in a workbook. See also the free addin version here
Click here to download the example (27Kb)
 
Go to the top of this pageGo to the next item on this pageGo to the previous item on this page Timesheet example
A simple spreadsheet which can be used to calculate an employee's working hours.
Click here to download the example (25Kb)

Go to the top of this pageGo to the previous item on this page VLOOKUP() function
How to use the VLOOKUP() function to populate a form with information from a database, which can be on a different Worksheet within the same Workbook. 
Click here to download the example (25Kb)