You are on page 1of 9

University of Management and Technology

Knowledge Unit of Science and Technology


Laboratory Manual

[IT1091]: [Intro. To info. And comm. technologies]


[Semester Fall-2021]
Class: [BSIT-BSAI]
Lab [6]: [Working with MS Excel Functions]

Instructor: [Engr. Amjad Ali]

[IT1091]: [Intro. To info. And comm. technologies] Page 1


University of Management and Technology

Working with MS Excel Functions


Basic Mathematical Operations

SUM Returns the sum of a supplied list of numbers

Excel Sum Function Examples


The following spreadsheet shows three simple examples of the Excel Sum function:

 Formulas:  Results:
  A B   A B
1 5 =SUM( 15, 29 ) 1 5 44
2 7 =SUM( A1, A2 ) 2 7 12
3 9 =SUM( A1:A3 ) 3 9 21

PRODUCT Returns the product of a supplied list of numbers

Excel Product Function Examples


The following spreadsheet shows three simple examples of the Excel Product function:

 Formulas:  Results:

  A B   A B
1 3 =PRODUCT( 3, 6 ) 1 3 18
=PRODUCT( A1, 2 2 6
2 2 A2 )
3 5 30
3 5 =PRODUCT( A1:A3 )

[IT1091]: [Intro. To info. And comm. technologies] Page 2


University of Management and Technology

Returns the result of a given number raised to a supplied power


POWER

Excel Power Function Examples


The following spreadsheet shows three simple examples of the Excel Power function.

 Formulas:  Results:

  A B C   A B C
1 =POWER( 2, 3 ) 1 8
2 5.5 3 =POWER( A2, B2 ) 2 5.5 3 166.375
3 2 0.5 =POWER( A3, B3 ) 1.41421356
3 2 0.5 2

SQRT Returns the positive square root of a given number

Excel Sqrt Function Examples


The following spreadsheet shows three simple examples of the Excel Sqrt function.
 Formulas:  Results:

  A B   A B
1   =SQRT( 25 ) 1   5
2 15625 =SQRT( A2 2 15625 125

[IT1091]: [Intro. To info. And comm. technologies] Page 3


University of Management and Technology
) 3 6.5536 2.56
=SQRT( A3
3 6.5536 )

Returns the integer portion of a division between two supplied numbers


QUOTIENT

Quotient Function Examples


The following spreadsheet shows four examples of the Excel Quotient function.
 Formulas:  Results:

  A B   A B
1   =QUOTIENT( 5, 2 ) 1   2
2   =QUOTIENT( 10, 2.2 ) 2   4
=QUOTIENT( A3, 3 5.5 2
3 5.5 2.667 )
-
4 -7 =QUOTIENT( A4, 2 ) 4 -7 4

[IT1091]: [Intro. To info. And comm. technologies] Page 4


University of Management and Technology

Logical Function
AND Function
The Excel AND function tests a number of supplied conditions and returns:

 TRUE if ALL of the conditions evaluate to TRUE


or
 FALSE otherwise (i.e. if ANY of the conditions evaluate to FALSE).
The syntax of the function is:

AND( logical_test1, [logical_test2], ... )
where the logical_test arguments are one or more conditions that evaluate to either TRUE or FALSE.
Notes:

Excel And Function Examples


The following spreadsheet shows three examples of the Excel And function:

 Formulas:  Results:

  A B C   A B C
1 5 10 =AND( A1>0, A1<B1 ) 1 5 10 TRUE
=AND( A2>0, A2<B2, FALS
2 5 10 B2>12 ) 2 5 10 E
3 5 10 =AND( A3<0, A3>B3, 3 5 10 FALS

[IT1091]: [Intro. To info. And comm. technologies] Page 5


University of Management and Technology
B3>12 ) E

OR Function Description
The Excel OR function tests a number of supplied conditions and returns either:

 TRUE if ANY of the conditions evaluate to TRUE


or
 FALSE otherwise (i.e. if ALL of the conditions evaluate to FALSE).
The syntax of the function is:

OR( logical_test1, [logical_test2], ... )
where the logical_test arguments are one or more conditions that evaluate to either TRUE or FALSE.
Notes:

Excel Or Function Examples


The following spreadsheet shows three examples of the Excel Or function.

 Formulas:  Results:

  A B C   A B C
1 5 10 =OR( A1>0, A1<B1 ) 1 5 1 TRUE

[IT1091]: [Intro. To info. And comm. technologies] Page 6


University of Management and Technology
=OR( A2>0, A2>B2, 0
2 5 10 B2>12 )
1
=OR( A3<0, A3>B3, 2 5 0 TRUE
3 5 10 B3>12 )
1
3 5 0 FALSE

IF Function Description
The Excel IF function tests a supplied condition and returns one result if the condition evaluates to TRUE, and
another result if the condition evaluates to FALSE.

The syntax of the function is:

IF( logical_test, value_if_true, value_if_false )

If Function Example
The following spreadsheet shows two simple uses of the Excel If function. In these examples,
the logical_test checks whether the corresponding value in column A is less than zero and returns:
 The text string "negative" if the value in column A is less 0
or
 The text string "positive" otherwise (i.e. if the value in column A is greater than or equal to 0).

  A B C
=IF( A1<0, "negative",
1 5 "positive" )  - returns "positive"
2 -2 =IF( A2<0, "negative",  - returns "negative"

[IT1091]: [Intro. To info. And comm. technologies] Page 7


University of Management and Technology
"positive" )

LAB TASKS
1. Open excel sheet and enter following data.

[IT1091]: [Intro. To info. And comm. technologies] Page 8


University of Management and Technology
Calculate the following values.
 Sum
 Average
 Maximum
 Minimum
 Calculate the sum of the Maximum and Minimum.
2. Enter data in sheet two of worksheet. And calculate grade using if conditions.

[IT1091]: [Intro. To info. And comm. technologies] Page 9

You might also like