Assignment (Part 2)
Assignment (Part 2)
GROUP PROJECT
ON
LOGICAL FUNCTIONS
Submitted to:
Submitted By:
Abhishek (PGP39343)
Before going into the real-life sample questions, I would like to define the dataset we used
for the project.
Data file used is Employee sample data which contains personal details and company related
details of all the employees in an organisation. Below is a list of columns of excel and their
basic description and details
2 Full Name Full Name of the Employee. Ex: Emily Davis String
3 Job Title Job Title of the Employee. Ex: Sr. Manager String
5 Business Unit Business unit employee is part of. Ex: Manufacturing String
15 Exit Date Date of exit if left the firm or blank. Ex: 10/16/2021 Date
On the above data set, we have applied certain business questions which can be applied in
real life below and created formulae using condition functions which can help solve the
questions.
1. Find out if an employee is currently in the firm or not?
Solution: = IF(N2="","In","Out")
This will give entries corresponding to blank as In and corresponding to exit date having
values as Out
2. Find out if gender diversity factor can be applied to any employee? Applies for female
employees
Solution: =NOT(F2="Male")
3. Find out if an employee can be considered under ethnic diversity factor? Applies to all the
combinations in below table
Solution: =OR(AND(OR(L2="United
States",L2="Brazil"),OR(G2="Black",G2="Asian")),AND(L2="China",OR(G2="Black",G2
="Caucasian",G2="Latino")))
This will return True to all the combinations mentioned under diverse in above table and false
to all other combinations
4. Find out if an employee can be categorized under any one diversity factor of Gender or
Ethnicity?
Solution: =OR(Q2,R2)
This will return True for all the entries who are either ethnically diverse or have gender
diversity
5. Find out if an employee can be categorized under both diversity factor of Gender and
Ethnicity?
Solution: =AND(Q2,R2)
This will return True for all the entries who are ethnically diverse and have gender diversity
6. Find out if an employee is part of senior leadership? Senior leaders are people having
manager or partner or president or director in their designation
Solution:
=IF(OR(IFERROR(SEARCH("Manager",C2),0)>0,IFERROR(SEARCH("partner",C2),0)>0,
IFERROR(SEARCH("Director",C2),0)>0,IFERROR(SEARCH("President",C2),0)>0),"TRU
E","FALSE")
This will return True to all the entries who has designation containing either of partner,
manager, president and director
7. Group certain departments together to make employee division analysis? Group IT &
Engineering, Finance & Accounting, Sales & Marketing and Human Resources
This returns IT & Engineering for both IT and Engineer Employees, Finance & Accounting
for both Finance and Accounting Employees, Sales & Marketing for both Sales and
Marketing Employees and Human Resources will be as it is
8. Split Employees based on age group? <30 as young, 30 – 50 as Middle Age and >=50 as
older age
This returns Young for employees aged <30, Middle Age for employees aged between 30-50
and older age for employees aged >=50
9. Split Employees based on annual salary? <100000 as low, 100000 – 150000 as Medium
and >150000 as high
Solution: =IF(J2<100000,"Low",IF(J2>150000,"High","Medium"))
This returns Low for employees with annual salary <100000, Medium for employees with
annual salary between 100000-150000 and high for employees with annual salary >=150000
10. Split Employees based on bonus? <10% as low, 10% – 15% as Medium and >15% as
high
Solution: =IF(K2<0.05,"Low",IF(K2>0.15,"High","Medium"))
This returns Low for employees with bonus <10%, Medium for employees with bonus
between 10% -15% and high for employees with bonus >=15%