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
Filethen clickOptions - Click the
Savetab - Navigate to the
Save workbookssection - Navigate to the
Default personal templates locationbox - 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
Filethen clickExport - Under
Export, clickChange File Type - Under the
Workbook File Typessection, double-clickTemplate - Type the file name you want to use for the template
- Click
Saveand close the template
Create a workbook based on a template
- Open Excel
- Click
Filethen 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
Headercell
- Do not select the
- Hold down the
Shiftkey on your keyboard to select all cells where you want to add data validation - Navigate to the
Datatab and theData Toolssection - 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 G1and rename it- Example Number of Mentees
- Click
Cell G2, hold down theShiftkey on your keyboard, and clickCell G23to highlight the cell(s) where you want to add data validation - Navigate to the
Datatab and theData Toolssection - Click
Data Validation - In the
Settingstab:- Set the
Allowdrop-down box toWhole number - Set the
Datadrop-down box tobetween - Enter the allowed
MinimumandMaximumrange 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
Enteron 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
Enteron your keyboard - Click
Retryto enter a value that meets thedata validationrequirements
Restrict data entry to a range of dates
- Click the first cell where you want to
add data validation- Do not select the
Headercell
- Do not select the
- Hold down the
Shiftkey on your keyboard to select all cells where you want to add data validation - Navigate to the
Datatab and theData Toolssection - Click
Data Validation - In the
Settingstab:- Set the
Allowdrop-down box toDate - Set the
Datadrop-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
Headercell
- Do not select the
- Hold down the
Shiftkey on your keyboard to select all cells where you want to add data validation - Navigate to the
Datatab and theData Toolssection - Click
Data Validation - In the
Settingstab:- Set the
Allowdrop-down box toList - In the
Sourcebox, 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 dropdownbox - 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
Datatab and theData Toolssection - 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
Datatab and theData Toolssection - Click
Data Validation - Navigate to the
Input Messagetab - 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
Datatab and theData Toolssection - Click
Data Validation - Navigate to the
Error Alerttab - Check the box next to
Show error alert after invalid data is entered - Under the
Styledrop-down box, selectStop,Warning, orInformationto 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.