Sep 17, 2026By Folio HR

How to Make Payroll on Excel: Step-by-Step Setup, Formulas, and Honest Limits

Learn how to make payroll on Excel with a step-by-step guide covering column setup, core formulas, multi-sheet organization, pre-built templates, and where spreadsheets fall short.

There’s an old adage that goes, “It doesn’t get any better than this.” That adage holds true when it comes to spreadsheets. If you want to build your own payroll system, Microsoft Excel is the obvious choice.

The problem is that if you’re not careful, you can end up spending a lot of time manually building and maintaining formulas. It’s possible to create a good Excel-based payroll, but the math can quickly become complex. This article explains how you can take advantage of existing solutions so you don’t have to build them from scratch.

Every Excel payroll must start with the right column structure, as explained in the first step below. Then we’ll walk through how you can apply the core functions to do payroll math.

Finally, we’ll look at what makes a great payroll solution, how Excel compares to alternatives like free online payrolls, and why some businesses will find it difficult to manage their Excel-based payroll as they grow.

What You Need

Before any data or formulas are added, every payroll sheet must have the following columns:

Employee Identification – For example, name or employee ID.

Pay Rate – What each employee earns per hour (if paid hourly) or per week/month (if paid salary).

Pay Period Count – The number of pay periods in a year.

Hours Worked – Total hours for the period, including overtime.

Earnings – Salary before deductions.

Deductions – Tax withholdings and benefits contributions.

Net Pay – Earnings minus deductions.

In addition to these, there’s also a Register tab that provides row-level detail of the individual employee for each pay period. In short, the Excel spreadsheet must provide all the data points necessary to run calculations.

The next step is to determine how often employees receive paychecks. The most common options include weekly, biweekly, semimonthly, and monthly pay periods. To simplify things, enter this information as a numeric value: weekly = 52, biweekly = 26, semimonthly = 24, and monthly = 12. This value will feed into the per-period computations.

Next, determine each employee’s federal and state income tax rates. You can input these as either a percentage or a fixed amount. Enter these values individually for each employee because each may be different.

Core Functions

Once the foundation is laid out, you can begin calculating payroll. Excel has a variety of functions that you can use, including SUM, AVERAGE, COUNTIF, IF, VLOOKUP, INDEX/MATCH, and others.

The most common functions used for payroll include:

SUM – Add a series of numbers together.

AVERAGE – Determine the average of a range of cells.

COUNTIF – Count how many times a specific condition occurs within a range.

IF – Use logical conditions to return different results depending on the outcome.

VLOOKUP – Search a table for a value and return a corresponding value from another cell in the same row.

INDEX/MATCH – Locate a value within a range and return a value located at a specific position within the range.

You’ll typically combine one or more of these functions to calculate earnings, deductions, taxes, and other items.

INDEX/MATCH usually outperforms VLOOKUP because you can use MATCH() to locate the correct row and then use INDEX() to retrieve a value from the row that contains the matching result. You can even combine multiple criteria for filtering, such as looking up by department and years of service.

When using array formulas, you can filter salaries based on certain conditions. For instance, you might want to track the total salaries of employees who belong to either the Sales or Marketing departments and have more than five years of service. You can accomplish this using a formula such as =SUM(IF(((Employees[Department]="Sales")+(Employees[Department]="Marketing"))*(Employees[YearsOfService]>5), Employees[Salary], 0)). Array formulas allow you to pass both criteria simultaneously, and they also let you search for values in two different ranges.

If you aren’t comfortable creating formulas, you can skip right ahead to the section about pre-built templates. But understanding how these functions work gives you more control over the final product.

Using Separate Sheets

You can link your Excel payroll file to separate sheets that contain attendance, overtime records, and summaries of each month’s payroll. Using these sheets helps reduce manual re-entry and keeps your records clean each cycle. All of these sheets need to be saved as named files, which are essentially Excel files with names. Each time you generate a new payroll, make sure to save a copy of your original file.

While this approach works well for smaller companies, larger organizations may find it very tedious and potentially error-prone. Managing payroll requires keeping tabs on numerous people, their employment status, time off, vacation, leaves, and other factors. Multiple files and documents containing employee information add to the complexity, especially since it’s easier to integrate payroll with other business applications. It’s harder still when you tie payroll directly to production, labor cost, and monthly costing, which can impact your bottom line.

Free Pre-Built Templates

Microsoft offers several ways to download a template, including through its Microsoft Template gallery. Microsoft has also launched an initiative called ExcelPayroll, a free, pre-formulated Excel spreadsheet that you can use to build your own payroll without needing to build formulas from scratch. ExcelPayroll runs on open code and does not require installation. The version starting in 2026 runs on open code with no embedded macros. You can download the free ExcelPayroll templates here.