Da Lab File Hardik
Da Lab File Hardik
2) Sum of Numbers
To find the sum of numbers, the formula that will be used is:
=SUM (number1: number2)
1 HARDIK VERMA
01414788822
Q-2 Find the total sum of all the students from the marks that were assigned to
them.
4) Round up of numbers
To round up the numbers, the formula that will be used is:
2 HARDIK VERMA
01414788822
=ROUNDUP (number, Num _digit)
Q-4 Round up the percentage that was derived in the previous question.
3 HARDIK VERMA
01414788822
ASSIGNMENT-2
ERRORS IN EXCEL
1)#### Error
This means when cell size is not large or wide enough to display the content.
2)#value Error
This type of error occurs when the formula has wrong type of agreement.
3)#name? Error
This type of error usually occurs when excel does not recognise text in a
formula.
4)#DIV/O! Error
This type of error usually occurs when a formula tries to divide by 0 or an
empty cell.
5)#N/A Error
This appears most often when using a lookup function. The error indicates the
value searched for is not available.
6)#null Error
This error occurs when the wrong reference operator is used or not found.
7)#num! Error
This type of error occurs when excel usually cannot display the result of a
mathematical operation.
8)#REF! Error
It appears when a formula refers to an invalid cell.
4 HARDIK VERMA
01414788822
ASSIGNMENT-3
RELATIVE REFERENCE
Relative cell reference is basic cell reference that adjust and change when
copied or copied across the next cell. By default, all cell references are relative
references. When copied across multiple cells, they change based on the
relative position of rows and columns. For example, if you copy the
formula =A1+B1 from row 1 to row 2, the formula will
become =A2+B2. Relative references are especially convenient whenever you
need to repeat the same calculation across multiple rows or columns.
Q1- Find the net income for all the months when total revenue and total
expenses are given.
Solution- The formula that will be used to calculate net income is,
= (cell of total revenue-cell of total expenses), that is =C7-D7.
Similarly, the net income for the other months can be obtained by the same
method or by auto filling.
5 HARDIK VERMA
01414788822
ABSOLUTE REFERENCE
Unlike relative references, absolute references do not change when copied or
filled. You can use an absolute reference to keep a row and/or column constant.
An absolute reference is designated in a formula by the addition of a dollar sign
($) before the column and row. We should make sure to include the dollar
sign ($) whenever we are making an absolute reference across multiple cells. If
the dollar signs are omitted it causes the spreadsheet to interpret it as a relative
reference, producing an incorrect result when copied to other cells.
Q- FIND THE PERCENTAGE OF THE MARKS OBTAINED BY STUDENTS
IN A CLASS.
Solution: To find the percentage, the first step would be to freeze the cell of
total marks. If we do not do that, the spreadsheet would interpret the result as
relative reference, producing an incorrect result. To freeze the cell, we would
add the dollar sign before and after the cell that mentions the total marks. and in
this table, it will be done as, [$C$8].
6 HARDIK VERMA
01414788822
MIXED REFERENCE
A mixed reference is made up of both an absolute reference and
relative reference. This means that part of the reference is fixed, either
the row or the column, and the other part is relative.
7 HARDIK VERMA
01414788822
ASSIGNMENT-4
CONDITIONAL FORMATTING
Conditional formatting is a feature that allows to apply specific formatting to
your cells according to certain criteria. The conditions are rules based on
specified numerical values or matching text. The browser version of Excel
provides several built-in conditions and appearances.
TASK- Make a table which consists of number, dates, and text. Perform
conditional formatting on them.
Q1- Highlight the columns that are greater than 50 under the number header
(first column).
To highlight the numbers greater than 50 we will first go to conditional
formatting > highlighting cell rules > greater than. Then we will select the value
under which we are putting our condition on and select the color we want those
values to be highlighted with.
8 HARDIK VERMA
01414788822
Q2-Highlight the text that contains Monday.
To highlight the texts that says Monday, we will first go to conditional
formatting > highlighting cell rules > text that contains. Then, we will write the
text as Monday and select the color we want the text to be highlighted with.
9 HARDIK VERMA
01414788822
Q3- Perform all the condition formatting under dates header that are provided in
the excel.
Go to conditional formatting > highlighting cell rules > a date occurring
yesterday/tomorrow/today etc.> Highlight the result.
1)Date occurring yesterday
10 HARDIK VERMA
01414788822
3)Date occurring tomorrow
11 HARDIK VERMA
01414788822
5)Date occurring last week
12 HARDIK VERMA
01414788822
7)Date occurring next week
Q-4 Highlight the texts under the condition that they are unique or duplicate.
Solution- To highlight the duplicate cells/unique cells, go to conditional
formatting > highlight cell rules > duplicate values/unique values >
duplicate/unique.
Q-5 highlight the top three items under the number header (last column).
13 HARDIK VERMA
01414788822
Solution-Go to conditional formatting > top/bottom rules > top 10 items > 3.
14 HARDIK VERMA
01414788822
ASSIGNMENT-5
FILTERS IN EXCEL
A filter in excel is a function that allows you to sort data within a file. A filter
takes the data from a range of cells and outputs an array of data that matches the
applied filter. Filters are an automated process that can refine a list, table or
spreadsheet based on single or multiplied criteria.
Types of filters:
1)Equal: this filter option displays all the data with the same exact values as the
criteria you enter the filter.
2)Does not equal: this option displays all the data that has a different value from
the criteria you enter the filter.
3)Greater than: Using this option allows you to display all the data that has a
value greater than the criteria you enter the filter.
4)Greater than or equal to: This feature displays all the data that has the same
value or a higher value than the criteria you enter the filter.
5)Less Than: Selecting this option displays all the data that has a lower value
than the criteria you enter the filter.
6)Less than or equal to: This filter option displays all the data that has the exact
value or a lower value than the criteria you enter the filter.
7)Between: Using this option enables you to display all the data that has the
value between two criteria you enter the filter.
8)Top 10: This filter option displays the largest 10 values in your selected range
based on the data you enter.
9)Above average: This option displays values that are higher than the average of
the range you select based on the data you enter.
10)Below Average: This filter option displays values that are lower than the
average of your selected range of data based on what you enter.
15 HARDIK VERMA
01414788822
11)Custom filter: This displays values based on unique criteria that you enter
after choosing this option and the range you select.
a) On the region header, use the filter to find the regions starting with ‘N.’
Solution: filter that will be used – ‘Begins With’
b) On the Sales representative header, use the filter to find words that
contain the letter ‘a.’
16 HARDIK VERMA
01414788822
c) On the Product header, use the filter to find the rows that does not
contain computer
d) On the date header, use the filter to find the dates after 05-01-24.
Solution- filter that will be used – ‘after’
17 HARDIK VERMA
01414788822
e) On the date header, use the filter to find the dates between 4-1-24 and 10-
1-24.
f) On the product header, use the filter to find the products whose name ends with ‘m’.
18 HARDIK VERMA
01414788822
19 HARDIK VERMA
01414788822
ASSIGNMENT-6
FUNCTIONS IN EXCEL
1)Sum Product Function
This function returns the sum of the products of corresponding ranges or arrays.
The default operation is multiplication, but addition, subtraction and division
are also possible.
The formula that will be used is:
20 HARDIK VERMA
01414788822
2)MROUND Function
The function returns a number rounded to a multiple given by the user.
MROUND will always round up away from zero. The formula that will be used
is:
3) Floor Function
21 HARDIK VERMA
01414788822
This function is used to round a given number down to the nearest multiple of a
specified number.
The formula that will be used is:
Q3- Use the floor function to round down the following numbers:
(3.4,1), (16.4,10), (4.4,10)
4)Ceiling function
This function rounds a given number up to the nearest specified multiple.
CEILING works like the MROUND function, but CEILING always rounds up.
The formula that will be used is:
22 HARDIK VERMA
01414788822
5)MOD Function
This function is used to find the remainder after division of one number
(dividend) by another number (divisor).
The formula that will be used is:
23 HARDIK VERMA
01414788822
6)Quotient Function
This function returns one number divided by another, without the remainder.
Q6- Find the quotient of 55&20 when divided by 11&10 respectively.
24 HARDIK VERMA
01414788822
ASSIGNMENT-7
STRING FUNCTIONS
1) LEFT and RIGHT Function
The LEFT function is used to retrieve a chosen number of characters, counting
from the left side of an Excel cell. The chosen number has to be greater than 0
and is set to 1 by default. The syntax of the LEFT function is: =LEFT (text,
[num_chars])
The RIGHT function is a text string function that gives the number of characters
from the right side of the string. It helps extract characters beginning from the
rightmost side to the left. The syntax of the RIGHT function is: =RIGHT (text,
[num_chars])
Q1- On ‘ABC’ use the LEFT&RIGHT string function to see what will be
the output.
2)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. The syntax of MID function is: =MID (text,
start_num, num_chars).
25 HARDIK VERMA
01414788822
Q2- On ‘ABC’ use the mid function to see what result is obtained.
26 HARDIK VERMA
01414788822
4)LENGTH Function
This function returns the length of a given text string. The syntax that is used in
this function is: =LEN (text)
Q4- Use ‘LENGTH’ function on your name.
5) SEARCH Function
This function returns the position of a specified character or a sub string within
a supplied text string. The syntax that is used for the function is:
27 HARDIK VERMA
01414788822
Q6- Use LEFT, RIGHT, LENGTH and SEARCH function on: I am Hardik
Verma, I am pursuing B.com hons
6)FIND Function
This function locates one text string within a second text string, and return the
number of the starting position of the first text string from the first character of
the second text string. The syntax that is used in this function is:
28 HARDIK VERMA
01414788822
Q7-Use ‘FIND’ function on the sentence: I am Hardik Verma, I am pursuing
B.com hons
Q8-Use the LEFT, RIGHT and FIND function Altogether on the sentence: I am
Hardik Verma, I am pursuing B.com hons
7)TRIM Function
This function is used to remove irregular text spacing and keep single spaces
between words. The syntax that is used for this function is:
29 HARDIK VERMA
01414788822
Q9- Use ‘TRIM’ function on sentence: I am Hardik Verma, I am pursuing
B.com hons
8)CONCATENATE Function
This function is used to join two or more text strings into one string. The syntax
that is used is: =CONCATENATE (text1, text2)
Q10-Use the ‘CONCATENATE Function on the sentence: Hello, I am Suyog
Bapat, I am currently pursuing BCom(hons) and how are you doing.
9)SUBSTITUTE Function
This function replaces one or more text strings with another text string. The
function is useful when we wish to substitute old text in a string with a new
string. The syntax that will be used is:
=SUBSTITUTE (text, old text, new text, [instant Num])
Q11-SUBSTITUTE ‘am ‘with ‘are’ in hello, I am Suyog Bapat, I am pursuing
BCom(hons)
30 HARDIK VERMA
01414788822
10) REPLACE Function
This function replaces part of a text string, based on the number of characters
you specify, with a different text string. The syntax that will be used is:
31 HARDIK VERMA
01414788822
ASSIGNMENT-8
IF & AND FUNCTION
1)IF Function
The IF function is one of the most popular functions in Excel, and it allows you
to make logical comparisons between a value and what you expect.
So, an IF statement can have two results. The first result is if your comparison is
True, the second if your comparison is False.
The formulae used for the same is:
2)AND Function
Returns the logical value TRUE or Yes if all the arguments evaluate to TRUE;
returns FALSE or No if one or more arguments evaluate too FALSE.
The formulae used for the same is:
Q1- Prepare a table of student marks in 5 subjects and use ‘IF’ & ‘AND’
function on the same.
32 HARDIK VERMA
01414788822
Q2- From the table of 3 numbers, find the greatest number using ‘IF’ & ‘AND’
function.
33 HARDIK VERMA
01414788822
ASSIGNMENT-9
COUNT FUNCTION
1)COUNT:
The COUNT function counts the number of cells that contain numbers, and counts numbers
within the list of arguments.
QUESTION: using the COUNT function count the cells that contain numbers in them.
SOLUTION:
2)COUNTA:
The COUNTA function counts cells containing any type of information, including error values
and empty text (""). The COUNTA function does not count empty cells.
34 HARDIK VERMA
01414788822
QUESTION: using the COUNTA function count the non blank cells.
SOLUTION:
3)COUNTBLANK:
The COUNTBLANK function is one of the Statistical functions, to count the
number of empty cells in a range of cells.
The syntax that is used for COUNTBLANK Function is:
QUESTION: Use the COUNTBLANK function to find the number of blank cells.
SOLUTION:
4)PERMUTATION:
The PERMUTATIONA Function is a Statistical function. It returns the number of
permutations that are possible for a specified number of objects in a given set.
The syntax that is used for PERMUTATION function is:
35 HARDIK VERMA
01414788822
QUESTION: using the permutation function, find the permutation of 4,3.
SOLUTION:
5)COUNTIF:
The COUNTIF function is a premade function in Excel, which counts cells as
specified.
The syntax that is used for COUNTIF Function is:
36 HARDIK VERMA
01414788822
ASSIGNMENT-10
SUM IF FUNCTION
The SUMIF function is a premade function in Excel, which calculates the sum
of values in a range based on a true or false condition.
The syntax used for SUMIF Function is:
QUESTION: Make a data sheet of some people that includes their house name,
employee id, sales region, region code, sales, new customers and commission.
(a)find the total sales of north region
(b) find the total commission for new customers where the customer is
more than 20.
37 HARDIK VERMA
01414788822
(c) find the total sales for north region where the number of customers
is more than 12.
38 HARDIK VERMA
01414788822
(d) find total sales for north region where house name is stark and
commission is more than equal to 2000.
39 HARDIK VERMA
01414788822
ASSIGNMENT-11
AVERAGE IF FUNCTION
The AVERAGEIF Function is an Excel Statistical function, which calculates the
average of a given range of cells by a specific criterion.
It calculates central tendency, which is the location of the center of a group of
numbers in a statistical distribution.
The syntax that is used for AVERAGEIF function is:
QUESTION 1: make a data table that includes the name of students, their
enrollment number, college name, grade level and their test scores.
(a) calculate the average score for grade level 9, 10, 11 and 12
(b)calculate average score for those students whose grade level is 10 and
belongs to maims.
40 HARDIK VERMA
01414788822
(c) print welcome if the total score of grade 9 is more than 30 otherwise print
not selected.
41 HARDIK VERMA
01414788822
ASSIGNMENT-12
NOT AND IS BLANK FUNCTION
NOT Function
The Excel NOT function is designed to invert logical values. By flipping TRUE
to FALSE and vice versa.
NOT is essential for reversing conditions, making it a key player in creating
dynamic, conditional logic within formulas.
The syntax that is used for NOT Function is:
IS BLANK Function
The ISBLANK Function is an Excel Information function that returns true if the
argument cell has no information in it.
ISBLANK checks a specified cell and tells us if it is blank or not. If it is blank,
it will return TRUE; else, it will return FALSE.
The syntax that is used for the IS BLANK Function is:
42 HARDIK VERMA
01414788822
QUESTION 1: using the NOT and IS BLANK function, calculate the
commission (0.25% of extra sales) for employees who have extra sales
otherwise print no bonus.
SOLUTION:
SOLUTION:
43 HARDIK VERMA
01414788822
44 HARDIK VERMA
01414788822
ASSIGNMENT-13
SUM IF FUNCTION
The SUMIF function is a premade function in Excel, which calculates the sum
of values in a range based on a true or false condition.
The syntax used for SUMIF Function is:
(a)calculate the total sales where the ships (in days) are more than 5.
SOLUTION:
45 HARDIK VERMA
01414788822
(b)calculate total sales for those products where product name is keyboard or
mouse.
SOLUTION:
(d) calculate total sales for those products where the length of the product is 5
SOLUTION:
The wildcard characters that is used for this question are: ?????
This means - to match any character in a specific position.
(e)calculate total sales for those products where the date is greater than 01-01-
20
SOLUTION:
(f)calculate total sales for those products where the string USE is alone or in the
combination with any other characters.
46 HARDIK VERMA
01414788822
SOLUTION:
The wildcard character that will be used is: Asterisk (*)
It means: to match any number of characters.
47 HARDIK VERMA
01414788822
ASSIGNMENT-14
COUNT IF FUNCTION
COUNTIF FUNCTION:
The COUNTIF function is a premade function in Excel, which counts cells as
specified.
The syntax that is used for COUNTIF Function is:
COUNTIFS FUNCTION:
The COUNTIFS function applies criteria to cells across multiple ranges and
counts the number of times all criteria are met.
The syntax that is used for COUNTIFS Function is:
QUESTION: make a student data table which will include the name of
students, their student id’s, marks, address and their email id’s.
48 HARDIK VERMA
01414788822
(b) count the number the students whose name starts with ‘ab’ and marks are
more than 450.
SOLUTION:
(c) count the number of students whose name starts with ‘ab’ and end with ‘ta’.
SOLUTION:
(d) count the number of cells in student id’s where the cell contains numeric
values only.
SOLUTION:
49 HARDIK VERMA
01414788822
(e) count the number of students who belong to Delhi and Noida.
SOLUTION:
(f) count the number of students whose marks are more than average marks of
total students.
SOLUTION:
50 HARDIK VERMA
01414788822
ASSIGNMENT-15
LOOKUP FUNCTION
Lookup functions in Excel mean referencing a cell to match values in another
row or column against the cell and thereby retrieving the corresponding results
from the respective rows and columns.
The syntax used for lookup function is:
SOLUTION:
51 HARDIK VERMA
01414788822
ASSIGNMENT-16
HLOOKUP FUNCTION
HLOOKUP stands for Horizontal Lookup and can be used to retrieve
information from a table by searching a row for the matching data and
outputting from the corresponding column.
The syntax that is used for HLOOKUP Function is:
QUESTION: make a student data table of ‘A, B, C, D AND E’, and the subject
names.
52 HARDIK VERMA
01414788822
(b)using the HLOOKUP Function, find the marks of student ‘A’ in all subjects.
SOLUTION:
53 HARDIK VERMA
01414788822
ASSIGNMENT-17
VLOOKUP FUNCTION
VLOOKUP Function is used to find things in a table or a range by row. The
VLOOKUP function says:
=VLOOKUP(What you want to look up, where you want to look for it, the
column number in the range containing the value to return, return an
Approximate or Exact match – indicated as 1/TRUE, or 0/FALSE).
The syntax that is used for the VLOOKUP Function is:
SOLUTION:
54 HARDIK VERMA
01414788822
ASSIGNMENT 18
VLOOKUP AND MATCH FUNCTION
MATCH Function searches for a specified item in a range of cells, and then
returns the relative position of that item in the range.
The syntax that is used in the MATCH Function is:
QUESTION 1: using the VLOOKUP Function, access the data across different
workbooks to make a summary of the same.
55 HARDIK VERMA
01414788822
SOLUTION:
56 HARDIK VERMA
01414788822
ASSIGNMENT 19
PIVOT TABLE
A pivot table is an interactive way to quickly summarize large amounts of data.
For creating pivot table, select insert > pivot table. This creates pivot table
based on an existing table or range.
CREATE PIVOT TABLE USING THE GIVEN TABLE.
SOLUTION:
57 HARDIK VERMA
01414788822
ASSIGNMENT 20
ADVANCE FILTERS
Advanced filters allows you to generate list of items and extract those items to
another place in your worksheet or workbook. To use the advanced filter, we go
to DATA TAB > ADVANCED and fill the criteria required to get out data
filtered.
From the following table apply advanced filter and answer the following
questions:
58 HARDIK VERMA
01414788822
QUESTION 1: Show all the records for north region.
SOLUTION:
QUESTION 2: Show all the records where date is more than 13-04-2024.
SOLUTION:
QUESTION 3: Show all the records where region is east and sales is more than
4000.
SOLUTION:
QUESTION 4: Show all the records where the products are ‘vision pro’ and
region is ‘south’ or products are ‘mac book’ and region is ‘north’.
SOLUTION:
59 HARDIK VERMA
01414788822
QUESTION 5: Show all the records where the product is ‘mac book’ and
region is ‘north’ and sales is more than 3000 or product is ‘lan cable’ and region
is ‘west’. SOLUTION:
QUESTION 6: Show all the records where date is more than 01-04-2024 and
sales is less than 3000 and number of units is more than 30.
SOLUTION:
60 HARDIK VERMA
01414788822
ASSIGNMENT 21
POWER PIVOT TABLES
Power Pivot is an Excel add-in that enhances the capabilities of traditional pivot
tables by allowing users to work with larger datasets and perform more complex
data analysis. It's a business intelligence tool that enables users to create data
models, establish relationships between different data sources, and perform
sophisticated calculations.
Power Pivot enables users to create Data Models within Excel, which serve as
the foundation for analysis. These data models can combine data from multiple
sources, such as Databases, Excel tables, and external data feeds.
QUESTION 1: create a data model with the provided files of order, cookie
types, and customers, to calculate the revenue, profit, cost.
(a)order
(b)cookie type
61 HARDIK VERMA
01414788822
(c)customers
Easiest Way to relate databases is to find a similar key among them, for ex. In this database,
CUSTOMER ID is a similar key in Database of Customers & Orders and thus can be related easily
and with databases of Orders & Cookie Types, COOKIE TYPE is a similar key and thus can be
related, altogether relating all three databases. Relating Databases in Power Pivot is crucial because it
allows users to create comprehensive data models that combine information from multiple sources.
By establishing relationships between tables, users can perform advanced analyses, such as cross-
table calculations and aggregations, resulting in more accurate and insightful reports. This integration
enhances data integrity, simplifies analysis, and facilitates the creation of dynamic and interactive
visualizations for better decision-making.
62 HARDIK VERMA
01414788822
SOLUTION:
63 HARDIK VERMA
01414788822
64 HARDIK VERMA
01414788822
ASSIGNMENT 22
65 HARDIK VERMA
01414788822
STEP 2:
STEP 3:
STEP 4:
66 HARDIK VERMA
01414788822
STEP 5:
STEP 6:
67 HARDIK VERMA
01414788822
STEP 7:
STEP 8:
68 HARDIK VERMA
01414788822
STEP 9:
69 HARDIK VERMA
01414788822
Q2 Calculate revenue, cost, and profit per order
Solution
70 HARDIK VERMA
01414788822
Revenue
Cost
Profit
71 HARDIK VERMA
01414788822
Q3 Calculate total profit
72 HARDIK VERMA
01414788822
Q4 Calculate avg. profit for customer
73 HARDIK VERMA
01414788822
ASSIGNMENT 23
Power Query Power Query is another powerful tool in Microsoft Excel (and
also available in Power BI) that enables users to discover, connect, and
transform data from various sources. It allows you to import data from
databases, Excel files, text files, websites, and more, and then clean, reshape,
and combine that data before loading it into your Excel workbook
Steps for enabling power query
Step 1:
Step 2:
Step 3:
74 HARDIK VERMA
01414788822
Step 4:
75 HARDIK VERMA
01414788822
ASSIGNMENT 24
Step 1: We will make count the number of students who passed and failed in
each subjects using the Countif function
76 HARDIK VERMA
01414788822
77 HARDIK VERMA
01414788822
ASSIGNMENT 25
Correlation Q1. Make the graph of first two columns and last two columns with
their correlation table.
For the Following Information, we will have to use the following table:
Step 2:Go to the Data tab and click on the analysis option and select Correlation
option:
78 HARDIK VERMA
01414788822
Step 3: Then select the following data and generate the graphs :
79 HARDIK VERMA
01414788822
80 HARDIK VERMA
01414788822