Excel Data Validation, Filters, Grouping

In this tutorial, we are going to cover the following topics.

Data validation

Data validation is very important in the sense that it helps us avoid mistakes that can be avoided. Let's assume you are recording student exam marks and you know the minimum is 0 and the maximum is 100. You can take advantage of validation features to ensure that only values between 0 and 100 are entered.

Add a new sheet in your workbook by clicking on the plus button at the bottom of the worksheet.

Add a column for S/N, Name and Score. Your sheet should look as follows

S/N Name Score
1 Jane
2 James
3 Jones
4 Jonathan
5 John

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Data filters

Data filters allow us to get data that matches our desired criteria. Let's say we want to show the results of all the students whose names start with "ja" or get scores that are less than, greater than or equal to a certain value, we can use filters to get such data.

Select the name and scores columns as shown below

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Group and Ungroup

Groups allow us to view easily and hide unnecessary details from either columns or rows. In addition to that, we can also use groups to analyse data that belongs to a common category. Let's illustrate this with an example. We will use the student scores example above.

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

We will now group the females together and display their average score and do the same for the males.

Getting Started with Microsoft Excel

You will get the following window

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Click on Subtotal drop down button under DATA tab

Getting Started with Microsoft Excel

You will get the following window

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

 

Download the above Excel Code

Adding images to spreadsheets

At times, you would like to brand the documents printed in excel with letterhead information and print with the company logo, etc. Excel has features that allow you to import images into Excel. The command for adding images is found under the INSERT tab on the ribbon.

Getting Started with Microsoft Excel

You will get the following dialogue window

Getting Started with Microsoft Excel

Getting Started with Microsoft Excel

Tutorial exercise 4

Use the INSERT tab pictures command to add a picture of your choice to the worksheet.

Summary

In this article, we have learnt how to perform basic arithmetic operations using Excel, format the data, and apply validation rules, filter data and how to take advantage of groups to further analyse data and improve presentation.

 

YOU MIGHT LIKE: