Assignment-4, Answer
Assignment-4, Answer
Q.1: How many employees are there in each department (Computer, Finance, Electrical)?
Ans.-To count the number of employees in each department, we can use the COUNTIF
function.Assuming the department names are in column B and the data starts from row 2, you
can use the following formulas:
Q.2: How many employees have a basic salary in the Computer Department only?
Ans.-To sum the basic salaries of employees only in the Computer Department, you can use the
SUMIF function.
Sum of Basic Salary in Computer Department: =SUMIF(B2:B7, "COMPUTER",
C2:C7)
Q.3: What are the post and grade of Manoj and Ashish?
Ans.-To find the post and grade of Manoj and Ashish, you can use the VLOOKUP function.
Post of Manoj (assuming his name is in cell D3):
=VLOOKUP("MANOJ", B2:F7, 3, FALSE)
Grade of Manoj:
=VLOOKUP("MANOJ", B2:F7, 5, FALSE)
Post of Ashish (assuming his name is in cell D8):
=VLOOKUP("ASHISH", B2:F7, 3, FALSE)
Grade of Ashish:
=VLOOKUP("ASHISH", B2:F7, 5, FALSE)