SUBJECT: COMPUTER
CHAPTER-2
Functions and Manipulation in Excel
Using Function
Functions are the special pre-written formulae and instruction that ‘accept’ the values as arguments and ‘return’ the result values in the cell in which they have been typed.
General Syntax of Function
=Function name (Arguments).
For example, =AVERAGE(A1:A7) OR =SUM(9,6,12)
Arguments-Arguments can be of the following types:
Constants-These values can be used directly in the Function.
For example, =SUM(12,4513) will return the value 70.
Cells or Range- The cell reference or the range of cells can also be specified as the Argument.
For example, = Average(A1:A5) are the correct Functions.
Entering the Functions
All Functions begin with an “=” sign.
Parentheses are used to open and close the function like Sum().
All Arguments are given inside Parentheses.
Function Categories
Functions can be broadly classified in the following categories:
Text Functions
Mathematical Functions
Statistical Functions
Date & Time Functions
Logical Functions
Text Functions - Excel’s Text Functions help you to manage the text data in your spreadsheets.
Mathematical Functions - Excel’s Mathematical Functions can be used to perform common mathematical operations such as addition (Sum function), multiplication (Product function), division and finding the square root.
Statistical Functions - Excel’s Statistical Functions can be used to analyse the data in a spreadsheet.
Logical Functions - Excel’s Logical Functions can be used to introduce decision making into your spreadsheet. In logical functions you pass the condition as the arguments and it will return the result as True or False according to the satisfaction of the criteria of the condition.
IF Functions - IF(logical_test, true_action, false_action)
Return one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
Example - IF(Marks > =33, “Pass”,”Fail”)
Data Manipulation
There are many options in MS Excel which will help in manipulation of data as required. For example, you can use the Goal seek option to find a value to manipulate the result or you can filter out the records to be displayed, which match some specific criteria, or simply sort the data to arrange it into some order.
Using the Goal Seek - The Goal Seek option is useful when you ant to manipulate the result which you have obtained by applying some Formula.Follow the steps given to use the Goal seek option.
Activity - 1 To use the Goal Seek
Click on the Data tab
Click on the What-if Analysis arrowhead button. From the drop-down list, select the Goal Seek option.
The Goal Seek dialog box opens.
In the set cell box, specify the cell address where you have entered the formula to calculate the result or place the cursor in the Set cell text box and click on the cell whose value you want to fix where you have entered the formula.
In the To value text box, enter the final value, which you want to obtain.
In the By changing cell text box, enter the cell address by changing the value for which you want to obtain the required result from or place cell whose value you want to change. The cell address will be automatically filled in the By changing cell text box. Click on the Ok button.
Using the Filter - You can use the Filter option from the Data tab to display only those records which meet some specific criteria.
Activity - 2 To use the Filter.
Click on any Cell within the Data.
Click on the Data tab.
Click on the Filter button
The Arrowhead buttons will appear next to the field names in the list of entries.
Conditional Formatting - If you want to apply formatting to cells, which contain data that meets certain conditions, you can use the conditional formatting. To do this, follow the steps given below
Activity - 2 To use the Conditional formatting
Select the range of cells to format.
Click on the Home tab.
Click on the Conditional formatting button and point to Highlight Cell Rules button. Click on the condition type which you want to apply.
The Condition box opens. Enter the condition for which you want the cells to get formatted.
In the with drop-down list, specify the formatting.
Click on the OK button when finished.
LAB TIME
1 You have obtained 191 marks as the result of the total obtained as the sum of marks in 3 subjects. But you needed 240 marks in total to get a distinction. You can check how many marks you require, in any particular subject to achieve the total of 240.
2 To find out the list of students who have scored 75 or more marks in the subject English.
3 Enter marks in the cell range B2:D7 and apply Conditional Formatting so that if the marks are between 60 and 80, it should become light red filled with dark red text.
Worksheets
Worksheet 1 Multiple Choice Question (MCQs).
Which Functions will you use to perform common mathematical functions?
Text Functions b. Logical Functions
Mathematical Functions d. Statistical Functions
Which Function returns square root of the number?
Sqroot b. Sqrt
Sqt d. SQR
Which sign is used to begin a Function?
= b. &
C. % d. $
Which function returns n characters number of characters including spaces?
Len(text) b. Concatenate (text1, text2)
C. Right(text) d. Right(text,n)
5. which Function returns number of characters including space?
a. Sum b. Mod
C. Lower(text) d. Len(text)
Worksheet 2 Write (T) for True and (F) for False against the statements.
The logical functions returns the result as True or False.
The = average(12,14,16) will given the result 16.
The = max(num1,num2,….) function returns the maximum value out of the Arguments.
The sqrt(num1) function returns the Square of the number Num1.
In the function = SUM(A1:A12), the argument is SUM.
Worksheet 3 Select the suitable words and fill in the blanks.
Mod Filter arguments Len Left Goal seek
You can use the ______________________ option to display only those records which meet some specific criteria.
The ______________________ option is useful when you want to manipulate the result which you have obtained by applying some Formula.
The ______________________ function returns the Remainder, after dividing the num1 by the num2.
The ______________________ function returns n characters starting from the left side.
Functions are the special pre - written formula and instructions that accept the values as ______________________ and ‘return’ the result values.
Worksheet 4 Answer the following:
What are function. Write the syntax of a function.
Write one example for the syntax for joining multiple text strings into one.
What is the use of the Filter option?
Write the syntax used for returning the sum value of the Arguments.
What is the use of Conditional Formatting?