Please download IntroExcel-Part2-SampleWorkbook.xlsx
to follow along with workshop activities.
Throughout this workshop Click
refers to a Left Click
with your mouse
Utilize Advanced Features
Excel offers many other features that you can use to work with your data.
These include Templates and Data Validation. Links to more help on each of these features is available at the bottom of the page.
Templates
If you often use the same workbook layout, you can save it as a template
and use it again in the future.
To use templates, we first have to set the default personal templates location
.
Set the default personal templates location
- Click
File
then clickOptions
- Click the
Save
tab - Navigate to the
Save workbooks
section - Navigate to the
Default personal templates location
box - Type this file path:
C:\Users\[UserName]\Documents\Custom Office Templates
- Replace [User Name] with your user name
- Click
OK
Unless you want to change the default personal templates location
, you will only need to set this once.
Save a workbook as a template
- Open Excel
- Open the workbook you want to save as a template
- Click
File
then clickExport
- Under
Export
, clickChange File Type
- Under the
Workbook File Types
section, double-clickTemplate
- Type the file name you want to use for the template
- Click
Save
and close the template
Create a workbook based on a template
- Open Excel
- Click
File
then clickNew
- Click
Personal
- Double-click the template you want to use
Excel will then create a new workbook based on this template. Be sure to Save
this new workbook.
Data validation
Data validation in Excel controls what
you can enter into a cell.
These first three steps are the same for any type of data validation
.
- Click the first cell where you want to
add data validation
- Do not select the
Header
cell
- Do not select the
- Hold down the
Shift
key on your keyboard to select all cells where you want to add data validation - Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
Follow the instructions below to learn how to:
- Restrict data entry to whole numbers within limits
- Restrict data entry to a range of dates
- Restrict data entry to a drop-down list of data values
- Remove data validation
- Specify the input message or error alert
Restrict data entry to whole numbers within limits
Let’s Navigate to Sheet 1
to practice data validation.
- Click
Cell G1
and rename it- Example Number of Mentees
- Click
Cell G2
, hold down theShift
key on your keyboard, and clickCell G23
to highlight the cell(s) where you want to add data validation - Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- In the
Settings
tab:- Set the
Allow
drop-down box toWhole number
- Set the
Data
drop-down box tobetween
- Enter the allowed
Minimum
andMaximum
range of whole numbers- For example, Minimum: 0 and Maximum: 5
- Set the
- Click
OK
Now, let’s test our data validation
- Click
Cell G2
- Type the number
2
- Hit
Enter
on your keyboard
Excel let us enter this value since it is a whole number
between 0 and 5
.
If you try to enter a number outside the specified range, you will see an error message.
- Click
Cell G3
- Type the number
1.5
- Hit
Enter
on your keyboard - Click
Retry
to enter a value that meets thedata validation
requirements
Restrict data entry to a range of dates
- Click the first cell where you want to
add data validation
- Do not select the
Header
cell
- Do not select the
- Hold down the
Shift
key on your keyboard to select all cells where you want to add data validation - Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- In the
Settings
tab:- Set the
Allow
drop-down box toDate
- Set the
Data
drop-down box togreater than or equal to
- Enter the allowed
Start date
- For example, Start date: 01/01/1999
- Set the
- Click
OK
Now, if you try to enter a date before 01/01/1999, you will see an error message.
Restrict data entry to a drop-down list of data values
- Click the first cell where you want to
add data validation
- Do not select the
Header
cell
- Do not select the
- Hold down the
Shift
key on your keyboard to select all cells where you want to add data validation - Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- In the
Settings
tab:- Set the
Allow
drop-down box toList
- In the
Source
box, type your data values and separate them with commas without spaces- For example,
Yes,No,Maybe
- For example,
- Set the
- Click to check the
In-cell dropdown
box - Click
OK
Now, when you want to enter text, you can only select from the allowed options.
Remove data validation
- Click and drag to highlight the cell(s) where you want to remove data validation
- Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- Click
Clear All
- Click
OK
Specify the input message or error alert
Excel also gives you the option to specify the input message
or error alert
to make is less generic.
Specify the input message
- Highlight the cells where you want to specify the
input message
- Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- Navigate to the
Input Message
tab - Check the box next to
Show input message when cell is selected
- Add a title and input message that describes the data validation requirements
Specify the error message
- Highlight the cells where you want to specify the
error alert
- Navigate to the
Data
tab and theData Tools
section - Click
Data Validation
- Navigate to the
Error Alert
tab - Check the box next to
Show error alert after invalid data is entered
- Under the
Style
drop-down box, selectStop
,Warning
, orInformation
to change the icon - Add a title and error message that describes the data validation requirements
More Help
Templates
To learn more about templates
, visit Microsoft’s Save a Workbook as a Template website.
Data validation
To learn more about data validation
, open Excel and navigate to the Data
tab and the Data Tools
section.
You can also visit Microsoft’s Apply Data Validation to Cells website.