Introduction
Excel Tables and Data Validation help you organize data and control what users can enter into a worksheet. In this chapter, you will practice converting data into Excel Tables, using table features, adding calculated columns, working with structured references, creating drop-down lists, setting validation rules, and controlling incorrect entries. The questions cover different practical situations so you can test your Excel skills without repeating the same concept. Excel Tables and Data Validation practice questions with solutions to help you understand the concepts.
Question 1: Convert a Product List into an Excel Table
Problem Statement
Convert the following product data into an Excel Table so that it can be easily sorted, filtered and managed.
Excel Data
| Product ID | Product | Category | Price | Stock |
|---|---|---|---|---|
| P101 | Laptop | Electronics | 55000 | 15 |
| P102 | Monitor | Electronics | 12000 | 20 |
| P103 | Keyboard | Accessories | 850 | 35 |
| P104 | Mouse | Accessories | 550 | 50 |
| P105 | Printer | Electronics | 15000 | 10 |
Solution
- Select the complete data range.
- Go to Insert → Table.
- Make sure My table has headers is selected.
- Click OK.
- Choose a suitable Table Style if required.
Expected Output
The product data should become an Excel Table with filter buttons in the column headers.
The table should allow you to easily:
- Filter products
- Sort products
- Add new records
- Apply table formatting
Question 2: Add a New Record to an Excel Table
Problem Statement
An existing customer table contains five customers. Add a new customer record to the table.
Excel Data
| Customer ID | Customer Name | City | Purchase |
|---|---|---|---|
| C101 | Rahul | Delhi | 25000 |
| C102 | Priya | Jaipur | 32000 |
| C103 | Amit | Noida | 18000 |
| C104 | Neha | Delhi | 45000 |
| C105 | Arjun | Gurgaon | 28000 |
Add:
| Customer ID | Customer Name | City | Purchase |
|---|---|---|---|
| C106 | Simran | Delhi | 36000 |
Solution
- Click the first empty row directly below the Excel Table.
- Enter:
C106SimranDelhi36000
- Press Enter.
Excel should automatically extend the table to include the new record.
Expected Output
The table should now contain 6 customer records, including Simran.
Question 3: Create a Calculated Column in an Excel Table
Problem Statement
Create an Excel Table for product sales and calculate the total sales amount using Quantity × Price.
Excel Data
| Product | Quantity | Price | Total Sales |
|---|---|---|---|
| Laptop | 3 | 55000 | |
| Monitor | 5 | 12000 | |
| Keyboard | 10 | 850 | |
| Mouse | 15 | 550 | |
| Printer | 2 | 15000 |
Solution
- Select the data and convert it into an Excel Table.
- Click the first empty cell under Total Sales.
- Enter:
=[@Quantity]*[@Price]
- Press Enter.
Excel should automatically fill the formula throughout the calculated column.
Expected Output
| Product | Quantity | Price | Total Sales |
|---|---|---|---|
| Laptop | 3 | 55000 | 165000 |
| Monitor | 5 | 12000 | 60000 |
| Keyboard | 10 | 850 | 8500 |
| Mouse | 15 | 550 | 8250 |
| Printer | 2 | 15000 | 30000 |
The formula uses structured references instead of traditional cell references.
Question 4: Create a Drop-Down List for Department
Problem Statement
Create a Department column where users can select only one of these departments:
- IT
- HR
- Finance
- Marketing
- Sales
Excel Data
| Employee ID | Employee Name | Department |
|---|---|---|
| E101 | Rahul | |
| E102 | Priya | |
| E103 | Amit | |
| E104 | Neha | |
| E105 | Arjun |
Solution
- Select the Department cells, for example
C2:C6. - Go to Data → Data Validation.
- Under Allow, select List.
- In the Source box, enter:
IT,HR,Finance,Marketing,Sales
- Click OK.
Expected Output
Each Department cell should contain a drop-down list from which the user can select:
IT, HR, Finance, Marketing or Sales
Values outside the specified list should not be accepted under the default validation settings.
Question 5: Allow Only Whole Numbers for Product Quantity
Problem Statement
Create a Quantity column where users can enter only whole numbers from 1 to 100.
Excel Data
| Product | Quantity |
|---|---|
| Laptop | |
| Monitor | |
| Keyboard | |
| Mouse | |
| Printer |
Solution
- Select the Quantity cells.
- Go to Data → Data Validation.
- Set Allow to Whole Number.
- Set Data to between.
- Enter:
- Minimum:
1 - Maximum:
100
- Minimum:
- Click OK.
Expected Output
Valid entries include:
12550100
Values such as:
010125.5
should not satisfy the validation rule.
Question 6: Allow Only Valid Dates
Problem Statement
Create a Joining Date field where employees can enter dates only between 1 January 2025 and 31 December 2025.
Excel Data
| Employee | Joining Date |
|---|---|
| Rahul | |
| Priya | |
| Amit | |
| Neha | |
| Arjun |
Solution
- Select the Joining Date cells.
- Go to Data → Data Validation.
- Select Date under Allow.
- Select between.
- Enter the Start Date:
01/01/2025
- Enter the End Date:
31/12/2025
- Click OK.
Expected Output
Dates within 2025 should be accepted according to the validation rule.
Dates outside the specified range should be rejected.
Question 7: Create a Drop-Down List from a Cell Range
Problem Statement
Instead of typing department names directly into Data Validation, create the list in a separate area and use that range as the source of the drop-down.
Excel Data
Create this list somewhere in the worksheet, for example in H2:H6:
| H |
|---|
| IT |
| HR |
| Finance |
| Sales |
| Marketing |
Employee table:
| Employee | Department |
|---|---|
| Rahul | |
| Priya | |
| Amit | |
| Neha |
Solution
- Enter the department names in
H2:H6. - Select the Department cells.
- Go to Data → Data Validation.
- Select List.
- In the Source box, select:
=$H$2:$H$6
- Click OK.
Expected Output
The Department cells should display a drop-down containing:
- IT
- HR
- Finance
- Sales
- Marketing
Using a cell range makes it easier to update the list later.
Question 8: Prevent Duplicate Employee IDs
Problem Statement
Create an Employee ID field where each ID must be unique. Prevent users from entering an ID that already exists.
Excel Data
| Employee ID | Employee Name |
|---|---|
| E101 | Rahul |
| E102 | Priya |
| E103 | Amit |
| E104 | Neha |
| E105 | Arjun |
New employee IDs will be entered below this list.
Solution
- Select the Employee ID input range, for example
A2:A100. - Go to Data → Data Validation.
- Select Custom under Allow.
- Enter:
=COUNTIF($A$2:$A$100,A2)=1
- Open the Error Alert section.
- Set an appropriate error message such as:
Employee ID already exists. Please enter a unique ID.
- Click OK.
Expected Output
If a user attempts to enter an Employee ID that already exists in the selected range, Excel should display the configured validation error.
Question 9: Create a Dependent Data Entry Setup
Problem Statement
Create two drop-down lists:
Category:
- Electronics
- Accessories
Product:
The product options should depend on the selected category.
Use these lists:
| Electronics | Accessories |
|---|---|
| Laptop | Keyboard |
| Monitor | Mouse |
| Printer | Webcam |
Solution
First create the category lists in the worksheet.
Create named ranges for the product lists:
- Select the Electronics products and name the range
Electronics - Select the Accessories products and name the range
Accessories
Create the Category drop-down:
- Select the Category cell.
- Go to Data → Data Validation.
- Select List.
- Enter:
Electronics,Accessories
Create the Product drop-down:
- Select the Product cell.
- Open Data → Data Validation.
- Select List.
- Enter:
=INDIRECT(A2)
Assuming the Category selection is in A2.
Expected Output
If the user selects:
Electronics
the Product drop-down should show:
- Laptop
- Monitor
- Printer
If the user selects:
Accessories
the Product drop-down should show:
- Keyboard
- Mouse
- Webcam
Question 10: Create a Complete Order Entry Table
Problem Statement
Create an order entry table for a small business. Use Excel Table features and Data Validation together.
The table should contain:
- Order ID
- Customer
- Category
- Quantity
- Payment Status
Requirements:
- Category should use a drop-down.
- Quantity should accept only whole numbers from 1 to 100.
- Payment Status should use a drop-down containing:
- Paid
- Pending
- Cancelled
- Convert the entire dataset into an Excel Table.
Excel Data
| Order ID | Customer | Category | Quantity | Payment Status |
|---|---|---|---|---|
| O101 | Rahul | Electronics | 2 | Paid |
| O102 | Priya | Accessories | 5 | Pending |
| O103 | Amit | Electronics | 1 | Paid |
| O104 | Neha | Accessories | 3 | Pending |
Solution
- Enter the order data.
- Select the complete range.
- Convert it into an Excel Table using Insert → Table.
- Select the Category column.
- Apply Data Validation → List.
- Use:
Electronics,Accessories
- Select the Quantity column.
- Apply Data Validation → Whole Number.
- Set the allowed range from
1to100. - Select the Payment Status column.
- Apply Data Validation → List.
- Enter:
Paid,Pending,Cancelled
Expected Output
The final order table should:
- Work as an Excel Table.
- Provide a Category drop-down.
- Allow only valid quantities from 1 to 100.
- Provide a Payment Status drop-down.
- Automatically expand when new records are added.
This question combines Excel Tables, structured data entry and multiple Data Validation rules.
Key Takeaways
- An Excel Table converts a normal data range into a structured dataset.
- Excel Tables automatically provide filter buttons and structured formatting.
- Tables can automatically expand when new records are entered directly below them.
- Structured references make formulas easier to understand inside Tables.
- A calculated column can automatically apply a formula to the entire Table column.
- Data Validation controls the type of information users can enter.
- Drop-down lists help prevent inconsistent entries.
- Number validation can restrict values to a specific range.
- Date validation can restrict entries to a particular date range.
- Custom Data Validation can use formulas for more advanced rules.
- Data Validation and Excel Tables can be combined to create controlled data-entry systems.
FAQs
1. What is an Excel Table?
An Excel Table is a structured range of data that provides features such as automatic filtering, formatting, structured references and automatic expansion.
2. How do I create an Excel Table?
Select your data and choose Insert → Table. Make sure My table has headers is selected if your first row contains column headings.
3. What is Data Validation in Excel?
Data Validation is an Excel feature that controls what type of information can be entered into a cell.
4. How do I create a drop-down list in Excel?
Select the cells, go to Data → Data Validation, choose List, and provide the allowed values or a cell range containing the values.
5. Can I use a cell range as the source of a drop-down list?
Yes. Instead of manually entering values, you can select a range containing the allowed options.
6. Can Data Validation allow only numbers?
Yes. Data Validation can restrict cells to whole numbers or decimal values and can also define minimum and maximum limits.
7. Can Excel Data Validation restrict dates?
Yes. You can allow only dates within a specified range, such as dates between January 1 and December 31 of a particular year.
8. What is a calculated column in an Excel Table?
A calculated column contains a formula that Excel automatically applies to other rows in that Table column.
9. What are structured references in Excel?
Structured references refer to Excel Table columns by their names instead of traditional cell references. For example:
=[@Quantity]*[@Price]
10. Can Data Validation prevent duplicate values?
Yes. A Custom Data Validation formula can be used to check whether a value already exists and prevent duplicate entries.
Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.
