Assignment of Excel
Assignment of Excel
1. IF Function:
o Determine if employees are earning above or below $50,000. Use the IF function to
display "Above" or "Below".
o ANS
o =IF(F2>50000,"above","below")
2. IFS Function:
o Assign a performance rating based on the number of project hours: "Excellent" for
50 or more hours, "Good" for 40-49 hours, "Average" for 30-39 hours, and "Poor" for
below 30 hours.
o ANS
o =IFS(J2>=50,"Excellent",AND(40<=J2,J2<50),"Good",AND(30<=J2,J2<40),"Average",J
2<30,"Poor")
3. AND Function:
o Check if employees from the HR department and North region have sales above
$15,000.
o ANS
o =IF(AND(E2="HR",I2="North",H2>15000),"True","False")
4. OR Function:
o Identify employees who are either in the IT department or have a salary above
$60,000.
o ANS
o =IF(OR(E2="IT",H2>60000),"True","False")
5. NOT Function:
o Determine if employees are not from the Marketing department.
o ANS
o =IF(E2<>"Marketing","True","False")
6. SUMIF Function:
o Calculate the total salary of employees from the Sales department.
o ANS
o =SUMIF(E2:E201,"Sales",F2:F201)
7. SUMIFS Function:
o Calculate the total salary of employees in the IT department who have more than 35
project hours.
o ANS
o =SUMIFS(F2:F201,E2:E201,"IT",J2:J201,">35")
8. COUNTIF Function:
o Count the number of employees in the HR department.
o ANS
o =COUNTIF(E2:E201,"HR")
9. COUNTIFS Function:
o Count the number of female employees in the Finance department.
o ANS
o =COUNTIFS(D2:D201,"F",E2:E201,"Finance")
10. AVERAGEIF Function:
o Find the average salary of employees in the Marketing department.
o ANS
o =AVERAGEIF(E2:E201,"Marketing",F2:F201)
11. AVERAGEIFS Function:
o Find the average sales for employees in the North region with project hours above
40.
o ANS
o =AVERAGEIFS(H2:H201,I2:I201,"North",J2:J201,">40")
12. MAXIFS Function:
o Determine the maximum salary among employees in the South region.
o ANS
o =MAXIFS(F2:F201,I2:I201,"South")
13. MINIFS Function:
o Find the minimum number of project hours for employees in the Finance
department.
o ANS
o =MINIFS(J2:J201,E2:E201,"Finance")
14. VLOOKUP Function:
o Use VLOOKUP to find the salary of an employee based on their ID.
o ANS for ID = 7
o =VLOOKUP(A8,Sheet1!A2:J202,6,FALSE)
15. HLOOKUP Function:
o Use HLOOKUP to find the joining date of employees based on their department.
o ANS for Finance
o =HLOOKUP(G1,G1:G201,MATCH(T22,E1:E201,0),FALSE)
16. INDEX and MATCH Functions:
o Use INDEX and MATCH to find the sales amount for a specific employee.
o ANS
o =ARRAY_CONSTRAIN(ARRAYFORMULA(INDEX(A1:J201,5,8,FALSE)),1,1)
17. Conditional Formatting:
o Highlight cells in the Salary column that are above $60,000.
18. Pivot Table:
o Create a pivot table to summarize average sales by region and department.
19. Data Validation:
o Set up data validation to allow only dates after 2015-01-01 in the Joining Date
column.
20. Chart Creation:
o Create a bar chart to visualize the total sales by department.