Professional Documents
Culture Documents
Excel Book
Excel Book
Excel Book
Page 2 of 104
Contents
1. SUM FUNCTION .................................................................................................................................... 6
2. SUMIF FUNCTION ................................................................................................................................. 7
3. SUMIFS FUNCTION ............................................................................................................................... 9
4. DSUM FUNTION .................................................................................................................................. 10
5. AVERAGE FUNCTION .......................................................................................................................... 11
6. AVERAGEIF FUNCTION ....................................................................................................................... 12
7. AVERAGEIFS FUNCTION ..................................................................................................................... 13
8. COUNT FUNCTION .............................................................................................................................. 14
9. COUNTA FUNCTION ............................................................................................................................ 14
10. COUNTIF FUNCTION........................................................................................................................ 15
11. COUNTIFS FUNCTION ...................................................................................................................... 16
12. DCOUNT FUNCTION ........................................................................................................................ 17
13. COUNTBLANK FUNCTION ................................................................................................................ 18
14. PRODUCT FUNCTION ...................................................................................................................... 19
15. SUMPRODUCT FUNCTION............................................................................................................... 20
16. ROMAN FUNCTION ......................................................................................................................... 21
17. ARABIC FUNCTION .......................................................................................................................... 22
18. MAX FUNCTION............................................................................................................................... 23
19. MIN FUNCTION ............................................................................................................................... 24
20. LARGE FUNCTION ............................................................................................................................ 25
21. SMALL FUNCTION ........................................................................................................................... 26
22. RANK FUNCTION ............................................................................................................................. 27
23. UPPER FUNCTION............................................................................................................................ 28
24. LOWER FUNCTION .......................................................................................................................... 29
25. PROPER FUNCTION ......................................................................................................................... 30
26. EXACT FUNCTION ............................................................................................................................ 31
27. LEN FUNCTION ................................................................................................................................ 32
28. RIGHT FUNCTION ............................................................................................................................ 33
29. LEFT FUNCTION ............................................................................................................................... 34
30. MID FUNCTION ............................................................................................................................... 35
Page 3 of 104
1.SUM FUNCTION
=Sum (number1, number2……)
If you need to sum a column or row of numbers, let Excel do the math for you. Select a cell next to the
numbers you want to sum, click AutoSum on the Home tab, press Enter, and you're done. When you click
AutoSum, Excel automatically enters a formula (that uses the SUM FUNCTION) to sum the numbers.
You can also take sum of multi range at one click. Select data by
holding ctrl key and press ALT and = then press enter button.
2.SUMIF FUNCTION
To
use
Page 8 of 104
SUMIF with a horizontal range, be sure both the sum range and criteria range are the same dimensions.
In the example shown, the formula in cell N7 is
Page 9 of 104
3.SUMIFS FUNCTION
SUMIFS is a FUNCTION to sum cells that meet multiple criteria. SUMIFS can be used to sum
values when corresponding cells meet criteria based on dates, numbers, and text. SUMIFS
supports logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.
:
Page 10 of 104
4. DSUM FUNTION
5. AVERAGE FUNCTION
=AVERAGE (number1,number2,number3)
=AVERAGE(E15:E19)
The Excel AVERAGE FUNCTION calculates the average (arithmetic mean) of supplied numbers.
AVERAGE can handle up to 255 individual arguments, which can include numbers, cell
references, ranges, arrays, and constants.
Page 12 of 104
6. AVERAGEIF FUNCTION
7. AVERAGEIFS FUNCTION
8. COUNT FUNCTION
The Excel COUNT FUNCTION returns a count of values that are numbers. Numbers
include negative numbers, percentages, dates, times, fractions, and formulas that return
numbers. Empty cells and text values are ignored.
=COUNT(value1, [value2], ...)
9. COUNTA FUNCTION
The Excel COUNTA FUNCTION returns the count of cells that contain numbers, text, logical
values, error values, and empty text (""). COUNTA does not count empty cells.
=COUNTA(value1, [value2], ...)
Page 15 of 104
The Excel COUNTIFS FUNCTION returns the count of cells that meet one or more criteria.
COUNTIFS can be used with criteria based on dates, numbers, text, and other conditions.
COUNTIFS supports logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.
Page 17 of 104
The Excel DCOUNT function counts matching records in a database using criteria and
an optional field. When a field is provided DCOUNT will only count numeric values in the
field. Use DCOUNTA to count numbers or text values in a given field.
Page 18 of 104
=COUNTBLANK(range)
The Excel COUNTBLANK function returns a count of empty cells in a range. Cells that
contain text, numbers, errors, spaces, etc. are not counted. Formulas that return empty
strings ("") are counted as blank.
Page 19 of 104
The Excel PRODUCT function returns the product of numbers provided as arguments.
The PRODUCT function is helpful when multiplying many cells together. The formula
=PRODUCT(A1:A3) is the same as =A1*A2*A3.
Page 20 of 104
=ROMAN(number, [form])
The Excel ROMAN function converts a number to a Roman numeral as text. For example,
the formula =ROMAN(5) returns V.
Page 22 of 104
=ARABIC(roman_text)
The Excel ARABIC function converts a Roman numeral as text to an Arabic numeral. For
example, the formula =ARABIC("VII") returns 7.
Page 23 of 104
The Excel MAX FUNCTION returns the largest numeric value in the data provided. MAX
ignores empty cells, the logical values TRUE and FALSE, and text values.
Page 24 of 104
=LARGE(array, k)
The Excel LARGE FUNCTION returns a numeric value based on its position in a list when
sorted by value in descending order. In other words, LARGE can retrieve the "nth largest"
value – 1st largest value, 2nd largest value, 3rd largest value, etc.
Page 26 of 104
=SMALL(array, k)
The Excel SMALL FUNCTION returns a numeric value based on its position in a list when
sorted by value in ascending order. In other words, SMALL can return the "nth smallest"
value (1st smallest value, 2nd smallest value, 3rd smallest value, etc.) from a set of
numeric data.
Page 27 of 104
The Excel RANK FUNCTION returns the rank of a numeric value when compared to a
list of other numeric values. RANK can rank values from largest to smallest (i.e. top
sales) as well as smallest to largest (i.e. fastest time).
Page 28 of 104
=UPPER(text)
The Excel UPPER FUNCTION converts a text string to all uppercase letters. Numbers,
punctuation, and spaces are not affected.
Note: - After conversion of text string to all uppercase, select data, copy it and paste special
as values. You can also use Alt ESV as short key after selection and copy the data.
Page 29 of 104
=LOWER(text)
The Excel LOWER FUNCTION converts a text string to all lowercase letters. Numbers, punctuation,
and spaces are not affected.
Note: - After conversion of text string to all lowercase, select data, copy it and paste special
as values. You can also use Alt ESV as short key after selection and copy the data.
Page 30 of 104
=PROPER(text)
The Excel PROPER FUNCTION capitalizes each first letter of word in a given text string.
Numbers, punctuation, and spaces are not affected.
Note: - After conversion of text string to all lowercase, select data, copy it and paste special
as values. You can also use Alt ESV as short key after selection and copy the data.
Page 31 of 104
=EXACT(text1, text2)
The Excel EXACT FUNCTION compares two text strings, taking into account upper and
lower case characters, and returns TRUE if they are the same, and FALSE if not.
EXACT is case-sensitive.
=LEN(text)
The Excel LEN FUNCTION returns the length of a given text string as the number of
characters. LEN will also count characters in numbers, but number formatting is not
included.
Page 33 of 104
=RIGHT(text, [num_chars])
The Excel RIGHT FUNCTION extracts a given number of characters from the right side of a
supplied text string. For example, RIGHT("Lahore",4) returns "hore".
Page 34 of 104
=Left(text, [num_chars])
The Excel LEFT FUNCTION extracts a given number of characters from the left side of a
supplied text string. For example, LEFT("Lahore",4) returns "Laho".
Page 35 of 104
The Excel MID FUNCTION extracts a given number of characters from the middle of a
supplied text string. For example, =MID("Lahore",2,3) returns "aho".
Page 36 of 104
The Excel TODAY FUNCTION returns the current date, updated continuously when a
worksheet is changed or opened. The TODAY FUNCTION takes no arguments. You can
format the value returned by TODAY with a date number format.
The Excel NOW FUNCTION returns the current date and time, updated continuously
when a worksheet is changed or opened. The NOW FUNCTION takes no arguments. You
can format the value returned by NOW as a date, or as a date with time by applying
a number format.
Page 37 of 104
=TEXT(value, format_text)
The Excel TEXT FUNCTION returns a number in a given number format, as text. You
can use the TEXT FUNCTION to embed formatted numbers inside text.
Page 38 of 104
=DOLLAR(number, decimals)
The Excel DOLLAR FUNCTION converts a number to text using the Currency number
format. The TEXT FUNCTION can do the same thing, and is much more versatile.
Page 39 of 104
The Excel DATE FUNCTION creates a valid date from individual year, month, and day
components. The DATE FUNCTION is useful for assembling dates that need to change
dynamically based on other values in a worksheet.
Page 40 of 104
=MONTH(serial_number)
The Excel MONTH FUNCTION extracts the month from a given date as number between
1 to 12. You can use the MONTH FUNCTION to extract a month number from a date into
a cell, or to feed a month number into another FUNCTION like the DATE FUNCTION.
Page 42 of 104
=DATEVALUE(date_text)
The Excel DATEVALUE function converts a date represented as a text string into
a valid Excel date. For example, the formula =DATEVALUE("3/10/1975") returns a
serial number (27463) in the Excel date system that represents March 10, 1975. Proper
Excel dates are more useful than text dates since they can be directly manipulated with
formulas and pivot tables.
Page 44 of 104
=DAY(date)
The Excel DAY function returns the day of the month as a number between 1 to 31 from
a given date. You can use the DAY function to extract a day number from a date into a
cell. You can also use the DAY function to extract and feed a day value into another
function, like the DATE function.
Page 45 of 104
=DAYS(end_date, start_date)
The Excel DAYS function returns the number of days between two dates. With a start
date in A1 and end date in B1, =DAYS(B1,A1) will return the days between the two
dates.
Page 46 of 104
=EDATE(start_date, months)
The Excel EDATE function returns a date on the same day of the month, n months in the
past or future. You can use EDATE to calculate expiration dates, maturity dates, and
other due dates. Use a positive value for months to get a date in the future, and a negative
value for dates in the past.
Page 47 of 104
=EOMONTH(start_date, months)
The Excel EOMONTH function returns the last day of the month, n months in the past or
future. You can use EOMONTH to calculate expiration dates, due dates, and other dates
that need to land on the last day of a month. Use a positive value for months to move
forward in time, and a negative number to move back in time.
Page 48 of 104
The CHOOSE function in Excel is designed to return a value from the list based on a
specified position. The function is available in Excel 365, Excel 2019, Excel 2016,
Excel 2013, Excel 2010, and Excel 2007. The syntax of the CHOOSE function is as
follows: CHOOSE(index_num, value1, [value2], …)
Page 49 of 104
=COLUMN([reference])
The Excel COLUMN function returns the column number for a reference. For example,
COLUMN(C5) returns 3, since C is the third column in the spreadsheet. When no
reference is provided, COLUMN returns the column number of the cell which contains the
formula.
Page 50 of 104
=ROW([reference])
The Excel ROW function returns the row number for a reference. For example, ROW(C5)
returns 5, since C5 is the fifth row in the spreadsheet. When no reference is provided,
ROW returns the row number of the cell which contains the formula.
Page 51 of 104
Excel HLOOKUP function finds and retrieve a value from data in a horizontal table. The "H"
in HLOOKUP stands for "horizontal", and lookup values must appear in the first row of the
table, moving horizontally to the right. HLOOKUP supports approximate and exact matching,
and wildcards (* ?) for finding partial matches.
Page 53 of 104
=XLOOKUP(lookup,lookup_array,return_array,[not_found],[match_mode],[search_mode])
The Excel XLOOKUP function is a modern and flexible replacement for older functions
like VLOOKUP, HLOOKUP, and LOOKUP. XLOOKUP supports approximate and exact
matching, wildcards (* ?) for partial matches, and lookups in vertical or horizontal ranges.
Page 55 of 104
=INDIRECT(ref_text, [a1])
The Excel INDIRECT function returns a valid cell reference from a given text string.
INDIRECT is useful when you want to assemble a text value that can be used as a valid
reference.
Page 58 of 104
=TRANSPOSE(array)
The Excel TRANSPOSE function "flips" the orientation of a given range or array:
TRANSPOSE flips a vertical range to a horizontal range, and flips a horizontal range to a
vertical range.
1. Step 1: Select blank cells. First select some blank cells. ...
2. Step 2: Type =TRANSPOSE (With those blank cells still selected, type:
=TRANSPOSE(………)
3. Step 3: Type the range of the original cells. Now type the range of the cells you
want to transpose. ...
4. Step 4: Finally, press CTRL+SHIFT+ENTER.
Page 59 of 104
=CLEAN(text)
The Excel CLEAN function takes a text string and returns text that has been
"cleaned" of line breaks and other non-printable characters.
Page 61 of 104
The Excel TEXTJOIN function concatenates multiple values together with or without a
delimiter. TEXTJOIN can concatenate values provided as cell references, ranges,
or constants, and can optionally ignore empty cells.
You can also this function for transpose data from column to row.
Page 64 of 104
=REPT(text, number_times)
The Excel REPT function repeats characters a given number of times. For example,
=REPT("x",5) returns "xxxxx".
Page 66 of 104
=TRIM(text)
The Excel TRIM function strips extra spaces from text, leaving only a single space
between words and no space characters at the start or end of the text.
Page 67 of 104
The Excel SEQUENCE function generates a list of sequential numbers in an array. The
array can be one dimensional, or two-dimensional, determined
by rows and columns arguments.
Page 68 of 104
The Excel UNIQUE function returns a list of unique values in a list or range.
Values can be text, numbers, dates, times, etc.
Page 69 of 104
65. FV FUNCTION
66. PV FUNCTION
68. IF FUNCTION
Nested IF functions, meaning one IF function inside of another, allows you to test
multiple criteria and increases the number of possible outcomes. We want to determine a
student's grade based on their score. If Tahir's score in B2 is greater than or equal to 90,
return an A.
Page 75 of 104
The Excel AND function is a logical function used to require more than one condition at
the same time. AND returns either TRUE or FALSE. To test if a number in A1 is greater
than zero and less than 10, use =AND(A1>0,A1<10). The AND function can be used as
the logical test inside the IF function. All logics should be true if want correct result.
Page 76 of 104
72. OR FUNCTION
The Excel OR function returns TRUE if any given argument evaluates to TRUE, and
returns FALSE if all supplied arguments evaluate to FALSE. For example, to test A1 for
either "x" or "y", use =OR(A1="x",A1="y").
Page 77 of 104
=NOT(logical)
The Excel NOT function returns the opposite of a given logical or Boolean value. When
given TRUE, NOT returns FALSE. When given FALSE, NOT returns TRUE. Use the
NOT function to reverse a logical value.
Page 78 of 104
If you need to test multiple conditions, where let’s say all conditions need to be True or
False you can use AND. You can also use AND with IF Function to get correct result.
Page 79 of 104
75. IF OR FUNCTION
If you need to test multiple conditions, where let’s say one condition need to be True or
False you can use OR. You can also use OR with IF Function to get correct result.
Page 80 of 104
=ISBLANK(value)
The Excel ISBLANK function returns TRUE when a cell is empty, and FALSE when a cell
is not empty. For example, if A1 contains "Tahir", ISBLANK(A1) returns FALSE.
Page 81 of 104
=IFERROR(value, value_if_error)
The Excel IFERROR function returns a custom result when a formula generates an error,
and a standard result when no error is detected. IFERROR is an elegant way to trap and
manage errors without using more complicated nested IF statements.
Page 82 of 104
=ISODD(value)
The Excel ISODD function returns TRUE when a value is an odd number, and FALSE
when a value is an even number. ISODD will return the #VALUE error if a value is not
numeric.
Page 83 of 104
=ISEVEN(value)
The Excel ISEVEN function returns TRUE when a value is an even number, and FALSE
when a value is an odd number. ISEVEN will return the #VALUE error if a value is not
numeric.
Page 84 of 104
=ISFORMULA(reference)
The Excel ISFORMULA function returns TRUE if a cell contains a formula, and FALSE if
not. When a cell contains a formula ISFORMULA will return TRUE regardless of the
formula's output or error conditions.
Page 85 of 104
=ISNA(value)
The Excel ISNA function returns TRUE when a cell contains the #N/A error and FALSE
for any other value, or any other error type. You can use the ISNA function with the IF
function test for #N/A and display a friendly message if the error occurs.
Page 86 of 104
=ISNUMBER(value)
The Excel ISNUMBER function returns TRUE when a cell contains a number, and FALSE
if not. You can use ISNUMBER to check that a cell contains a numeric value, or that the
result of another function is a number.
Page 87 of 104
=ISTEXT(value)
The Excel ISTEXT function returns TRUE when a cell contains a text value, and FALSE
if the cell contains any other value. You can use the ISTEXT function to check if a cell
contains a text value, or a numeric value entered as text.
Page 88 of 104
84. N FUNCTION
=N(value)
The Excel N function returns a number when given a value. The N function can be used to
convert TRUE and FALSE to 1 and 0 respectively. When given a text value, the N function
returns zero.
Page 89 of 104
85. T FUNCTION
=T(value)
The Excel T function returns text when given a text value and an empty string ("") for
numbers, dates, and the logical values TRUE and FALSE. You can use the T function to
remove values that are not text.
Page 90 of 104
The Excel SUBTOTAL function is designed to run a given calculation on a range of cells
while ignoring cells that should not be included. SUBTOTAL can return a SUM,
AVERAGE, COUNT, MAX, and others (see complete list below), and SUBTOTAL function
can either include or exclude values in hidden rows.
Page 91 of 104
To count data in a spesific range use 3 before refrence. You can also use 103 if you don’t
want to count hidden cells.
Page 92 of 104
To know Maximum value in a spesific range use 4 before refrence. You can also use 104
if you don’t want to count hidden cells for maximum value.
Page 93 of 104
To know Maximum value in a spesific range use 5 before refrence. You can also use 105
if you don’t want to count hidden cells for minimum value.
Page 94 of 104
To know average value in a spesific range use 1 before refrence. You can also use 101 if
you don’t want average of hidden cells.
Page 95 of 104
=MOD(number, divisor)
The Excel MOD function returns the remainder of two numbers after division. For
example, MOD(10,3) = 1. The result of MOD carries the same sign as the divisor.
Page 97 of 104
=INT(number)
The Excel INT function returns the integer part of a decimal number by rounding down to
the integer. Note that negative numbers become more negative. For example, while
INT(10.8) returns 10, INT(-10.8) returns -11.
Page 98 of 104
=RAND()
The Excel RAND function returns a random number between 0 and 1. For example,
=RAND() will generate a number like 0.422245717. RAND recalculates when a worksheet
is opened or changed.
Page 99 of 104
=RANDBETWEEN(bottom, top)
The Excel RANDBETWEEN function returns a random integer between two given
numbers. RANDBETWEEN recalculates each time a worksheet is opened or changed.
Page 100 of 104
=ROUND(number, num_digits)
The Excel ROUND function returns a number rounded to a given number of digits. The
ROUND function can round to the right or left of the decimal point.
Page 101 of 104
=ROUNDUP(number, num_digits)
The Excel ROUNDUP function returns a number rounded up to a given number of decimal
places. Unlike standard rounding, where only numbers less than 5 are rounded
down, ROUNDUP rounds all numbers up.
Page 102 of 104
=ROUNDDOWN(number, num_digits)
The Excel ROUNDDOWN function returns a number rounded down to a given number of
places. Unlike standard rounding, where only numbers less than 5 are rounded
down, ROUNDDOWN rounds all numbers down.
Page 103 of 104
=EVEN(number)
The Excel EVEN function rounds numbers up to the next even integer. The EVEN function
always rounds numbers away from zero, so positive numbers become larger and negative
numbers become smaller (i.e. more negative).
Page 104 of 104
The Excel DGET function gets a single value in a given field from a record that matches
criteria. DGET will throw the #NUM error if more than one record matches criteria.