Practical 2 - Functions
Practical 2 - Functions
Advance Excel
Essential Formulas
Topic:- MS – Excel Function
Date:- 18th December, 2023
By.
PROF. ABDUL H. SHAIKH
(M.com, NET, SET, PGDFM, US-CMA, Pursuing
Ph.D)
MATHEMATICAL & STATISTICAL
FUNCTIONS
1. Round
• Purpose : Rounds a number to a specified number of
digits.
• Syntax : Round(number, num_digits)
• If num_digits is greater than 0, then number is rounded
to the specified number of decimal places.
• If num_digits is 0, then number is rounded to the
nearest integer.
• If num_digit is less than 0, then number is rounded to
the left of the decimal point.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
2. INT
• Purpose : Rounds a number down to the nearest
integer.
• Syntax : INT(number)
• Examples:
• INT(7.9) = 7
• INT(-7.9) = -8
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
3. Max
• Purpose : Returns the largest value in a set of
values.
• Syntax : MAX(num1,num2,num3,…..)
• Examples:
• If the range A1:A5 contains the numbers
20,34,5,-19,67, then MAX(A1:A5) returns the
value 67.
• MAX(21,54,”ABC”) will return an error as it
contains the string “ABC”.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
4. Min
• Purpose : Returns the smallest value in a set of
values.
• Syntax : MIN(num1,num2,num3,…..)
• Examples:
• If the range A1:A5 contains the numbers
20,34,-5,-19,67, then MAX(A1:A5) returns
the value -19.
• MAX(21,54,”ABC”) will return an error as it
contains the string “ABC”.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
5. MOD
• Purpose : Returns the remainder after number is
divided by divisor. The result has the same sign
as divisor
• Syntax : MOD(number,divisor)
• Examples:
• MOD(23,6), gives the value 5.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
6. ABS
• Purpose : Returns the absolute value of a number.
The absolute value of number is the number
without its sign.
• Syntax : ABS(number)
• Examples:
• ABS(7) = 7
• ABS(-7) = 7
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
7. SQRT
• Purpose : Returns the positive square root of its
argument.
• Syntax : SQRT(number)
• Examples:
• SQRT(25) equals 5
• SQRT(-25) equals #NUM!
• SQRT(ABS(-25)) equals 5
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
8. Sum
• Purpose : Adds all the numbers in a range of cells.
• Syntax : SUM(num1,num2,num3,……..)
• Examples:
• If the cells A1:A5 contains values
21,33,15,34 & 78, then SUM(A1:A5)
returns the value 181.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
9. AVERAGE
• Purpose : Returns the average (AM) of the
arguments.
• Syntax : AVERAGE(num1,num2,num3,……..)
• Examples:
• If the cells A1:E1 contains values
21,33,12,16 & 18, then AVERAGE(A1:E1)
returns the value 20.
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
10. COUNT
• Purpose : Returns the number values in a range.
• Syntax : COUNT(value1, value2, value3,……..)
• Examples:
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
11. COUNTA
• Purpose : This function counts the number of cells that
are not empty and the values within the list of
arguments. It is used to count the number of cells that
contain data in a range
• Syntax : COUNTA(value1, value2, value3,……..)
• Examples:
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
12. COUNTBLANK
• Purpose : This function counts the number of empty
cells within a range
• Syntax : COUNTBLANK(range)
• Examples:
MATHEMATICAL & STATISTICAL
FUNCTIONS (Contd.)
13. CORREL
• Purpose : This function returns the correlation
coefficient of two ranges. Use the correlation
coefficient to determine the relationship between two
properties.
• Syntax : CORREL(array1,array2)
• Examples:
DATE & TIME FUNCTIONS
1. Today
• Purpose : Returns the current date. (i.e. system date)
• Syntax : Today()
• Examples:
• =TODAY(), in Form (DD/MM/YYYY)
• =TODAY()+1
• =TODAY()-7
DATE & TIME FUNCTIONS (Contd.)
2. NOW
• Purpose : Returns the current date & Time.
(DD/MM/YYYY HH:MM)
• Syntax : NOW()
• Examples:
• =NOW()
DATE & TIME FUNCTIONS (Contd.)
3. DATE
• Purpose : Displays a date based on its three
arguments.
• Syntax : DATE(Year,Month,Day)
• Examples:
• =DATE(2023,12,18)
DATE & TIME FUNCTIONS (Contd.)
4. TIME
• Purpose : Returns the particular time in HH:MM
AM / PM Form
• Syntax : TIME(Hours,Minutes,Seconds)
• Examples:
• =TIME(15,12,35)
DATE & TIME FUNCTIONS (Contd.)
5. Day
• Purpose : Returns the day of the month for a date.
This will be value between 1 and 31.
• Syntax : DAY(Serial Number)
• Examples:
• =DAY(“18/12/2023”) returns the value 18
• =DAY(TODAY()) will return …..
DATE & TIME FUNCTIONS (Contd.)
6. Weekday
• Purpose : Returns the day of the week for a date.
• Syntax : WEEKDAY(date,return_type)
• Examples:
• =WEEKDAY(“18/12/2023”,1) returns the
value 0
• = WEEKDAY(“18/12/2023”,2) returns the
value 1
DATE & TIME FUNCTIONS (Contd.)
7. Month
• Purpose : Returns the month corresponding to the
date.
• Syntax : MONTH(date)
• Examples:
• =MONTH(“18/12/2023”) returns the value
12 corresponding to the 12th month i.e.
December
DATE & TIME FUNCTIONS (Contd.)
8. Year
• Purpose : Returns the year corresponding to serial
number or data text. The year is given as an
integer.
• Syntax : YEAR(Serial_Number)
• Examples:
• =YEAR(“18/12/2023”) returns the value
2023
• =YEAR(TODAY()) will return …..
STRING
FUNCTIONS (Contd.)
1. Left
• Purpose : Returns a string of characters of a
specified length from another string, beginning at
the leftmost position.
• Syntax : Left(text,num_Chars)
• Examples:
• =Left(“MUMBAI”,3) returns the string MUM
STRING
FUNCTIONS (Contd.)
2. Right
• Purpose : Returns a string of characters of a
specified length from another string,
beginning at the rightmost position.
• Syntax : right(text,num_Chars)
• Examples:
RIGHT(“MUMBAI”,2) returns the
string AI
STRING
FUNCTIONS (Contd.)
3. MID
• Purpose : The MID function returns specific
number of characters from a text string,
starting at the position you specify.
• Syntax : MID(text,start-position,num_Chars)
• Examples:
MID(“MUMBAI”,3,3) returns the string
MBA
STRING
FUNCTIONS (Contd.)
4. Len
• Purpose : returns the number of characters in
a text string.
• Syntax : Len(text)
• Examples:
• LEN(“MUMBAI”) returns 6
• LEN (“NAVI MUMBAI”) return 11
STRING
FUNCTIONS (Contd.)
5. Upper
• Purpose : Converts all lowercase letters in a
text string to uppercase.
• Syntax : UPPER(text)
• Examples:
• LEN(“History”) returns HISTORY
STRING
FUNCTIONS (Contd.)
6. Lower
• Purpose : Converts all uppercase letters in a
text string to lowercase.
• Syntax : LOWER(text)
• Examples:
• LEN(“HISTory”) returns history
STRING
FUNCTIONS (Contd.)
7. Proper
• Purpose : Capitalizes the first letter in a text
string and Converts other letters to lowercase.
• Syntax : PROPER(text)
• Examples:
• PROPER(“HISTory”) returns History
Classifications of Function