0% found this document useful (0 votes)
33 views11 pages

UMT AICT Lab 5

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views11 pages

UMT AICT Lab 5

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Applications of Information and Communication

Technologies
Instructor: Aleena Amer

MS Excel

Logical Functions

Conditional Formatting

Filtering

Data Validation
MS Excel Functions
In the previous lab manuals we saw how to apply the basic
mathematical functions in excel for example Sum, Avg, Percentage
Calculations etc.
In this lab we will see logical functions.
Conditional Formatting in Excel

Conditional formatting makes it easy to highlight certain values or make particular cells easy to identify. This
changes the appearance of a cell range based on a condition (or criteria). You can use conditional formatting to
highlight cells that contain values which meet a certain condition. Or you can format a whole cell range and vary
the exact format as the value of each cell varies.

For example:
Temperature information with conditional formatting applied that shows top 10% and bottom 10% values

Temperature information with 3-color scale conditional formatting applied

Steps to Apply conditional formatting


Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.

On the Home tab, click Conditional Formatting.1

1
From https://support.microsoft.com/en-au/office/highlight-patterns-and-trends-with-conditional-formatting-eea152f5-
2a7d-4c1a-a2da-c5f893adb621
Now Following are the results of different renderings

If you would like to delete a rule


Select the row or data
Conditional Formatting Icon->Manage Rules->Select the rule you want to delete/edit and press the required
action.
Data Filtering
When you have huge amount of data and you would like to focus on some specific part you can use filters.
Data filtering is getting the data that fulfills your requirements/criteria.
Steps for data filtering:
Suppose you have a table with some values. You can apply data filtering in the following ways
Use filters to temporarily hide some of the data in a table, so you can focus on the data you want to
see.

Filter a range of data


1. Select any cell within the range.
2. Select Data > Filter.

3. Select the column header arrow .


4. Select Text Filters or Number Filters, and then select a comparison, like Between.

5. Enter the filter criteria and select OK.


Similarly, you can also apply filtering after converting your data to table
format. To do this select data go to Insert tab-> Press Table.
Now you will have dropdowns on your header and you can use it to filter
your data.2

Data Validation
Data Validation means checking if your data is valid/acceptable
Sometimes you have data column which can only accept a specific type for example you
will always have numbers in your profit/loss column and no one should enter number in
text for example two thousand there so you can make data validation rules.
To implement data validation, do the following:
1. Select the cell(s) you want to create a rule for.
2. Select Data >Data Validation.

3. On the Settings tab, under Allow, select an option:


▪ Whole Number - to restrict the cell to accept only whole
numbers.
▪ Decimal - to restrict the cell to accept only decimal
numbers.
▪ List - to pick data from the drop-down list.

▪ Date - to restrict the cell to accept only date.


▪ Time - to restrict the cell to accept only time.
2
Source: https://support.microsoft.com/en-us/office/filter-data-in-a-range-or-table-7fbe34f4-8382-431d-942e-41e9a88f6a96
▪ Text Length - to restrict the length of the text.
▪ Custom – for custom formula.
4. Under Data, select a condition.
5. Set the other required values based on what you chose
for Allow and Data.
6. Select the Input Message tab and customize a message users will
see when entering data.
7. Select the Show input message when cell is selected checkbox to
display the message when the user selects or hovers over the
selected cell(s).
8. Select the Error Alert tab to customize the error message and to
choose a Style.
9. Select OK.
Now, if the user tries to enter a value that is not valid, an Error
Alert appears with your customized message.3

3
Source: https://support.microsoft.com/en-us/office/apply-data-validation-to-cells-29fecbcc-d1b9-42c1-9d76-eff3ce5f7249
TASK LAB 5
In the provided excel sheet “workbookLab5.xlsx” do the following
three tasks
Task 1(a): Apply the OR logical filtering in the column D, Result is
true if any one of them is a positive number

Task 1(b): Apply the AND logical filtering in the column G, Result is
true if both have status Available
Task 2: (a) Following is a result sheet. You need to tell if a particular
student failed or passed by using Logical operation. If the student
has less than 50% marks Place "Fail" in status else "Pass" . All three
assignments have 50 total marks

(b) Now you need to do conditional rendering 1. Highlight the top 3


students with green color 2. Highlight all the students that failed
with red color 3. Add the icon set red with the failed students as
well yellow for the students above 50 % and below 80%, Green for
those 80% or above . Hint you can work with total column
Task 3 : given a data table apply filters on them and paste in the
given boxes

You might also like