picture
Take the following table as an example, and share with you a few tips for dealing with Excel payroll.


picture


1. Department summary table

Do a conditional summation on the department.
=SUMIF(Salary table!C:C,A2,Salary table!N:N)


picture


The syntax of the SUMIF function is as follows:
=SUMIF(Condition area, condition, sum area)


2. Salary inquiry form

According to the job number, query related data.

picture


The function of VLOOKUP to return multiple columns is used here, the name is the second column, and the department is the third column. COLUMN is used to generate numbers.
=VLOOKUP($C$2,Payroll!$A:$O,COLUMN(B1),0)

picture

3. Salary slip


The formula is the same as Case 2.

picture


The formula is as follows:
=VLOOKUP($A2,Payroll!$A:$O,COLUMN(B1),0)

picture


Select the area A1:N3 , then drop down. When it is pulled down, the job number will change to 2, 3, etc.

picture


The above are a few tips to share with you today, try it out.

·END·

If you are a new student, long press the QR code below - identify the QR code in the picture -  follow , and you can learn Excel together every day .
picture