0% found this document useful (0 votes)
29 views

Assignment (Part 2)

Uploaded by

mridulrathi4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Assignment (Part 2)

Uploaded by

mridulrathi4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

INDIAN INSTITUTE OF MANAGEMENT LUCKNOW

GROUP PROJECT
ON

LOGICAL FUNCTIONS

Submitted to:

Prof. Pradeep Kumar


Date of submission:
10th September 2023

Submitted By:

Abhishek (PGP39343)

Meka Charan (PGP39367)

Mridul Rathi (PGP39368)

Rukul Pratap Singh (PGP39382)

Saiyam Jain (PGP39383)

Sanika Dhengre (PGP39384)


Logical Functions Usage in real life data samples

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

S.No Column Name Description Data Type

1 EEID Employee ID. Ex: E02837 String

2 Full Name Full Name of the Employee. Ex: Emily Davis String

3 Job Title Job Title of the Employee. Ex: Sr. Manager String

4 Department Department. Ex: IT String

5 Business Unit Business unit employee is part of. Ex: Manufacturing String

7 Gender Gender of Employee. Ex: Female String

8 Ethnicity Ethnicity of Employee. Ex: Asian String

9 Age Age of Employee. Ex: 55 Number

10 Hire Date Date Employee was hired. Ex: 2/3/1999 Date

11 Annual Salary Annual Salary of employee. Ex: 100,000 Number

12 Bonus % Bonus percentage of employee. Ex: 10% Percentage

13 Country Country of Employee Office. Ex: United States String

14 City City of Employee Office. Ex: Seattle 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")

This will give entries corresponding to female employees as True

3. Find out if an employee can be considered under ethnic diversity factor? Applies to all the
combinations in below table

Black Asian Caucasian Latino

United States Diverse Diverse

China Diverse Diverse Diverse

Brazil Diverse Diverse

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

Solution: =IF(OR(D2="IT",D2="Engineering"),"IT &


Engineering",IF(OR(D2="Sales",D2="Marketing"),"Sales &
Marketing",IF(OR(D2="Finance",D2="Accounting"),"Finance & Accounting","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

Solution: =IF(H2<30,"Young",IF(AND(H2>=30,H2<50),"Middle Age","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%

You might also like