Excel Functions and Conditional Formatting Guide
Excel Functions and Conditional Formatting Guide
1
NISCHHAL SINHA
01761188823(BCOM(H))
3. To Find the income subtract the total expenditure
from total income.
Select the cell containing total income and
then put a minus sign and then select the cell
containing total expenditure.
After obtaining the first value select the cell
and drag the cursor to apply the same
function in the remaining cell.
2
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT-2
Absolute Reference ($A$1)
The dollar sign before both the column letter and the row
number lock both the column and the row. If you copy the
formula from one cell to another, the reference will remain
exactly the same (e.g., it will always refer to cell A1).
Mixed Reference ($A1 or A$1)
$A1: The dollar sign before the column locks the column
(A), but the row (1) will change if the formula is copied
across rows.
3
NISCHHAL SINHA
01761188823(BCOM(H))
A$1: The dollar sign before the row locks the row (1), but
the column (A) will change if the formula is copied across
columns.
Relative Reference (A1)
No dollar sign means the reference is relative. When you
copy the formula, both the column and row will adjust
based on the new location.
Q1: Find the percentage obtain by student in class.
4
NISCHHAL SINHA
01761188823(BCOM(H))
Select the cell containing the output and drag
the cursor down in order to apply the formula
in the remaining cells.
ASSIGNMENT-3
Question1: Calculate the total cost of the menu items, also
compute the Sales Tax.
1. Open Excel and enter the following values.
5
NISCHHAL SINHA
01761188823(BCOM(H))
2. To Calculate the total cost of the Menu Items, Type
“=” in a cell.
Select the cell containing the Unit price for
the menu item A.
Put the Sign of Multiple “*” and then select
the cell containing the qty of menu items A.
The total cost of item A will be displayed in
the cell.
Select the cell containing the output and
drag the cursor down in order to apply the
formula in the remaining cell.
6
NISCHHAL SINHA
01761188823(BCOM(H))
3. Calculate the total of the cost by typing “=SUM”
and then select the range. In the above case the
range will be from “D5:D14”.
7
NISCHHAL SINHA
01761188823(BCOM(H))
5. Now to calculate Sales Tax type “=” in a cell and
then select the cell containing the total cost of
menu item A.
Then put the sign of multiply “*” and select
the cell containing the tax rate i.e. “I2”.
To keep the refence same for all the cell insert
dollar sign Before and after I i.e. “$I$2”.
The Sales tax for the item A would be
displayed in the cell.
Select the cell containing the output and drag
the cursor down in order to apply the same
formula in the remaining cell.
8
NISCHHAL SINHA
01761188823(BCOM(H))
7. To Calculate 18% of the food and beverage put “=”
sign in the cell.
Select the cell containing the value of food
and beverage.
Now put the multiple sign “*” and type 18%
and press enter.
9
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT-4
Question: Highlight the column that are greater than 50 under
the number head.
1. Enter the following data in excel.
10
NISCHHAL SINHA
01761188823(BCOM(H))
4. The cells containing number more than 50 will be
highlighted.
11
NISCHHAL SINHA
01761188823(BCOM(H))
3. Another dialogue box will appear. Type “Monday”
and then select “Custom Format”. Select the color
you want and press “ok”.
12
NISCHHAL SINHA
01761188823(BCOM(H))
DATE OCCURING THIS WEEK
1. To Highlight the cell that contains a Date Occurring
this week, Select the date column and then go to
conditional formatting.
Go to “highlight cell rules” and select the
option “A Date Occurring”.
A dialogue box will appear, Select the option
“This Week” and go to “Custom Format”.
Select the color and press “ok”.
2. The cell containing Date occurring this week will
be selected.
13
NISCHHAL SINHA
01761188823(BCOM(H))
DATE OCCURRING THIS MONTH
1. To Highlight the cell that contains a Date Occurring
This month, Select the date column and then go to
conditional formatting.
Go to “highlight cell rules” and select the
option “A Date Occurring”.
A dialogue box will appear, Select the option
“This Month” and go to “Custom Format”.
Select the color and press “ok”.
2. The Cell containing Date Occurring This month will
be selected.
Question: Highlight the cell under the condition that they are
unique or duplicate.
1. Enter the following data in excel.
UNIQUE VALUE
14
NISCHHAL SINHA
01761188823(BCOM(H))
1. To Highlight the cell that contains a Unique value,
Select the Text column and then go to conditional
formatting.
Go to “highlight cell rules” and select the
option “Duplicate Value”.
A dialogue box will appear, Select the option
“Unique” and go to “Custom Format”. Select
the color and press “ok”.
2. The cell containing a Unique Value will be selected.
DULPICATE VALUE
1. To Highlight the cell that contains a duplicate
value, Select the Text column and then go to
conditional formatting.
Go to “highlight cell rules” and select the
option “Duplicate Value”.
A dialogue box will appear, Select the option
“Duplicate” and go to “Custom Format”.
Select the color and press “ok”.
2. The cell containing a duplicate Value will be
selected.
15
NISCHHAL SINHA
01761188823(BCOM(H))
Question: Highlight the lowest three items under the
number header.
16
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMNET-5
FILTER IN EXCEL
Filtering in Excel allows you to display only the rows that
meet specific criteria while hiding the others.
Question: On the following database use filters in excel.
1. Enter the following data in excel
18
NISCHHAL SINHA
01761188823(BCOM(H))
3. The following output will be received.
ASSIGNMNET-6
Functions In Excel
19
NISCHHAL SINHA
01761188823(BCOM(H))
obtained, now drag the cursor down so that the
formula can be applied the remining cell.
20
NISCHHAL SINHA
01761188823(BCOM(H))
3. FLOOR FUNCTION: This Function is used to round a given
number down to the nearest multiple of a specified
number.
21
NISCHHAL SINHA
01761188823(BCOM(H))
Question: Use Ceiling function on the data given below.
ASSIGNMENT-7
STRINGS FUNCTION IN EXCEL
22
NISCHHAL SINHA
01761188823(BCOM(H))
Question: On “ABC” use the LEFT and RIGHT string function to
see what will be the output.
The Syntax of Left function: “=LEFT(TEXT[NUM_CHARS])”.
The Syntax of Right Function: “=
RIGHT(TEXT[NUM_CHARS])”.
MID FUNCTION
This Function is designed to pull a substring from
the middle of the original text string.
The Mid function returns the specified number of
characters starting at the position you specify.
23
NISCHHAL SINHA
01761188823(BCOM(H))
The lower function returns the lower-case version of
string given.
LENGTH FUNCTION
This function returns the length of a given text
string.
TRIM FUNCTION
This Function is used to remove irregular text
spacing and keep single spaces between the words.
24
NISCHHAL SINHA
01761188823(BCOM(H))
CONCATENATE FUNCTION
This function joins two or more Text strings in one
string.
SUBSITUTE FUNCTION
This Function one or more text strings with another
text string.
this function is useful when we wish to substitute
old text in a string with a new string.
25
NISCHHAL SINHA
01761188823(BCOM(H))
The Syntax of Substitute Function: “=SUBSITUTE (text,
old_ text, new _text, [instance _Num])”.
REPLACE FUNCTION
This function replaces part of a text string, based on
the number of characters you specify, with a
different text string.
ASSIGNMENT-8
IF FUNCTION
IF function is a logical function.
It allows you to make decisions based on a condition.
The Syntax of IF Function: “=IF (logical_test,
value_if_true, value_if_false)”.
logical test: The condition you want to check (e.g., A1 > 10)
value_if_true: The result if the condition is true
value_if_false: The result if the condition is false
27
NISCHHAL SINHA
01761188823(BCOM(H))
Question: Use IF function to determine whether the students
have passed or fail in the SUB-1 Subject.
28
NISCHHAL SINHA
01761188823(BCOM(H))
Question: Use IF & AND function in the given database to
determine the Division of the student based on their
percentage and marks.
29
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT-9
COUNT FUNCTION
The COUNT function is used to count the number of numeric
values in a range of cells.
The syntax of count function: “=COUNT (value1,
[value2], ...)”.
It counts only numbers (not text, blank cells, or error values).
You can enter individual values or cell ranges.
30
NISCHHAL SINHA
01761188823(BCOM(H))
COUNTA FUNCTION
The COUNTA function counts the number of non-
empty cells in a range — including numbers, text,
dates, logical values (TRUE/FALSE), and even
errors.
The Syntax of Counta Function: “=COUNTA
(value1, [value2], ...)”.
It counts all cells that are not empty, no matter what type of
data they contain.
Useful when you want to know how many cells have
something in them, not just numbers.
31
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT-10
SUM IF FUNCTION
The SUMIF function adds up the values in a range only if they
meet a specified condition.
The Syntax of SUMIF Function: “=SUMIF (range,
criteria, [sum_range])”.
range: The range of cells to evaluate with the condition.
criteria: The condition that determines which cells to sum.
sum_range: The actual cells to sum — if different from the
range.
32
NISCHHAL SINHA
01761188823(BCOM(H))
COUNT IF FUNCTION
The COUNTIF function counts the number of cells
that meet a specific condition.
The Syntax of COUNT IF Function: "=COUNTIF
(range, criteria)”.
range: The group of cells you want to apply the condition to.
criteria: The condition (like ">50", "Apples", or "=Yes") that
determines which cells to count.
33
NISCHHAL SINHA
01761188823(BCOM(H))
[Link] Total sales for north region.
34
NISCHHAL SINHA
01761188823(BCOM(H))
5. Count the new customer where the number of
customer is more than 10.
35
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 11
37
NISCHHAL SINHA
01761188823(BCOM(H))
QUES: Average- IF & Average Ifs Function on the given below database:
38
NISCHHAL SINHA
01761188823(BCOM(H))
39
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 12
NOT & ISBLANK FUNCTION
2. NOT Function:
Purpose:
o The NOT function reverses the logical value of its argument.
o If the argument is TRUE, NOT returns FALSE, and vice versa.
Syntax:
o NOT (logical)
o Where "logical" is a value or expression that can be evaluated as
TRUE or FALSE.
Key Points:
o It's often used to invert the result of another logical function.
o It's very common to see it used in conjunction with the ISBLANK
function.
Combining NOT and ISBLANK:
When you combine NOT and ISBLANK (NOT (ISBLANK (cell))), you
effectively check if a cell is not blank.
40
NISCHHAL SINHA
01761188823(BCOM(H))
This is very useful in IF statements when you want to perform an action
only if a cell contains data.
Example:
o =IF(NOT(ISBLANK(A1)), "Cell A1 is not empty", "Cell A1 is
empty")
o This formula will display "Cell A1 is not empty" if cell A1 has any
content, and "Cell A1 is empty" if it is truly blank.
In summary, ISBLANK tells you if a cell is empty, and NOT reverses that
result, allowing you to check if a cell is not empty.
QUES check if employees have generated Extra Sales or not in the given
database below if the did, provide 25% of extra sales as commission and if they
didn’t, display NO BONUS for them
41
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 13
SUM-IF FUNCTIONS
Purpose:
The SUMIF function allows you to sum values within a range that meet a
specific criterion. This means you can add up only the numbers that
match a certain condition.
Syntax:
SUMIF(range, criteria, [sum_range])
Arguments:
range (Required):
o This is the range of cells that you want to evaluate against the
criteria.
criteria (Required):
o This defines the condition that determines which cells will be
summed. It can be:
A number (e.g., 100)
An expression (e.g., ">50", "<=20")
A cell reference (e.g., A1)
Text (e.g., "apples")
sum_range (Optional):
o This is the actual range of cells that will be summed.
o If omitted, the range argument is used for both evaluating the
criteria and calculating the sum.
Key Points:
Conditional Summing: It sums values based on whether they meet a
specified condition.
Flexibility: The criteria can be numbers, text, or expressions.
Optional Sum Range: If the range to be summed is the same as the range
being evaluated, the sum_range argument can be omitted.
Wildcards: You can use wildcard characters like the asterisk (*) and
question mark (?) in the criteria argument.
42
NISCHHAL SINHA
01761188823(BCOM(H))
QUES Perform the following conditions on the dataset given below:
43
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 14
WLD CARD CHARACTERS
In Excel, wildcard characters are special symbols that you can use within text
strings in functions like SUMIF, COUNTIF, AVERAGEIF, VLOOKUP, MATCH,
and others, to match patterns of text. They provide flexibility when you don't
know the exact text you're looking for or when you want to match variations of a
text string.
Counta: - The COUNTA function in Excel is used to count the number of cells in
a range that are not empty.
NAME ENROLLMENT NO
ANUJ 1125
ARYAN 1041
GAURAV 1121
ISHAAN 1731
SUYOG 1098
VAIBHAV 1888
VISHAL 1034
44
NISCHHAL SINHA
01761188823(BCOM(H))
45
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 15
LOOKUP FUNCTION
46
NISCHHAL SINHA
01761188823(BCOM(H))
47
NISCHHAL SINHA
01761188823(BCOM(H))
QUES 2
48
NISCHHAL SINHA
01761188823(BCOM(H))
b) What's the age of estelle Cormack
49
NISCHHAL SINHA
01761188823(BCOM(H))
d) Find the Salary of the following employee
50
NISCHHAL SINHA
01761188823(BCOM(H))
51
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 16
V-LOOKUP & H-LOOKUP
Syntax of VLOOKUP
=VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])
lookup_value: The value you want to search for in the first column of the
table_array.
table_array: The range of cells that contains the data you want to search
in. The first column of this range is where the lookup_value is searched.
col_index_num: The column number within the table_array that contains
the value you want to return. The first column in the table_array is 1.
[range_lookup]: An optional argument that specifies whether you want
an exact or approximate match:
o TRUE or omitted: Approximate match. If an exact match is not
found, it returns the next largest value that is less than the
lookup_value. The first column of the table_array should be sorted
in ascending order for this to work correctly.
o FALSE: Exact match. It will only return a value if an exact match
for the lookup_value is found in the first column. If no exact match
is found, it returns the #N/A error.
52
NISCHHAL SINHA
01761188823(BCOM(H))
Searches: Horizontally across the first row of a specified range (table
array).
Looks for: A specific value (lookup value) in that first row.
Returns: A value from a specified row in the same column where the
match is found.
Best used when: Your data has the lookup values in the top row and
related information in rows below. Think of a table where the headers in
the first row are what you want to look up.
Syntax of HLOOKUP:
=HLOOKUP (lookup_value, table_array, row_index_num, [range_lookup])
lookup_value: The value you want to search for in the first row of the
table_array.
table_array: The range of cells that contains the data you want to search
in. The first row of this range is where the lookup_value is searched.
row_index_num: The row number within the table_array that contains
the value you want to return. The first row in the table_array is 1.
[range_lookup]: An optional argument that specifies whether you want
an exact or approximate match (same as in VLOOKUP):
o TRUE or omitted: Approximate match. The first row of the
table_array should be sorted in ascending order.
o FALSE: Exact match.
o
In summary, the main difference is the direction of the lookup:
VLOOKUP: Looks up vertically in the first column.
HLOOKUP: Looks up horizontally in the first row.
The choice between VLOOKUP and HLOOKUP depends entirely on how your
data is organized in your Excel sheet.
Ques Find out the marks of vaibhav in all the subjects from the database given
below:-
NAME ARYAN ISHAAN SUYOG VAIBHAV
ITL 72 85 70 77
MA 79 79 75 67
CF 84 76 81 78
DA-LAB 83 72 71 78
BE-CSR 76 76 71 83
53
NISCHHAL SINHA
01761188823(BCOM(H))
54
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 17
IF With V LOOKUP FUNCTION
SALES
PRODUCT SALES TARGET
ACHIEVED
APPLE 120 100
GRAPE 250 230
BLUE BERRY 170 180
STRAWBERRY 120 120
ORANGE 135 110
MANGO 205 220
PEACH 200 175
GUAVA 230 230
KIWI 100 90
PAPAYA 200 240
55
NISCHHALWATERMELON
SINHA 90 21
01761188823(BCOM(H))
LICHI 10 21
IF with VlookUp Function
[Link] PRODUCT NAME AVAILABLE QTY
1 AAA 1000
2 BBB 500
3 CCC 0
4 DDD 65
5 EEE 250
6 FFF 600
7 GGG 0
8 HHH 900
9 III 1400
10 JJJ 0
11 KKK 800
12 LLL 340
13 MMM 320
56
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 18
VlOOKUP With MATCH FUNCTION
58
NISCHHAL SINHA
01761188823(BCOM(H))
Dynamic Column Selection: You can change the column from which
VLOOKUP returns data simply by changing the lookup_column_header.
The formula will automatically adjust.
More Robust to Column Changes: If you insert or delete columns in
your table_array, as long as the header_row and the relative position of
your lookup column remain consistent, the formula will still work
correctly. You don't need to manually update the column index number.
Improved Readability: The formula becomes more self-explanatory as it
directly references the column header you're looking for.
TIME
TABLE
12.0
9.00 10.00 11.00 1.00 2.00 3.00
0
AM AM AM PM PM PM
PM
LU
MOND CHEMI FRENC GERM PHY ENGLI
MATHS NC
AY STERY H AN SICS SH
H
LU
TUESD GEOGR COMP SOCCE FRENC GER SPANI
NC
AY APHY UTERS R H MAN SH
H
RELIGI
LU
WEDN GERM MATH HISTO OUS ENG ENGLI
NC
ESDAY AN S RY STUDI LISH SH
H
ES
FRENC
LU
THURS HISTO MATH CHEMI H MAT COMP
NC
DAY RY S STERY LITER HS UTERS
H
ATURE
LU
FRIDA COMPU COMP GERM GERM SOC SOCCE
NC
Y TERS UTERS AN AN CER R
H
QUES 2
EMPLOYEE ID NAME LOCATION SALARY AGE
56815 Garry Manship Hong Kong 13836 25
51186 William Johnson Berlin 11771 32
51511 Bettle Bangkok 13046 35
50890 Ian Nash Cairo 18276 32
53700 Margaret Turley Shanghai 19327 26
55879 Michael Kaye Capetown 18996 35
59848 Paul Bell Bangkok 10387 25
59
NISCHHAL SINHA
01761188823(BCOM(H))
58369 Ian Davies Capetown 12566 37
50217 Eric Green Warsaw 16406 42
50695 Williamr Black Cairo 15784 43
59673 Estelle Cornack Hong Kong 10959 30
52130 Christopher Fallon Delhi 14562 32
60
NISCHHAL SINHA
01761188823(BCOM(H))
3) Return the location of the following EE
61
NISCHHAL SINHA
01761188823(BCOM(H))
62
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 19
HLOOKUP With MATCH FUNCTION
The standard HLOOKUP function requires you to manually specify the row
index number from which you want to return a value. This can cause issues if:
You insert or delete rows in your lookup table, as the hardcoded row
index will likely return the wrong data.
The row you need to retrieve data from might change, and you want a
more flexible way to specify it.
How MATCH Solves This for HLOOKUP:
Just like with VLOOKUP, you can use the MATCH function to dynamically
determine the correct row index number for the HLOOKUP function based on
a header column (appearing to the left of your data table).
Syntax:
=HLOOKUP(lookup_value, table_array, MATCH(lookup_row_header,
header_column, 0), [range_lookup])
Breakdown:
lookup_value: The value you want to search for in the first row of your
table_array (same as in regular HLOOKUP).
table_array: The range containing your lookup data (same as in regular
HLOOKUP).
MATCH(lookup_row_header, header_column, 0): This is the key part:
o lookup_row_header: The text in the header column that matches
the row you want to return data from (e.g., "Price", "Quantity",
"Sales").
o header_column: The column containing the row headers of your
table_array.
o 0: Specifies an exact match for the lookup_row_header within the
header_column.
63
NISCHHAL SINHA
01761188823(BCOM(H))
o The MATCH function will return the row number where the
lookup_row_header is found within the header_column. This
number is then used as the row_index_num for the HLOOKUP
function.
[range_lookup]: (Optional) Specifies whether to find an exact or
approximate match (same as in regular HLOOKUP). FALSE (or 0) for
exact match is generally recommended.
Benefits of Using HLOOKUP with MATCH:
Dynamic Row Selection: You can easily change the row from which
HLOOKUP returns data by changing the lookup_row_header. The
formula will update automatically.
More Robust to Row Changes: If you insert or delete rows in your
table_array, as long as the header_column and the relative position of
your lookup row remain consistent, the formula will still function
correctly. You won't need to manually adjust the row index number.
Improved Clarity: The formula becomes more understandable as it
directly refers to the row header you are trying to retrieve data from.
EMPLOY
101 102 103 104 105 106 107 108 109 110
EE ID
Davi
Bob Tom Jessic
EMPLOY John Jane Sarah Emily Mich d Rachel
Johns Dav a
EE NAME Doe Smith Lee Brown ael Mart Green
on is Davis
in
Departme Marketi Finan Operati Finan Marketi
HR IT OB IT HR
nt ng ce ons ce ng
500 6500 700 8500 9000
Salary 55000 60000 75000 80000 95000
00 0 00 0 0
200 400
Bonus 2500 3000 3500 4500 5000 5500 6000 6500
0 0
520 6850 740 9050 9600
Total Pay 57500 63000 79500 85000 101500
00 0 00 0 0
QUES 1
64
NISCHHAL SINHA
01761188823(BCOM(H))
QUES2
QUES 3
65
NISCHHAL SINHA
01761188823(BCOM(H))
66
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 20
INDEX & INDEX With MATCH FUNCTION
The INDEX function in Excel returns a value or the reference to a value within
a range or array. You can use INDEX to retrieve a specific value based on its
row and column number within that range.
There are two forms of the INDEX function:
1. Array Form:
Syntax: =INDEX(array, row_num, [column_num])
array (Required): The range of cells or an array constant.
row_num (Required): The row number in the array from which to return a
value.
column_num (Optional): The column number in the array from which to
return a value. If omitted, it's assumed to be 1 if the array is a single
column.
67
NISCHHAL SINHA
01761188823(BCOM(H))
o Returns the value in a table or range based on a specified row and
column number.
Combining Them:
You nest the MATCH function inside the INDEX function to dynamically
determine the row and/or column number for INDEX.
68
NISCHHAL SINHA
01761188823(BCOM(H))
5008 Rupak 215000 745000 650000
Ques tell the sales for the year 2020 for rupak , kunal and Poooja
69
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 21
CONDITIONAL FORMATING
71
NISCHHAL SINHA
01761188823(BCOM(H))
LCD 14 4200 58800
MOUSE 22 310 6820
72
NISCHHAL SINHA
01761188823(BCOM(H))
Ques3 Highlight cells where the quantity of an item is equal to 10
73
NISCHHAL SINHA
01761188823(BCOM(H))
ASSIGNMENT 22
74
NISCHHAL SINHA
01761188823(BCOM(H))