HumanSoft โปรแกรม HR
Published: August 9, 2023104,281 views
Date Modified: November 10, 2026
HR Knowledge
How to Create a Payslip in Excel - blog image preview
Blog>How to Create a Payslip in Excel

How to Create a Payslip in Excel

You can create a payslip in Excel in 6 steps: prepare an employee and salary data sheet, build a payslip form with an employee ID dropdown, use VLOOKUP to pull in the name, department, income and deductions, check the net pay, send the payslip to the employee as a PDF, and keep a copy.

 

This method suits companies with a small team that are not ready to buy payroll software yet. If you are not sure what a payslip has to show, read this first: What Is a Payslip, What Is It For and What Data Do You Need?

 

Table of Contents:

What Should a Payslip Include?

A payslip tells an employee how much they were paid this month, where the money came from and what was deducted. Employees use it to check that the amount transferred to their account is correct, and HR uses it as proof of payment. The information on a payslip falls into 3 groups.

  • Employee details: employee ID, full name, department, position, pay period and pay date.
  • Income: salary, overtime (OT), attendance allowance, commission and other income.
  • Deductions: withholding tax, Social Security contributions, provident fund, deductions for absence, leave or lateness, and the net pay.

 

How Do You Make a Payslip in Excel?

Split the file into 2 sheets: an employee data sheet and a payslip form sheet. Each month, HR only updates the figures in the data sheet, then picks an employee ID on the payslip sheet and that person's details fill in automatically.

 

1. Prepare Salary and Deduction Data

Create an employee data sheet with one row per person. Put the employee ID in the first column, followed by name, department, position, salary, other income, tax, Social Security and other deductions. Employee IDs must be unique, because the formula in step 3 uses the ID to search.

 

Example employee data sheet in Excel for payslips, with columns for employee ID, name, department, position and salary

 

2. Build the Payslip Form and an Employee Dropdown

Design the payslip on a separate sheet with the company header, employee details, an income table and a deductions table. Then add a dropdown so you can pick the employee ID, as follows.

 

Example payslip form in Excel with employee details, income items, deductions and net income

 

  1. On the data sheet, select the employee ID cells and type a range name in the Name Box (the box at the top left, above column A), for example EmpID, then press Enter.
  2. Go to the payslip sheet, click the cell you will use to pick the ID (B2 in this example), then go to Data > Data Validation.
  3. Under Allow, choose List. In Source, type =EmpID and click OK.

 

Select the employee ID cells in column A and name the range EmpID in the Excel Name Box

 

Excel Data Validation window with Allow set to List and Source set to =EmpID

 

Employee ID dropdown in cell B2 of the Excel payslip for choosing which employee to create a payslip for

 

The cell becomes a dropdown where you choose the employee you want to create a payslip for.

 

3. Pull Employee Details into the Payslip with VLOOKUP

VLOOKUP searches for the employee ID in the data sheet and returns the value from the column you specify. Type the formula in the employee name cell of the payslip (D2 in this example). If the data sheet is called "Employees" and the data sits in A1:E10, the formula is:

=VLOOKUP(B2, Employees!A1:E10, 2, FALSE)

  • B2: the employee ID dropdown cell.
  • Employees!A1:E10: the whole employee data table. Write it as $A$1:$E$10 if you will copy the formula to other cells.
  • 2: the column number you want, counted from the employee ID column.
  • FALSE: find an exact match only.

 

Type =VLOOKUP( in cell D2 of the payslip, then select the employee ID cell B2 as the lookup value

 

Select the employee table A1:E10 on the Employees sheet as the VLOOKUP table_array, and copy the range to reuse in other cells

 

Use the same formula in the other cells and change only the column number, for example 3 to pull the department or 5 to pull the salary, following the column order in your data sheet.

 

The full formula =VLOOKUP(B2,Employees!A1:E10,2,FALSE) in cell D2 to show the employee name on the payslip

 

Excel payslip where VLOOKUP has filled in the name, department and salary of employee H66008

 

4. Calculate Net Pay and Check It

Use SUM to total income and deductions separately, then set net pay = total income − total deductions. Before sending, pick 2–3 employees and compare the figures with the data sheet and the actual transfers, because a formula pointing at the wrong column makes every payslip wrong at once.

 

5. Send the Payslips to Employees

Go to File > Save As or Export and save each payslip as a PDF, one employee at a time. Then send it by email or print it and put it in an envelope. Do not send the Excel file to employees, because the data sheet holds everyone's salary in the same file.

 

6. Keep Copies and Record the Payment

Keep the PDF payslips and the data file for each pay period in a separate folder for each month, and record the payment in the company payroll register. These serve as evidence when an employee asks about a past payment or when there is an audit.

 

Which Companies Should Make Payslips in Excel?

Excel suits companies with a small team and simple monthly pay. As headcount grows, or when there is OT, leave and lateness every month, the data entry and checking grow with it.

 

Payslips in Excel vs Payroll Software

Topic

Excel

Payroll software

Cost

Uses software you already have

Monthly or yearly fee

Working time, OT and leave data

Typed or copied in by hand every month

Pulled automatically from time attendance and leave systems

Errors

Formulas can shift or be edited without anyone noticing

Calculated from the rules you set

Sending payslips

Export to PDF and send one by one

Employees view their payslips online

 

See a detailed comparison at Payroll in Excel vs Using a System. To see which tasks software takes over, read: What Is Payslip Software? · Free Online Payslips

 

Summary: How to Create a Payslip in Excel

You can make Excel payslips faster by separating the data sheet from the payslip sheet, using Data Validation for an employee dropdown and VLOOKUP to fill in the details. Then check the net pay, send each payslip as a PDF and keep a copy of every pay period. As your team grows, or when OT and leave come up every month, moving to an online payroll system that pulls data from a time attendance system cuts repeated data entry and the chance of mistakes.

 

HumanSoft Payroll Software Free 30-day trial with every HR feature · Free system setup · Cancel anytime.

Start your free trial

 

FAQ: Common Questions About Creating a Payslip

Q: What data do I need to make a payslip in Excel?

A: You need 2 parts: employee details (ID, full name, department, position) and the salary data for that pay period (salary, other income, tax, Social Security and other deductions). Put them in one sheet with one row per person.

 

Q: Which Excel formulas are used to make a payslip?

A: Mainly 3: Data Validation to create an employee ID dropdown, VLOOKUP to pull in that employee's details, and SUM to total income and deductions to get the net pay.

 

Q: How do I fix #N/A from VLOOKUP on a payslip?

A: #N/A means the employee ID was not found. Check that the IDs in the data sheet and on the payslip are the same type (number or text), have no extra spaces, and that the named range covers any new employees.

 

Q: What kind of business are Excel payslips suitable for?

A: Small businesses and SMEs with few employees, simple monthly pay and a need to keep costs down.

 

Q: What are the limits of making payslips in Excel?

A: The data does not connect automatically to time attendance or leave systems, so you have to enter OT, leave and lateness by hand every month. Formulas can shift or be edited without anyone noticing, and you have to export and send PDFs to employees one by one.

 

Related articles

HumanSoft team ready to helpHumanSoft Payroll & HR SolutionFree 30-day trial, all HR functions
  • Free setup service.
  • No expenses at all.
  • Dismiss at any time.
Try it free