Session 2 PDF
Session 2 PDF
Session 2 PDF
Tab
Getting Familiar
Ribbon
Quick Access
Toolbar
Formula
Name Bar
Bar Column
Name
File
Options
Advanced
Basics
• Mathematical Functions : Small(), Large(),
Max(), Min(), Average(), Sum(), Round(),
Roundup(), Rounddown(),Floor(),Ceiling()
• Text Functions : Char(), and &
• Lookup Functions : Row(), Rows(),
Column(), Columns()
Let us Start
Open a new blank Excel worksheet and save as class_session_1.xlsx
How many rows and columns are in a worksheet.
What is the numeric index of column CXA.
How many columns are between column R and column CXA (both
inclusive)
In A3 cell type Sl No
B3 type Height in cm
C3 type Weight in kgs
In column A starting from cell A2 generate a series of natural number
upto 1000
Randomly generate height between 150 cm to 190 cm. All heights
should be an integer.
Randomly generate weight for the 100 samples between 45 to 90 kgs.
Weights can be real number.
Random data changes on refresh how to retain one value after random
generation
Assigning a Random Value
using the RAND Function
• Lets assume one needs to estimate the cost
of returned product as a random value
between $25 and $200
• RAND() function returns a random real
number between 0 and 1
– Start with the minimum value of 25
– Calculate a random value between 0 and 175
because 175 is the difference between the
minimum and maximum value.
– Multiplying RAND() by 175 would give a
random number between 0 and 175
– Add the minimum value of 25 to this random
value
– The resulting formula is =RAND()*175+25
RANDBETWEEN(bottom,top)
• Returns an integer between the
top and bottom values, including
the values listed
– =RANDBETWEEN(1,3) randomly
returns 1,2 or 3
Round function
The ROUND function rounds a number to a specified number
of digits. For example, if cell A1 contains 23.7825, and you
want to round that value to two decimal places, you can use
the following formula:
=ROUND(A1, 2)
Syntax
ROUND(number, num_digits)
he ROUND function syntax has the following arguments:
number Required. The number that you want to round.
num_digits Required. The number of digits to which you
want to round the number argument.
Roundup and rounddown
• Roundup
• =roundup(number, numdigits)
• Rounds a number up, away from 0 (zero).
• Rounddown
• =rounddown(number, numdigits)
• Rounds a number down, toward zero.
Large (array,k)
Returns the k-th largest value in a data set. You
can use this function to select a value based on its
relative standing. For example, you can use
LARGE to return the highest, runner-up, or third-
place score.
Syntax
LARGE(array,k)
Array is the array or range of data for which you
want to determine the k-th largest value.
K is the position (from the largest) in the array or
cell range of data to return.
Small(array,k)
Returns the k-th smallest value in a data set. Use
this function to return values with a particular
relative standing in a data set.
Syntax
SMALL(array,k)
Array is an array or range of numerical data for
which you want to determine the k-th smallest
value.
K is the position (from the smallest) in the array
or range of data to return.
Max(array)
Returns the largest value in a set of values.
Syntax
MAX(number1,number2,...)
Number1, number2, ... are 1 to 255
numbers for which you want to find the
maximum value.
Min(array)
Returns the smallest number in a set of
values.
Syntax
MIN(number1,number2,...)
Number1, number2, ... are 1 to 255
numbers for which you want to find the
minimum value.
Average (array)
Returns the average (arithmetic mean) of the arguments. For e
if the range A1:A20 contains numbers, the formula =AVERAGE
returns the average of those numbers.
Syntax