Advanced Excel
Advanced Excel
Steps:
1. Open a spread sheet and type in the labels called number 1 and
number 2 in the cells A1 and B1 and add in the cell C1. This is just for
us to identify the values and they are not involved in actual execution
2. In A2 and B2, type in the numbers to be added.
3. In C2, type in =A2+B2 and press enter to display the result. In excel
calculations are prefixed with = sign followed by the operation on
cells
4. The cell number represents the numbers (For e.g A2 and B2 are used
which denote 3 and 5 respectively with a plus sign in between as in
the case of normal addition.
5. To add more than two numbers, add as many columns (number1,
number2, number3 etc., and extend the formula as =A2+B2+C2+….
Extending an operation by clicking and dragging
Steps:
Problem 3:
Consider the problem of preparing a stationary order for the month of
March. The item description, quantity and cost per item are available. The
total cost per item is to be calculated and the final cost per item involves a
sales tax of 2% over the total cost. The gross total and the net total are to be
displayed.
Steps:
Problem 4: Let us consider the problem of finding the total and average of 3
subject marks for five students in a class in the board exam. The data is
entered into the spread sheet as shown below:
Steps:
1. To calculate sum, type =sum( in the cell F2 and click and drag the
cells C2, D2 and E2 i.e., =sum(C2:E2) where : denotes the range to
add maths physics and chemistry marks of student no1.
2. For calculating sum for other students, click and drag the sum value of
F2 till F6
3. Similarly calculate average as =average(C2,D2,E2) or
=average(C2:E2). The first case is used if the cells are not continuous
whereas the second case is used when the cells are continos.
4. The result of the above problem is given below:
Problem 5:
Calculate the Maximum mark, minimum mark, mean, median, standard
deviation and variance for each subject.
Steps:
Each of the switches has 2 states (on and off). When an odd number of
switches are on, the bulb remains off and in all other cases, the bulb glows.
Design a truth table and find the various states of the bulb for various
combinations of the 3 switches.
Solution:
Steps:
1. Write the various combinations of the three switches in three columns
2. Write the truth values for the conditions where the switch is on as 1
and others as 0
3. Consider the conditions where the switch is on and combine the three
switch states using the logical operators AND,OR and NOT.
For e.g, for combination 2 in the above figure when switch A and B
are on and switch C is off we get the formula as B2 (for switch A),C2
(for Switch B) and not D2(for switch c) which is written as the excel
formula AND(B2,C2, NOT(D2)).
4. Likewise the formula is formed for all the conditions where the switch
is on and all such on state formulae are combined using OR operator
as follows:
=OR(AND(B2,C2,NOT(D2)),AND(B2,NOT(C2),D2),AND(NOT(B2),
C2,D2),AND(NOT(B2),NOT(C2),NOT(D2)))*1
5. This final formula can be dragged throughout the state column to fill
in the other states.
6. The formula gives TRUE or FALSE results which can be converted
into Boolean values by multiplying by 1
Problem 7:
Excel University provides Computers to its faculty members and the assets
team performs a periodical stock taking to check if the same machine is still
used by the faculty or it has been replaced by some other machine for some
reason by the systems team. A machine could be changed if it is upgraded or
it is repaired or if it is replaced by some other. A copy of the list resides in
the assets office and it is checked with the list noted by the stock taker and
those machines which do not match with the old list need to be updated with
the new details. Prepare a data sheet containing cabin numbers (numbered
F1,F2,…. F20) machine models (Excelsys1100,…) and verify with another
set similar data obtained by the stock taking operation and indicate the
matching and non-matching entries in the sheet which needs updation.
Solution:
Steps:
Problem 8:
In this problem you are given the name, gender, attendance, assignment,
midterm and final grades of five students. Find the total of the assessment
marks. Students who pass need to have a total score greater than or equal to
50. Display the word "Pass" or "Fail" under a column called Description
Steps:
Problem 9:
Extend the above pass/fail computation problem to include attendance also.
A student passes if he has an attendance greater than 8 else he fails even if
he has a total greater than 50
Solution:
Modify the formula in the previous problem as
=IF(AND(C12>8,G12>=50),"pass","fail")
Problem 10:
In the previous problem, without considering attendance as criteria for
passing, calculate the grades of the students as per the grade rule table given
below:
Solution:
Steps:
1. Add a column called grade
2. This problem needs to be solved using if function within if function as
follows:
For example if Virak’s total cell is G22 then the function is formulated as
=IF(G22>=90,"A",IF(AND(G22>=80,G22<90),"B",IF(AND(G22>=70,
G22<80),"C",IF(AND(G22>=60,G22<70),"D",IF(AND(G22>=50,G22<
60),"E","F")))))
Problem 11:
You are given a file containing the name and age of people. You have to
count the number of people in each category as minor(<18), major(18-25),
middle aged(26-40), above middle age (40-60) and senior citizen (61-100)
using a single function for each scenario and print the count pertaining to the
conditions.
Steps:
Problem 12:
Consider a table containing the consignments of different fruits from
different suppliers as shown in the figure below. You have the fruit names in
column A, supplier’s names in column B, and quantity in column C. Find
out how many quantities of each fruit is received.
Solution:
Steps:
1. To find the number of apples the formula is
=SUMIF(A2:A9,"apples",C2:C9)
2. A2:A9 stands for range that is the type that we want
3. In the range A2:A9 we are searching for “apples”
4. Based on the search range and criteria “apples”, we need to sum the
column Quantity (C2:C9)
5. A word of caution while dragging the formula for other fruits:
a. When you drag the formula for other fruits aiming to just
change the name of the fruit be cautious to use absolute
referencing as the table reference will change as you drag (due
to the default relative referencing of excel)
b. Instead use the formula as
=SUMIF(A$2:A$9,"apples",C$2:C$9) which would prevent the
automatic updation of rows
6. To apply sum if on multiple criteria, for example to find the
number of apples supplied by pete, use SUMIFS which is available
Microsoft excel 2007 or later as follows:
=SUMIFS(C2:C9, A2:A9, "apples", B2:B9, "Pete")
Problem 13:
Given the below worksheet Write appropriate text functions in excel to
calculate first name, last name and email id.
Solution:
Steps:
Problem 14:
Given the table below,
1. Use hlookup function to display student's name Sok Pagan
2. Use vlookup function to find the computer score of the students
named Khorn Channa and Cheng Sokun
Steps:
Solution:
In any one of the empty cells apply HLOOKUP(“Steve”,A1:I4,4,FALSE)
which returns 61. Here Steve is the lookup value,A!:I4 is the range/table of
search, 4th row which is the English marks must be returned and Range look
up is false as we require an exact match. Hence the output will be:
Problem 16:
Given the table below, use VLOOKUP to find the price of a photo frame
Steps:
1. In a cell say E2, type in the formula =VLOOKUP("Photo frame",
A2:B16, 2, FALSE)
2. When you press Enter, it should give you the answer, which is 9.99.
Problem 17:
In the above exercise, let us say you have a third column that has the
category for each item as shown in the below figure. This time, instead of
finding the price we'll find the category.
Steps:
1. To find the category, we'll need to change the second and third
arguments in our formula.
2. First, we'll change the range to A2:C16 so it includes the third
column.
3. Next, we'll change the column index number to 3 because our
categories are in the third column:
4. When you press Enter, you'll see that the Gift basket is in the Gifts
category.
Problem 18:
You are given two tables Element Table and Element Table 2 . Fetch the
melting points of the elements from the second table and fill in the first
table.
Steps:
=VLOOKUP(C3,$F$3:$G$14,2,FALSE)
1. Table is referred using A:D ; this refers to the entire table ( Note: we
need not mention the row labels)
2. Values are to be fetched for Florian from columns 1,2,3,and 4; this is
specified within parenthesis as a comma separated list as {1,2,3,4}
3. The formula is :
=VLOOKUP("Florian",A:D,{1,2,3,4},FALSE)
----- Select 4 cells in a row
------Enter Formula
--------Press Shift+CTL and
Enter
Problem 20:
Find the revenue amount for Country Brazil for the Year 2014 in the
Revenue by Country and Year table.
Steps:
1. The strategy is to fetch the index for Year 2014 using HLOOKUP
and use that index in VLOOKUP for Brazil and get its revenue.
2. Modify the table to insert a row below the first row and enter the
column indices. It is shown in green in the modified table given
below.
2. First let us find the column index of 2014 using HLOOKUP.
Assume 2014 is stored in D5.
Moving horizontally across the top of the table array selected (green
border table -----C13:G14), stop at the lookup value (“2014“) and
return the value in the corresponding second row.
HLOOKUP ( D5 , C13:G14 , 2 , FALSE )
Moving vertically down the left side of the table array selected (red
border table--- C13:G14), stop at the lookup value (“Brazil“) and
return the value in the corresponding the column returned by
HLOOKUP (the formula is written in step 2.) The result of
HLOOKUP is 4.
Problem 21:
Given the data below for fruit sales, Create a line chart .
Hints:
Hints:
1. Goto Insert Chart and choose pie chart and choose a sub chart type
with 3D visual effect
2. Select the data from A3 to B21
3. Give next→next and finish to display the chart
Page Referencing
Problem 23:
Consider the following scenario: the employee hourly rates of pay are stored
in one spreadsheet, and a list of hours worked during the last month, are
stored in a second spreadsheet as shown in the figures below:
Complete the "Sales Team Hours" spreadsheet, so that it shows the pay
owed to each sales team member, by looking up each person’s rate of pay
from the "Hourly Pay" spreadsheet.
Solution:
The following figure shows the Vlookup function, in cells C2-C3 of the
"Sales Team Hours" spreadsheet, used to look up the hourly pay rates for
each of the sales team members. While writing the vlookup function’s
second value namely ‘HourlyPay’!A:B, Select the sheet in which the hourly
pay is present and select that table and press enter and excel would fill the
formula in the Sales team hours sheet
The results of these Vlookup functions are shown in the spreadsheet below.
As expected, each team member's hourly rate of pay has been inserted into
the corresponding cell in column C.