Questions for Practicals (8)
Questions for Practicals (8)
The company's CFO asked you to use SUM formula to calculate the total revenue for the year.
Note: You need to fill the highlighted section to mark your answer.
Hint: You can use " =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_m
Child Name Movie/TV Show Book/Author Sport Animal/Bird Color
Emma Frozen Harry Potter Soccer Tiger Red
Liam Spider-ManDiary of a Wimpy KidBasketball Lion Maroon
Olivia Moana J.K. Rowling Gymnastics Dog Pink
Noah Toy Story William Shakespeare Baseball Elephant Brown
Ava Frozen II Premchand Tennis Monkey Turquoise
Sophia The Incredibles Jeff Kinney Cricket Panda Green
Jackson Toy Story - I Enid Blyton Hockey Owl Magenta
Aiden The Lion King Roald Dahl Softball Cat Lavender
Madison Finding Nemo Dr. Seuss Table Tennis Dolphin Orange
Lucas Need for SpeedShel Silverstein Swimming Penguin Yellow
Employee ID Location
55879 Capetown
50217 Warsaw
50695 Cairo
Name Salary
Ian Nash
Johnny Slash
Estelle Cormack
Name Age
Tommy 12
Jim 23
Amount
A+ 100%
A- 50%
The following table contains the names of students from 2024 class.
Use IF function to calculate the scholarships' amounts each of them will get
Questions
s
Create a VLOOKUP formula to find the occupation of Jane Doe.
Result:
Enter function here:
Create a VLOOKUP formula to find the occupation of a person whose name starts with "B" (Challenging!)
Result:
Enter function here:
Software Eng
Email Employee ID First Name Last Name City Hire Date
[email protected] 9345 John Storm London 5/1/2020
[email protected] John Johnson Manchester 1/19/2019
[email protected] Debby Powers Cardiff 9/21/2018
[email protected]
6076 Joe Byethen Bristol 12/2/2018
[email protected] 8198 Stephanie Diaz London 11/6/2018
[email protected] Donald Gump Liverpool 11/29/2017
[email protected] Sarah Cohen Birmingham 11/16/2018
[email protected]
8187 Vladimir Lupin Cambridge 12/4/2018
For our example, we'll see how we solved the question for John Storm - the first row in the table.
A To extract the first and last name, we can use the Left, Find & Mid functions.
Let's start with the first name:
John
LEFT Syntax:
#NAME?
We use the LEFT function to extract the first characters from the text.
How many characters exactly? This will be determined within the num_chars argument.
As we know that the first name ends when the dot (.) appears, we can ask Excel to find the position of that dot
We will use the FIND function for that.
Find Syntax:
#NAME?
find_text What we are looking for? In our example - the dot (.) sign
within_text Where are we looking for it? In our example - Cell B2 which contains John Storm's email addre
[start_num] This is an optional argument, which is not required here as we are looking to start the search fr
After we found the location of the dot (.) using FIND, we will subtract 1 (minus 1), because we don't want to ex
BONUS - we can use the PROPER function to capitalize the first letter of the name.
start_num - FIND(".",B2)+1
We know that the last name starts after the dot. So we'll use the FIND formula to find the position of the dot.
We will add + 1, as we do not want to extract the dot itself, but only what comes afterwards.
num_chars - FIND("@",B2)-FIND(".",B2)-1
We will try to calculate the length of the last name by first finding where it ends - it ends with the @ sign. Then
So we'll subtract the numbers, and the result is the length of the last name (and we add minus 1 to not include
The Proper in the end is used to capitalize the first letter of each last name.
London
value - What we are looking for. In our example - Cell B2 - The email address, which appears in both tables.
table_array - Where are we looking for the result? This table will include the column with the email addresses
col_index_num - After we found our match - From which column will we retrieve the corresponding result? In
range_lookup - We will use 0 for exact match in 99.9% of the cases.
Now, VLOOKUP formula is contained inside an IFERROR formula. The purpose of the IFERROR formula is to ma
When can we expect an error in a VLOOKUP formula? Well, for example, if we do not find a match for our look
If we look at another example, such as [email protected] - The email is found, and the city Cardiff is
C Retrieve the hire date of the employees. In case the hire date is missing, it means that the employee was hired
5/1/2020
This example is similar to the previous question. We retrieve the date using the email address, and if the emai
The way we chose to represent the date is by using the DATE formula.
The DATE formula syntax is as follows:
#NAME?
As date formats differ in different areas, the DATE formula is a good method to avoid inconsistencies in the da
D If an employee was hired before 2019, it means he's an experienced employee. Otherwise, return "No experie
No Experience
logical_test - Check whether the year is before 2019. To do so, we'll extract the year from the date. We can us
value_if_true - What should we return if the condition is met. If the employee started before 2019, we'll return
value_if_false - What should we return if the condition is not met. In our case, if the employee didn't start befo
E Your company had outstanding financial results in 2020, so the CEO decided to raise the payroll of all the emp
Employees hired in 2020 - 3% Raise
Employees hired in 2019 - 5% Raise
Employees hired in 2018 or before - 10% Raise
0.03
First, we'll check if the employee started before or during 2018, by using the <= operator (Greater or Equal)
If it is true, then we'll return 10% Payroll Raise.
Now, we can use the value_if_false, to check the rest of the options, by using another IF formula, that will:
Return 5% if the year is 2019, and if not - Will return 3%.
As we checked in the first IF formula whether the year is 2018 or earlier, and as we found out in the second IF
As our first employee was hired during 2020, he's eligible to 3% raise.
Experienced EmPayroll Payroll Raise %
No Experience £10,088 3%
No Experience £11,176 5%
Experienced £10,546 10%
Experienced £10,004 10%
Experienced £11,383 10%
Experienced £10,236 10%
Experienced £10,822 10%
Experienced £11,379 10%
ow in the table.
find the position of that dot and the number of characters will be the position minus 1 (as the dot itself is irrelevant)
because we don't want to extract the dot - we want to stop one character before it.
nd the position of the dot.
t ends with the @ sign. Then we find where it starts - we know it's the dot sign.
e add minus 1 to not include the @ itself…)
e IFERROR formula is to make Excel return a custom message in case there is an error in the VLOOKUP formula.
not find a match for our lookup - we will get an #N/A error.
ts in an error.
tem - It doesn't!
he value_if_error - "London"!
ail address, and if the email address is not found, we return the date January 5, 2021.
ar from the date. We can use the YEAR formula to extract the year from the date!
ted before 2019, we'll return "Experienced"
e employee didn't start before 2019, then we'll return "No Experience"
e the payroll of all the employees in the company, in the following rates:
found out in the second IF that the year is not 2019, we understand that year has to be 2020 or later.
e formula in the cells below.
In this module, we will focus on learning how to make basic arithmetic operations using excel
Use the following guidelines to calculate the statements below:
(=) equals, use = sign before the formula to calculate a formula
(+) plus
(-) minus
(/) divide
(*) multiply
(%) percentage sign (will divide the number by 100 if added after a value)
Arithmertics
2 Plus 3
3 Minus 1
5 Times 10
10 Divided by 2
Date
Date Exchange Rate 1/1/2021
1/5/2021 1/4/2021
1/15/2021 1/5/2021
1/24/2021 1/6/2021
1/7/2021
1/8/2021
1/11/2021
1/12/2021
1/13/2021
1/14/2021
1/15/2021
1/18/2021
1/19/2021
1/20/2021
1/21/2021
1/22/2021
1/25/2021
1/26/2021
1/27/2021
1/28/2021
1/29/2021
ble in columns G-H.
Exchange Rate
$1.37
$1.36
$1.36
$1.36
$1.36
$1.36
$1.35
$1.37
$1.36
$1.37
$1.36
$1.36
$1.36
$1.37
$1.37
$1.37
$1.37
$1.37
$1.37
$1.37
$1.37
VODAFONE IDEA LTD
RATIOS:
Dividend Payou 6.76% 7.92% 0.00% 0.00% 0.00% 0.00%
OPM 34.21% 32.46% 28.75% 21.41% 11.10% 33.18%
TRENDS:
Sales Growth
OPM
Price to Earning
Investment decision
SCREENER.IN
Fill the missing fields in the following worksheet, based on the instructions below:
Email Employee ID First Name Last Name City Hire Date Experienced Em
[email protected] 9345
[email protected]
[email protected]
[email protected]
6076
[email protected] 8198
[email protected]
[email protected]
[email protected]
8187
A Extract the First and Last Name of each employee based on the email address, which is in the following format:
[email protected]
firstname - Employee's First Name
lastname - Employee's Last Name
B Retrieve the cities where each employee lives from the old system. In case a certain employee isn't found in the old databa
C Retrieve the hire date of the employees. In case the hire date is missing, it means that the employee was hired on January 5
D If an employee was hired before 2019, it means he's an experienced employee. Otherwise, return "No experience"
E Your company had outstanding financial results in 2020, so the CEO decided to raise the payroll of all the employees in the
Employees hired in 2020 - 3% Raise
Employees hired in 2019 - 5% Raise
Employees hired in 2018 or before - 10% Raise
Good Luck!
Employee Data
Email Hire date City
[email protected]
1/19/2019 Manchester
[email protected]
9/21/2018 Cardiff
[email protected]
11/16/2018 Birmingham
[email protected] 11/6/2017 Liverpool
[email protected]
11/6/2018 London
[email protected]
11/29/2017 Liverpool
[email protected]
12/2/2018 Bristol
[email protected]
9/11/2018 Belfast
[email protected]
12/4/2018 Cambridge
stem to the new system which was recently implemented.
quired to complete them, as much as possible.
wing format:
t found in the old database, it means that he's a new hire, and therefore the default is London.
ee was hired on January 5, 2020.
"No experience"
all the employees in the company, in the following rates: