7/29/2019 Excel Analysis Functions
1/46
NAME ENGLISH MATHS SCIENCE TOTAL
HARISH 67 55 79 201
MANOJ 56 65 89 210
RAKESH 49 90 69 208
SMITA 64 49 89 202 ASSIGNMENT 1
ASHISH 65 78 55 198
RAHUL 78 90 39 207SHEETAL 56 65 45 166
KETAN 55 65 76 196
BHASKAR 55 59 89 203
TOTALHARISH
MANOJ
RAKESH
SMITA
ASHISH
RAHUL
0
10
20
30
40
50
60
70
80
90
100
ENGLISH
SCIENCE
7/29/2019 Excel Analysis Functions
2/46
SHEETAL
KETAN
BHASKAR
7/29/2019 Excel Analysis Functions
3/46
QuestionsThe students name and marks are given in cell range
A1:D10. You are asked to get the total marks for all the students and then get the following output
(i) To display all the records where marks in science is >75
(ii) To view all the records where marks in maths is between
60 and 90
(iii) To view only the detail marks of ketan and harish(iv) Create a line graph showing detail marks in english and science
Solutions By Prof. Laxmi B PandTolani College of Com
1) The data is already given in cell range A1:D10
2) To get the Total Marks enter the heading "Total Marks"
in cell E1 and then move to cell E2 to type the formula as
"=sum(E2:E10)" and then using the autofill handle drag and copy the
formula till cell E10
3)To get the records where marks in science is >75 do the following :-(a)Select the cell range A1:D10 and then click on the Data Menu
From the toolbar choose th Filter option. You will find that the drop down list
would appear on the first row field
(b) To filter out the desired data click on the Science drop down list
and from the drop down list choose the Number filters optionand with that choose the sub-option "greater than" that will open the Custom
filter dialog box . Type 75 in the text box next to greater than.
and finally click on OK push button.This will give us the desired output.
4)To get the records where marks in maths is between 60 and 90 do the following :-
(a)Select the cell range A1:D10 and then click on the Data Menu
From the toolbar choose th Filter option. You will find that the drop down list
would appear on the first row field
(b) To filter out the desired data click on the Maths drop down list
and from the drop down list choose the Number filters optionand with that choose the sub-option "Between" that will open the Custom
filter dialog box . Type 60 in the text box next to "greater than equal to" and 90 in the text box next to "
and finally click on OK push buttonThis will give us the desired output.
5)To get the records where name is either Harish or Ketanfollowing :-
(a)Select the cell range A1:D10 and then click on the Data Menu
From the toolbar choose th Filter option. You will find that the drop down list
would appear on the first row field(b) To filter out the desired data click on the Name drop down list
and choose the option Text Filters and within than choose the Custom Filter dialog box
From the custom filter dialog box select from the first drop down list field choose the operator as "equ
type "Harish" . Select the radio button OR and from the second drop down list below choose the operat
and in the text box next to it type "Ketan" and finally click on the OK push button to get the desired out
6) Create a line graph showing marks in english and science
(a) Select the cell range A1:B10 and then press the CTRL key and select the cellrange D1:D10
7/29/2019 Excel Analysis Functions
4/46
(b)Click on the Insert Menu and Select Line graph from the displayed toolbar and within
that choose the style (2D or 3D) as desired
(c) This will display the desired Line graph.
7/29/2019 Excel Analysis Functions
5/46
a
erce
less than equal to 90"
ls" and in the text box next to it
or as "equals to"
put
7/29/2019 Excel Analysis Functions
6/46
NAME INCOME INCOME TAX SURCHAGE TOTAL TAX ASSIGNMENT 2
HARISH 340000 53000 0 53000
MANOJ 560000 119000 35700 154700
ASHOK 35000 0 0 0 The Income detail
RAJEEV 180000 10000 0 10000 The Income tax is
KETAN 200000 14000 0 14000
7/29/2019 Excel Analysis Functions
7/46
IF(CONDITION,TRUE VALUE,FALSE VALUE)
s are given in cell range A1:B10. Calculate the Income tax, surcharge and total tax
calculated as follows
Nil
10%20%
30%
f Income tax if income>=500000
tax+surcharge
000+(B2-230000)*0.3)))"
By Prof. Laxmi B Pandya
Tolani College of Commerce
7/29/2019 Excel Analysis Functions
8/46
NAME JOIN DATE DEPT SALARY
HARISH 9/8/1981 ADM 50000
7/29/2019 Excel Analysis Functions
9/46
NAME JAN FEB MARCH TOTAL BONUS SALES BONUS
HARISH 100000 200000 320000 620000 5000 300000 2000
MANOJ 180000 160000 145000 485000 3000 400000 3000
RAHUL 220000 150000 165000 535000 4000 500000 4000
KETAN 228000 200000 120000 548000 4000 600000 5000
AJAY 128000 145000 800000 1073000 7000 700000 6000
HETAL 560000 345000 190000 1095000 7000 800000 7000BHASKAR 560000 180000 170000 910000 7000
DILIP 220000 160000 220000 600000 5000
VLOOKUP(LOOKUP VALUE,LOOKUP ARRAY,COL INDEX)
WHAT TO LOOKUP, WHERE TO LOOKUP,WHICH COLUMN VALUE TO RETURN
Questions: The sales for the month of JAN, FEB and MAR along with the salesman name is given in
cell range A1:D9. Calculate the following
(i) Total sales for each salesman
(ii) Calculate the Bonus amount based on the criteria given in cell range H1:I7(or they may say given below a
Solution
(a) The salesman name and the sales for Jan,Feb and Mar is already given in cell range A1:D9.
(b) To calculate the total sales for each salesman type the heading as "Total Sales" in cell E1 and then
move to cell E2 to type the formula as "=Sum(B2:D2)" and then using the autofill handle drag and
copy the formula till cell D9.
(c) To calculate the Bonus for the salesman enter the heading "Bonus" in cell F1 and then move on to cell F2 to"=VLOOKUP(E2,$H$1:$I$7,2)" and then using the autofill handle drag and copy the formula till cell E9.
(d) This will give you the desired output
7/29/2019 Excel Analysis Functions
10/46
7/29/2019 Excel Analysis Functions
11/46
7/29/2019 Excel Analysis Functions
12/46
.
.
.
.
7/29/2019 Excel Analysis Functions
13/46
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
14/46
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
15/46
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
16/46
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
17/46
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
18/46
0
0
0
0
0
0
00
0
0
0
0
0
0
0
0
0
7/29/2019 Excel Analysis Functions
19/46
7/29/2019 Excel Analysis Functions
20/46
7/29/2019 Excel Analysis Functions
21/46
7/29/2019 Excel Analysis Functions
22/46
7/29/2019 Excel Analysis Functions
23/46
7/29/2019 Excel Analysis Functions
24/46
7/29/2019 Excel Analysis Functions
25/46
00][
7/29/2019 Excel Analysis Functions
26/46
By Prof. Laxmi B Pandya
Tolani College of Commerce
nd list that down)
type the formula as
7/29/2019 Excel Analysis Functions
27/46
NAME AGE DEPT BONUS
MANOJ 30 AC 50000
HETAL 32 AC 40000
RAHUL 29 AC 42000
HARISH 23 ADM 40000
AJAY 35 ADM 55000
BHASKAR 40 ADM 60000KETAN 28 HR 45000
DEEPAK 24 HR 50000 TO REMOVE THE SUBTOTAL
CLICK ON THE PUSH BUTTON REMOVE ALL A
THE Bottom
Question: Create a department wise subtotal of the above data/ summarise it department wise
Solution:
(a) Select the cell range A1:D9 and then click on the Data menu to choose the Sort option
this will open the Sort dialog box and within that select check box "My data has a header row"
(b) Select the column to sort as "Dept" , from the sort on drop down list choose values
and the order as A-Z and then click on the OK push button to get the sorted list.
(c) Select the cell range A1:D9 again and this time again click on theData Menu and from the toolbar choose th
as "Subtotal". This will open the subtotal dialog box. From the dialog box select from the drop down list "At eac
"At each change in" the value as "Dept" and from the Function drop down list select the function as "Sum" and
from the option "Add subtotal to" click on the check box "Bonus" and finally click on the OK push button to get
result.
7/29/2019 Excel Analysis Functions
28/46
suboption
h change in"
the desired
By Prof. Laxmi B Pandya
Tolani College of Commerce
7/29/2019 Excel Analysis Functions
29/46
NAME JOIN DATE DEPT SALARY
MANOJ 8/6/1982 AC 60000
KETAN 5/6/1987 AC 200000
DEEPAK 5/9/2009 AC 250000
HARISH 9/8/1981 ADM 50000
RITESH 9/5/2005 ADM 200000
HETAL 2/4/2009 HR 160000MAHESH 2/3/1987 HR 180000
LAXMI 9/9/1990 HR 150000
(Question 1,2 and 3 are Autofilter problem and 4 is Advanced Filter)
Question: Display the details of the employees from the Accounts department having salary >250000
(i) Display the details of the employees whose name is "Ritesh"
(ii) Display the details of the employees from AC dept.
(iii) Display the details of employees whose join date is between 05/06/1987 to 09/10/1988
(iv)Display the details of the employees from the Accounts department having salary >250000
Solution 1
(a) Select the data range A1:D9 and click on the Data Menu to choose the Filter option
this will place a drop down list on all the fields in cell A1,B1,C1 and D1 respectively.
(b) Click on the Name drop down list to select "Ritesh" this will display the
details of employee with the name as "Ritesh"
Solution 2
(a) Select the data range A1:D9 and click on the Data Menu to choose the Filter option
this will place a drop down list on all the fields in cell A1,B1,C1 and D1 respectively.
(b) Click on the Dept drop down list to select "AC" this will display the
details of employee with the Dept values as "AC" or employees belonging to the AC dept.
Solution 3
(a) Select the data range A1:D9 and click on the Data Menu to choose the Filter option
this will place a drop down list on all the fields in cell A1,B1,C1 and D1 respectively.
(b) Click on the Join-date drop down list and select the sub-option as Data Filters and
within that choose the sub-option "Custom Filter" this will open the custom filter
dialog box
(c) From the custom filter dialog box choose "Show Rows where" Join-date the first operator as
"greater than equal to" and in the text box next to the operator type "05/06/1987"
(d) Choose the radio button as 'AND"
(e) From the drop down list below choose the operator as "Less than equal to" and
in the text box next to it type the value as "09/10/1988" and then click on OK push button
to get the filtered output.
Solution 4
(a) Type Name ,Join date, Dept and Salary in cells A11,B11,C11 and D11 respectively
(b) In cell C12 type the value as "AC" and in cell D12 type the value as ">25000"
(c) Click on the Data Menu to choose the Advanced Filter option from the Toolbar
7/29/2019 Excel Analysis Functions
30/46
this will open the Advanced Filter Dialog Box.
(d) From the Advanced Filter Dialog Box Select the Action radio button as
"Copy the list to another location"
(e) In the List range text box type the address as "A1:D9"
(f) In the criteria range text box type the address as "A11:D12"
(g) In the copy to text box select the cell range "A15:D25"
Finally click on the OK push button to get the desired output.
7/29/2019 Excel Analysis Functions
31/46
By Prof. Laxmi B Pandya
Tolani College of Commerce
7/29/2019 Excel Analysis Functions
32/46
NAME JOIN DATE DEPT SALARY
HARISH 9/8/1981 ADM 50000
MANOJ 8/6/1982 AC 60000
HETAL 2/4/2009 HR 160000
KETAN 5/6/1987 AC 200000
MAHESH 2/3/1987 HR 180000
RITESH 9/5/2005 ADM 200000DEEPAK 5/9/2009 AC 250000
LAXMI 9/9/1990 HR 150000
Values
Row Labels Sum of SALARY Min of SALARY2 Row Labels
9/8/1981 50000 50000 AC
8/6/1982 60000 60000 ADM
2/3/1987 180000 180000 HR
5/6/1987 200000 200000 Grand Total
9/9/1990 150000 150000
9/5/2005 200000 200000
2/4/2009 160000 160000
5/9/2009 250000 250000
Grand Total 1250000 50000
Question 1: Create a pivot table showing join_date, sum of salary and minimum salary
Solution(a) Select cell range A1:D9 click on Insert Menu
(b) The pivot table option appears as the first option on the toolbar
(c) Select pivot table option from the toolbar and within that choose the sub-option as pivot tabl
this will open the pivot table dialog box
(d) In the dialog box select the radio button "Select the table range" and in the text box
below type the cell range as A1:D9.
(e) In the option below "Choose where you would like to place your pivot table"
select the radio button "Existing Sheet" and type any empty address for eg A27:D45
and then click on OK push button
(f) The pivot table field list opens. Click on the check box Join-date and Salary
Join- date is placed in the Row Labels and Salary being a numeric field Salary appears in the V(g)Again drag the Salary field to the Values field to get salary but this time click on salary and c
option value field setting and change the summarise value from sum to Min. this will change th
sum to minimum and then finally click on OK push button to get the desired result
7/29/2019 Excel Analysis Functions
33/46
Question 1: Create a pivot table showing dept,max salary and average salary
Solution
(a) Select cell range A1:D9 click on Insert Menu
(b) The pivot table option appears as the first option on the toolbar
(c) Select pivot table option from the toolbar and within that choose the sub-option as pivot tabl
this will open the pivot table dialog box
(d) In the dialog box select the radio button "Select the table range" and in the text boxbelow type the cell range as A1:D9.
(e) In the option below "Choose where you would like to place your pivot table"
select the radio button "Existing Sheet" and type any empty address for eg A27:D45
and then click on OK push button
(f) The pivot table field list opens. Click on the check box Dept and Salary
Dept is placed in the Row Labels and Salary being a numeric field Salary appears in the Values
(g)Again drag the Salary field to the Values field to get salary
(h) Click on the first salary displayed in the values text box and choose value field setting
option and change the summarise value from sum to Max. this will change the summarisation f
sum to maximum and then click on the second Salary option and choose the sub-option as
value field setting and change the summarise value from sum to average.Finally click on OK push button to get the desired result
7/29/2019 Excel Analysis Functions
34/46
Values
Max of SALARY Average of SALARY2
250000 170000
200000 125000
180000 163333.3333
250000 156250
le.
lues text box belowhoose the
e summarisation from
TPS
Computer system and applications
Kinnari Prakashan
7/29/2019 Excel Analysis Functions
35/46
By Prof. Laxmi B Pandya
Tolani College of Commerce
le.
text box below
om
7/29/2019 Excel Analysis Functions
36/46
ROLLNO MARKS RESULT CLASS
1 45 PASS SECOND CLASS
2 65 PASS FIRST CLASS
3 34 FAIL FAIL
4 67 PASS FIRST CLASS
5 89 PASS DISTINCTION
Question 1 : To derive the result and classSolution
The students rollno and the marks are given in cellrange A1:B6
To determine their result enter the heading "Result" in cell C1 and go to
cell C2 to type the formula as "=IF(B2>=35,"PASS","FAIL")" andthen
using the autofill handle drag and copy the formula till cell C6.
To determine the class of the student enter the heading "Class" in cell D1
and then move to cell D2 to type the formula as
"=IF(B2>=75,"DISTINCTION",IF(B2>=60,"FIRST CLASS",IF(B2>=45,"SECOND CLASS",IF(B2>=35,"PASS CLASS","F
and then using the autofill handle drag and copy the formula till cell D6.
Question 2 : What will be the formula exhibited in cell range D2:D6 to determine the class
Solution
D2 "=IF(B2>=75,"DISTINCTION",IF(B2>=60,"FIRST CLASS",IF(B2>=45,"SECOND CLASS",IF(B2
D3 "=IF(B3>=75,"DISTINCTION",IF(B3>=60,"FIRST CLASS",IF(B3>=45,"SECOND CLASS",IF(B3
D4 "=IF(B4>=75,"DISTINCTION",IF(B4>=60,"FIRST CLASS",IF(B4>=45,"SECOND CLASS",IF(B4
D5 "=IF(B5>=75,"DISTINCTION",IF(B5>=60,"FIRST CLASS",IF(B5>=45,"SECOND CLASS",IF(B5
D6 "=IF(B6>=75,"DISTINCTION",IF(B6>=60,"FIRST CLASS",IF(B6>=45,"SECOND CLASS",IF(B6
Question 3: The following formula is entered in cell D2 and then copied to all the cells till cell D6 what will b
D2:D6
"=IF(B2>=75,"DISTINCTION",IF(B2>=60,"FIRST CLASS",IF(B2>=45,"SECOND CLASS",IF(B2>=35,"PASS CLASS",
Solution
D2 SECOND CLASS
D3 FIRST CLASS
D4 FAIL
D5 FIRST CLASS
D6 DISTINCTION
7/29/2019 Excel Analysis Functions
37/46
IL"))))" By Prof. Laxmi B Pandya
Tolani College of Commerce
>=35,"PASS CLASS","FAIL"))))"
>=35,"PASS CLASS","FAIL"))))"
>=35,"PASS CLASS","FAIL"))))"
>=35,"PASS CLASS","FAIL"))))"
>=35,"PASS CLASS","FAIL"))))"
e the value exhibited in cell range
FAIL"))))"
7/29/2019 Excel Analysis Functions
38/46
Firstname Lastname Score
Sachin Tendulkar 67
Ajay Jadeja 50
Mahindra Singh Dhoni 69
Rahul Dravid 50
Sachin Tendulkar 65
Rahul Chopra 70Irfan Pathan 50
Anil Kamble 55
Question : The cricket details are given in cell range A1:C9
Arrange the given record in the Ascending order of Firstname
and within that arrange it in the ascending order of Lastname
Solution
(a) Select the Data Range A1: C9 and click on the Data Menu
(b) From the toolbar select he Sort option this will open
the sort dialog box
(c) From the sort dialog box select the check box "My data has a header row" and
from the sort by column drop down list choose the field as "Firstname" and from
the sort on drop down list choose values and select the order as "A-Z" from the order by
drop down list
(d) From the top click on the option Add Level and then at the second level or Then By clause
select the sort by column as "Lastname" sort on values and the order as "A-Z" and then
finally click on the OK push button to get the desired output.
7/29/2019 Excel Analysis Functions
39/46
Question : Generate a custom list for name of the soap or they may say
for the following data and give you the list
(1) Enter the soap name or the data for which custom list has to be generated in a
particular cell range for eg J1:J9 and then click on the Office button at the top
(2) From the Office button choose the push button "Excel Options"
(3) This will open the dialog box with Popular being the active option.
from the right hand side choose "Edit Custom List" and thiswill open the custom list dialog box with your data listed
(4) Click on Import push button followed by ADD button to add the list
to custom list and finally click on the OK push button twice to get
the desired output.
(5) To test type any value from that data range and try dragging it using the
autofill handle. You will find the rest of the data autogenerated
Custom List is autogeneration of a list of data for eg. Weekday, Month name
are automatically generated in excel if you type any one name and copy it using the
autofill handle
7/29/2019 Excel Analysis Functions
40/46
Lux Lux
Camay Camay
Lifebuoy Lifebuoy
Pears Pears
Cinthol Cinthol
Hamam Hamam
Liril LirilMedimix Medimix
Santoor Santoor
By Prof. Laxmi B Pandya
Tolani College of Commerce
7/29/2019 Excel Analysis Functions
41/46
Name Dept Desg Basic
Ketan AC Manager 15000
Manoj ADM Clerk 6000
Ashwin HR Supervisor 9000
Hitesh ADM Manager 11000
Suresh HR Clerk 5000
Atul ADM Supervisor 8000Meena HR Manager 12000 cms
Vivek AC Clerk 7000
Rahul AC Supervisor 10000
Question : Arrange the above given data in order of Supervisor, Clerk and Manager and within that in the ascendi
order of Dept.
(a) Type Supervisor,Clerk and Manager in cell G1:G3 and select that range
and then click on the Office button at the top left corner
(b) From the Office button choose the push button "Excel Options"
(c) This will open the dialog box with Popular being the active option.
from the right hand side choose "Edit Custom List" and thiswill open the custom list dialog box with your data listed
(d) Click on Import push button followed by ADD button to add the list
to custom list and finally click on the OK push button twice to get
the desired output.
(e) To test type any value from that data range and try dragging it using the
autofill handle. You will find the rest of the data autogenerated
(f) Now select the data range A1:D10 andthen click on the data menu to
choose the sort option from the toolbar.This will open the sort dialog box
(g) From the sort dialog box choose the check box "My data has a header row"
(h) From the sort by column choose the fieldname as Desg, Sort on option asvalues and from the order drop down list select the custom list option
(i) From the custom list dialog box select the list Supervisor,Clerk and Manager
and click on OK push button
(j) From the top click on the option Add Level and then at the second level or Then By clause
select the sort by column as "Dept" sort on values and the order as "A-Z" and then
finally click on the OK push button to get the desired output.
7/29/2019 Excel Analysis Functions
42/46
ing
By Prof. Laxmi B Pandya
Tolani College of Commerce
7/29/2019 Excel Analysis Functions
43/46
NAME ENGLISH MATHS SCIENCE TOTAL
HARISH 67 55 79 201
MANOJ 56 65 89 210
RAKESH 49 90 69 208
SMITA 64 49 89 202 ASSIGNMENT 1
ASHISH 65 78 55 198
RAHUL 78 90 39 207SHEETAL 56 65 45 166
KETAN 55 65 76 196
BHASKAR 55 59 89 203
TOTAL
0
10
20
30
40
50
60
70
80
90
100
ENGLISH
SCIENCE
7/29/2019 Excel Analysis Functions
44/46
7/29/2019 Excel Analysis Functions
45/46
Questions:
Prepare a Line graph for the above given data
Solution
1) Select the cell range A1:D10
2) Click on the Insert Tab and from the toolbar choose the graph as Line graph
3) Within the Line graph option choose one of the subtype of line graph
4) You will get the desired graph
Questions :
Prepare a Pie chart for marks in maths
Solution
1) Select the cell range A1:A10 and then press the CTRL key to select the cell range C1:C10
2) Click on the Insert Tab and from the toolbar choose the graph as Pie graph
3) Within the Pie graph option choose one of the subtype of Pie graph
4) You will get the desired graph
By Prof. Laxmi B Pandya
Tolani College of Commerce
HARISH
MANOJ
RAKESH
SMITA
ASHISH
RAHUL
SHEETAL
7/29/2019 Excel Analysis Functions
46/46
KETAN
BHASKAR