P15E1387
P15E1387
Instructions
1. This is a closed book, closed internet and open laptop exam.
2. For all questions please write down the Excel formula and output of the question in the box provided in every que
3. Please write your Unique Examination Code at the appropriate place.
4. The question paper carries 4 questions. Please use only the space provided to answer.
5. All questions are to be answered in this Excel file only. No other file will be evaluated.
6. Any instance of copying or plagiarism, if found, will be highly penalized
7. You need to provide the explanation for every question. The explanation consists of description about all the ste
taking any function/set of fuctions, and overall approach for anwering any question.
8. No clarifications shall be answered during the exam. If you make any assumption, clearly state that assumption.
9. This excel file needs to be submitted after the exam. The work done in this excel file will only be evaluated.
Marks - 30
he box provided in every question. Only answers provided in the box shall be evaluated.
d.
description about all the steps, all the functions, sequence of fucntions, reason for
n.
early state that assumption.
will only be evaluated.
INSTRUCTIONS:
1) In cell I17, use Excel functions to display the name of company and country name of the
corresponding customers in cell H17. Drag the same formula to complete the Report 1.
(Note: Only one fuction has to written for one scenario)
2) For Report 2, if the Customer ID exists then column I (Exists?) should display "YES".
Table 1
Employee Customer ID Company Country
Amameth Parera 40713 Srilankan Airlines Srilanka
Yang Jun Jie 43144 Alibaba Group Australia
Achala Bandara 43370 Pearson Srilanka
Chen Gang 48831 Sinochem Australia
Aynoor Khan 46119 Coco Cola Nepal
Ali Ahmed 45194 IBM Nepal
Diljahan Bukhari 43287 Amazon Nepal
Aqsaa Dhanial 42699 Pizza Hut. Nepal
Asanka de Silva 48236 Hayleys Srilanka
Longwei Wu 46754 Baowu Australia
Zhou Min 48722 Sinopec Australia
Chen Wei 47669 Sinopec Australia
Chen Fang Li 49419 Tancent Australia
Zhang Wang 40267 Alibaba Group Australia
Chen Li 49943 Hengli Group Australia
Taslima Khatun 42326 Walton Bangladesh
Mousiq Khan 43454 Beximco Group Bangladesh
Chan Juan 45910 Sinopec Australia
Ganesh Kumar 45046 Flipkart USA
Jameel Ansari 40556 Hero Motocorp USA
Maya 44706 Tata Motors USA
Rajesh Karmakar 48083 Tiger Analytics USA
Nandini Bhattacha 40793 Delloite USA
Saurav Paul 47364 Parle Agro USA
Srishti Sutradhar 48982 NESTLE USA USA
Anjali Mehta 45093 UNIQLO USA USA
Suraj Kulkarni 49791 Dream 11 USA
K. Mahesh Rao 44956 Bosch USA
Fatima Khanan 47631 Unilever Bangladesh
Report 1 July Customers
[8 Marks]
3 4
Scenario 1: Use VLOOKUP with other excel function
Customer Name Company Country
Diljahan Bukhari Amazon Nepal
Chen Fang Li Tancent Australia
Asanka de Silva Hayleys Srilanka
Achala Bandara Pearson Srilanka
Customer ID Exists?
4093 No
4761 No
4073 No
4985 No
4594 No
4836 No
EXPLANATION:
=VLOOKUP(H17,$B$14:$E$42,3,FALSE)
H17: This is the lookup value. The formula will search for the value in cell H17 within the first
column (B14:E42) of the specified range.
$B$14:$E$42: This is the table array where the formula searches for the lookup value. The range
includes columns B to E, starting from row 14 to 42.
3: This indicates the column index from which to return the result. Since ,$B$14:$E$42, includes
four columns (B, C, D, E), the number 3 refers to column D.
FALSE: This specifies that the function will look for an exact match.
=OFFSET($B$13,MATCH(H24,$B$14:$B$42,0),MATCH(I$23,$C$13:$E$13,0))
OFFSET(B13,): The OFFSET function returns a cell reference that is a certain number of rows and
columns away from a starting cell—in this case, B13.
MATCH(H24,$B$14:$B$42,0): This finds the row number where the value in H24 appears within the
range ,$B$14:$B$42,0) . The MATCH function returns the relative position of H24 in this range.
The same function has been repeated after including "0" that reflects the exact value.
=IF(COUNTIF($C$14:$C$42,H35),"Yes","No")
COUNTIF($C$14:$C$42,H35): This counts the number of times the value in cell H35 appears in the
range $C$14:$C$42
"Yes", "No": If the count is greater than zero, the formula returns "Yes"; otherwise, it returns "No".
Property Portfolio
Asking
Date Sold Sale Price Create a pivot table of the property portfolio to answer follwing ques
Price
sheet):
£345,000 1) How many Semi-detached type properties are there with
2/1/2018 £245,000 £238,500 2) Find out the location of property mentioned in question
12/19/2017 £199,000 £199,000 3) What is average Sale price of property in Postcode SK1
1/23/2018 £398,000 £387,500 4) How many properties are there in Countryside with 2 or
12/19/2018 £329,000 £319,500 5) How many properies with 1 or 2 Bedroom were placed
£478,500
1/16/2017 £213,000 £199,500
2/18/2018 £278,500 £277,000
£278,500 Explanation
1/29/2018 £176,500 £174,300 For question 2, we construct a pivot table for each scenario required.
1/13/2018 £223,750 £219,750 First, we create a pivot table with 'Type' as the column and 'Garden Size
'Location' in the row section to specify the exact location ("countryside
£135,000 Next, we build another pivot table, this time setting the average of 'Sale
1/19/2018 £165,900 £168,000 required information, resulting in an average sale price of £276,500.
12/28/2017 £415,500 £419,500 For part 4, we construct a pivot table with 'Number of Bedrooms' as th
12/28/2017 £415,500 £419,500 the postcodes, giving us a total of 22 properties that meet the conditio
Finally, we create a pivot table with 'Number of Bedrooms' in the colum
12/28/2017 £415,500 £419,500 "between" filter. This gives us the number of properties
£199,500
1/19/2018 £175,500 £169,500
2/15/2018 £319,750 £315,750
£289,500
£525,750
2/25/2018 £495,000 £495,000
1/15/2018 £369,500 £362,500 Part 1 + Part 2 No Bedrooms 2
£176,500 No Bathrooms 2
£142,500
12/28/2017 £415,500 £419,500 Count of Type
2/13/2018 £314,250 £309,750 Garden Size Location
£178,500 Medium
2/25/2018 £305,000 £302,750 Countryside
2/15/2018 £435,000 £429,500 Total Result
2/15/2018 £385,000 £375,500
10/17/2017 £405,000 £405,000 Part 3 PostCode Average of Sale Price
11/30/2017 £159,000 £158,500 SK14 3DD 276500
12/11/2017 £278,000 £276,500 Total Result 276500
2/25/2018 £178,600 £175,500
1/17/2018 £435,000 £431,750 Part 4 Count of PostCode No Bedrooms
12/11/2017 £345,500 £342,500 Location 2
12/19/2017 £418,500 £422,500 Countryside 5
£375,500 Total Result 5
£169,500
12/28/2017 £415,500 £419,500
1/27/2018 £298,500 £298,500
1/22/2018 £331,750 £330,500
12/11/2017 £385,500 £383,500
2/3/2018 £322,500 £319,500
11/16/2017 £365,500 £365,500
£312,750
1/4/2018 £309,500 £304,500
2/5/2018 £204,500 £203,900
£225,500
12/28/2017 £415,500 £419,500
10/5/2017 £209,500 £209,500
1/15/2018 £272,500 £271,500
2/25/2018 £389,500 £395,000
1/23/2018 £348,500 £349,500
3/15/2018 £299,950 £299,950
io to answer follwing questions (You should attach Pivot Table sheet for answering questions in your answer
ype properties are there with 2 bedrooms, a medium garden and 2 bathrooms? 1
perty mentioned in question 1. 0
f property in Postcode SK14 3DD? 276500
ere in Countryside with 2 or more Bedroom? 22
or 2 Bedroom were placed in market from December 2017 to January 2018? 1
No Bedrooms
1 2 Total Result
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 2
1 1
1 1
1 1
1 1
1 1
1 1
1 14 15
This shape represents a
slicer. Slicers are
Count of Type No BedroomsNo Bathrooms Garden Size
supported in Excel
3 3 Result Total Result2010 or later.
2 2 Result
Location Type Large If the shape was
Countryside 8 8 8 modified
8 in an earlier
Bungalow 8 8 8 version
8 of Excel, or if
the workbook was
Remote 2 2 2 2
saved in Excel 2003 or
Bungalow 2 2 2 2
earlier, the slicer cannot
Total Result 10 10 10 10
be used.
This shape represents a
slicer. Slicers are
supported in Excel 2010
or later.
PostCode Average of Sale Price
SK13 4DE 175500 If the shape was
Total Result 175500 modified in an earlier
version of Excel, or if
the workbook was saved
in Excel 2003 or earlier,
the slicer cannot be used.
ape was If the shape was If the shape was If the shape was
d in an earlier modified in an earlier modified in an earlier modified in an earlier
of Excel, or if version of Excel, or if version of Excel, or if version of Excel, or if
book was the workbook was the workbook was saved the workbook was
Excel 2003 or saved in Excel 2003 or in Excel 2003 or earlier, saved in Excel 2003 or
he slicer cannot earlier, the slicer cannot the slicer cannot be used. earlier, the slicer
be used. cannot be used.
e represents a
cers are
d in Excel 2010
pe was
in an earlier
f Excel, or if
book was saved
2003 or earlier,
cannot be used.
Predicted Total
Dog Correct Predictions
4 16 Animal 80.00%
20 24 Fruits 66.67%
24 40
6 Marks
Predicted Total
Potato
8 24
16 24
24 48
EXPLANATION:
the COUNTIFS() function to count the number of data points that meet
ns in the function. For instance, if the actual value is 'Cat' and the
'Cat', we input the table column for "Actual" followed by 'Cat', then the
icted" followed by 'Cat' to calculate the total number of data points that
e calculate the counts for the remaining cells, and then use the SUM()
total count.
erences to input the values into the percentage table, dividing each value
alculate the percentage.
[8 Marks]
Incorrect Predictions
20.00% 2 Marks
33.33%
Product Key Product ID (v1) Product ID (v2) Product Category
133462-AA-BOS_SMALL 133462 133462 AA
191768-AC-NYC_MEDIUM 191768 191768 AC
157263-BB-BOS_XL 157263 157263 BB
1734372-AA-CHI_SMALL 173437 1734372 AA
135351-BC-NYC_XL 135351 135351 BC
14330305-AC-BOS_LARGE 143303 14330305 AC
177772-BB-NYC_MEDIUM 177772 177772 BB
87192837-AB-CHI_XL 871928 87192837 AB
161266-BB-CHI_SMALL 161266 161266 BB
122892-AA-NYC_MEDIUM 122892 122892 AA
128919-AC-CHI_XL 128919 128919 AC
191999-BB-BOS_LARGE 191999 191999 BB
117091126-BC-NYC_LARGE 117091 117091126 BC
112283-AB-BOS_MEDIUM 112283 112283 AB
[8 Marks]
Explanation
For the first column, we use the LEFT() function to extract a portion of the string "Product Key" from the left, specifying the nu
column, we use the LEFT() function in combination with the FIND() function to locate the position of the "-" in the string. Onc
"-" to obtain the full Product ID.
In the third column, we extract the Product Category using the MID() function. This function allows us to cut the string from t
point, which is the position immediately after the first "-". We achieve this by using FIND("-",string) to identify the "-" and the
number of characters to extract (in this case, 2).
For the fourth column, we use a combination of IF(), ISNUMBER(), and FIND() functions, as instructed. The IF() function check
particular string (e.g., "SMALL"). If FIND() returns a number, we input the corresponding Product Size; if not, we proceed to th
An alternative method is to use the RIGHT() function to extract characters from the right side of the string by specifying the n
LEN(string) - FIND("_", string) to obtain the portion of the string after the "_".
For the final part, we first substitute the second "-" in the string with "@" to differentiate between the two "-". Then, we use
required data. Adding 1 to this number moves the cursor forward by one step, allowing us to extract the city name from the s
Product Size (v1) Product Size (v2) New Key City
SMALL SMALL 133462-AA@BOS_SMALL BOS
MEDIUM MEDIUM 191768-AC@NYC_MEDIUM NYC Note: Product Key is des
XL XL 157263-BB@BOS_XL BOS 1) Using some excel function, po
SMALL SMALL 1734372-AA@CHI_SMALL CHI characters of the Product Key in
XL XL 135351-BC@NYC_XL NYC 2) Turns out that some product I
LARGE LARGE 14330305-AC@BOS_LARGE BOS Product ID formula for getting AL
MEDIUM MEDIUM 177772-BB@NYC_MEDIUM NYC
3) Populate the Product Categor
XL XL 87192837-AB@CHI_XL CHI following the first "-" in the Prod
SMALL SMALL 161266-BB@CHI_SMALL CHI
MEDIUM MEDIUM 122892-AA@NYC_MEDIUM NYC 4) Populate Product Size using IF
XL XL 128919-AC@CHI_XL CHI If Key includes "SMALL", Size = SM
LARGE LARGE 191999-BB@BOS_LARGE BOS If Key includes "MEDIUM", Size =
LARGE LARGE 117091126-BC@NYC_LARGE NYC If Key includes "LARGE", Size = LA
MEDIUM MEDIUM 112283-AB@BOS_MEDIUM BOS If Key includes "XL", Size = XL
Note: ISNUMBER returns TRUE i
on allows us to cut the string from the middle to retrieve the required data. We input the start
"-",string) to identify the "-" and then add 1 to move to the next character. Then, we specify the
s instructed. The IF() function checks whether FIND() returns a number when searching for a
roduct Size; if not, we proceed to the next IF() condition.
ide of the string by specifying the number of characters needed. We calculate this by using
between the two "-". Then, we use the MID() function along with FIND("@",string) to locate the
to extract the city name from the string.
INSTRUCTIONS:
Note: Product Key is designed as: Product ID-Product Category-City_Product Size
Using some excel function, populate the Product ID (v1) column, equal to the first six
racters of the Product Key in column A
Turns out that some product IDs may be longer than 6 characters. In column C, update the
duct ID formula for getting ALL characters to the left of the first "-"
Populate the Product Category column in column D, to return the two characters immediately
owing the first "-" in the Product Key
Populate Product Size using IF, ISNUMBER, and Find functions, based on the logic below:
nstead of using IF, ISNUMBER, and FIND functions, write some other formula in column F to
d the size of the product by pulling all characters from the right of the Product Key following
underscore ("_")
How can we extract the city name ("BOS", "NYC" or "CHI"). You can use an intermediate
umn New Key. Then, write a function in column H to return city name.